查詢當前帳號的資源配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
resourcecenter:GetResourceConfiguration |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ResourceRegionId |
string |
是 |
資源地區 ID。 |
cn-shanghai |
| ResourceType |
string |
是 |
資源類型。 支援資源中心的資源類型,請參見支援資源中心的雲端服務及資源類型。 |
ACS::VPC::RouteTable |
| ResourceId |
string |
是 |
資源 ID。 |
eip-bp1kyg72m**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回參數。 |
||
| AccountId |
string |
阿里雲帳號 ID。 |
151266687691**** |
| Configuration |
object |
資源配置詳情。 |
|
|
any |
資源配置詳情。 |
{\"uid\":\"191432722631****\",\"groupId\":\"MtxXXli4FfphQJyH9R3p00****\"} |
|
| CreateTime |
string |
資源建立時間。 |
2021-06-30T09:20:08Z |
| ExpireTime |
string |
資源到期時間。 |
2021-07-30T09:20:08Z |
| IpAddressAttributes |
array<object> |
IP 位址屬性。 |
|
|
object |
IP 位址屬性。 |
||
| IpAddress |
string |
IP 位址。 |
192.168.1.2 |
| NetworkType |
string |
網路類型,取值:
|
Public |
| Version |
string |
IP 位址的版本。 |
Ipv4 |
| IpAddresses |
array |
IP 位址。 說明
資源是否返回該參數,由所屬的雲端服務決定。 |
|
|
string |
IP 位址。 |
192.168.1.2 |
|
| RegionId |
string |
資源地區 ID。 |
cn-hangzhou |
| RequestId |
string |
請求 ID。 |
F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E |
| ResourceGroupId |
string |
資源群組 ID。 |
rg-acfmv4k**** |
| ResourceId |
string |
資源 ID。 |
vtb-uf6978gdqbi**** |
| ResourceName |
string |
資源名稱。 |
group1 |
| ResourceType |
string |
資源類型。 |
ACS::VPC::VSwitch |
| Tags |
array<object> |
標籤。 |
|
|
object |
標籤。 |
||
| Key |
string |
標籤鍵。 |
test-key |
| Value |
string |
標籤值。 |
test-value |
| ZoneId |
string |
可用性區域 ID。 |
cn-hangzhou-k |
樣本
正常返回樣本
JSON格式
{
"AccountId": "151266687691****",
"Configuration": {
"key": "{\\\"uid\\\":\\\"191432722631****\\\",\\\"groupId\\\":\\\"MtxXXli4FfphQJyH9R3p00****\\\"}"
},
"CreateTime": "2021-06-30T09:20:08Z",
"ExpireTime": "2021-07-30T09:20:08Z",
"IpAddressAttributes": [
{
"IpAddress": "192.168.1.2",
"NetworkType": "Public",
"Version": "Ipv4"
}
],
"IpAddresses": [
"192.168.1.2"
],
"RegionId": "cn-hangzhou",
"RequestId": "F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E",
"ResourceGroupId": "rg-acfmv4k****",
"ResourceId": "vtb-uf6978gdqbi****",
"ResourceName": "group1",
"ResourceType": "ACS::VPC::VSwitch",
"Tags": [
{
"Key": "test-key",
"Value": "test-value"
}
],
"ZoneId": "cn-hangzhou-k"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 403 | NoPermission.Resource | The operator is not permitted for this resource. | 目前使用者未授權操作此資源。 |
| 404 | NotExists.Resource | The specified resource does not exist. | 指定資源不存在。 |
| 409 | InvalidParameter.ResourceType | The specified parameter ResourceType is not valid. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。