查詢資源目錄管理賬號或成員的資源配置。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AccountId | string | 是 | 資源目錄管理賬號 ID 或成員 ID。 | 1619302**** |
ResourceRegionId | string | 是 | 資源地域 ID。 | cn-shanghai |
ResourceType | string | 是 | 資源類型。 | ACS::VPC::RouteTable |
ResourceId | string | 是 | 資源 ID。 | m-eb3hji**** |
返回參數
示例
正常返回示例
JSON
格式
{
"AccountId": "1619302****",
"Configuration": {
"test": "test",
"test2": 1
},
"CreateTime": "2023-02-14T03:12:11Z",
"ExpireTime": "2023-09-18T07:04:21Z",
"IpAddressAttributes": [
{
"IpAddress": "172.27.199.42",
"NetworkType": "Public",
"Version": "Ipv4"
}
],
"IpAddresses": [
"['192.168.1.2']"
],
"RegionId": "cn-shanghai",
"RequestId": "B2DCC08B-C12A-5705-879C-5A1450016156",
"ResourceGroupId": "rg-acfmzy6d****",
"ResourceId": "m-eb3hji****",
"ResourceName": "test_resource",
"ResourceType": "ACS::VPC::RouteTable",
"Tags": [
{
"Key": "tag-key",
"Value": "tag-value"
}
],
"ZoneId": "cn-shanghai-a"
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | 無操作權限。 |
400 | MultiAccountServiceNotEnabled | Multi account ResourceCenter service is not enabled. | 多賬號資源中心服務未開通。 |
404 | NotExists.Resource | The specified resource does not exist. | 指定資源不存在。 |
404 | NotExists.ResourceDirectory | The resource directory for the account is not enabled. | 當前賬號未開通資源目錄。 |
409 | InvalidParameter.AccountId | The specified parameter AccountId is not valid. | 參數 AccountId 不合法。 |
409 | InvalidParameter.ResourceType | The specified parameter ResourceType is not valid. | 參數 ResourceType 不合法。 |
409 | NoPermission.ResourceDirectory.MemberAccount | ResourceDirectory Member Account is not authorized to perform this operation. | 資源目錄成員賬號不能執行此操作,請使用管理賬號操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|---|---|
2023-11-21 | OpenAPI 錯誤碼發生變更、OpenAPI 返回結構發生變更 | 查看變更詳情 |
2023-06-02 | OpenAPI 錯誤碼發生變更 | 查看變更詳情 |
2023-05-05 | OpenAPI 錯誤碼發生變更 | 查看變更詳情 |