Mengkueri konfigurasi Sumber daya dalam akun saat ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcecenter:GetResourceConfiguration |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceRegionId |
string |
Yes |
ID Wilayah Sumber daya. |
cn-shanghai |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Untuk informasi selengkapnya tentang tipe Sumber daya yang didukung oleh Resource Center, lihat Layanan yang bekerja dengan Resource Center. |
ACS::VPC::RouteTable |
| ResourceId |
string |
Yes |
ID Sumber daya. |
eip-bp1kyg72m**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| AccountId |
string |
The ID of the Alibaba Cloud account to which the resource belongs. |
151266687691**** |
| Configuration |
object |
The configurations of the resource. |
|
|
any |
The configurations of the resource. |
{\"uid\":\"191432722631****\",\"groupId\":\"MtxXXli4FfphQJyH9R3p00****\"} |
|
| CreateTime |
string |
The time when the resource was created. |
2021-06-30T09:20:08Z |
| ExpireTime |
string |
The time when the resource expires. |
2021-07-30T09:20:08Z |
| IpAddressAttributes |
array<object> |
The attributes of the IP address. |
|
|
object |
|||
| IpAddress |
string |
The IP address. |
192.168.1.2 |
| NetworkType |
string |
The network type. Valid values:
|
Public |
| Version |
string |
The version. |
Ipv4 |
| IpAddresses |
array |
The IP addresses. Catatan
Whether this parameter is returned is determined by the Alibaba Cloud service to which the resource belongs. |
|
|
string |
An IP address. |
192.168.1.2 |
|
| RegionId |
string |
The region ID of the resource. |
cn-hangzhou |
| RequestId |
string |
The ID of the request. |
F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E |
| ResourceGroupId |
string |
The ID of the resource group to which the resource belongs. |
rg-acfmv4k**** |
| ResourceId |
string |
The ID of the resource. |
vtb-uf6978gdqbi**** |
| ResourceName |
string |
The name of the resource. |
group1 |
| ResourceType |
string |
The type of the resource. |
ACS::VPC::VSwitch |
| Tags |
array<object> |
The tags of the resource. |
|
|
object |
A tag. |
||
| Key |
string |
The tag key. |
test-key |
| Value |
string |
The tag value. |
test-value |
| ZoneId |
string |
The zone ID of the resource. |
cn-hangzhou-k |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 403 | NoPermission.Resource | The operator is not permitted for this resource. | You are not authorized to perform operations on the resource. |
| 404 | NotExists.Resource | The specified resource does not exist. | The specified resource does not exist. |
| 409 | InvalidParameter.ResourceType | The specified parameter ResourceType is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.