All Products
Search
Document Center

Resource Management:GetResourceConfiguration

Last Updated:Jun 21, 2024

Queries the configurations of a resource within the current account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
resourcecenter:GetResourceConfigurationRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceRegionIdstringYes

The region ID of the resource.

cn-shanghai
ResourceTypestringYes

The type of the resource.

For more information about the resource types supported by Resource Center, see Services that work with Resource Center.

ACS::VPC::RouteTable
ResourceIdstringYes

The ID of the resource.

eip-bp1kyg72m****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E
ResourceTypestring

The type of the resource.

ACS::VPC::VSwitch
CreateTimestring

The time when the resource was created.

2021-06-30T09:20:08Z
ExpireTimestring

The time when the resource expires.

2021-07-30T09:20:08Z
ResourceGroupIdstring

The ID of the resource group to which the resource belongs.

rg-acfmv4k****
ZoneIdstring

The zone ID of the resource.

cn-hangzhou-k
AccountIdstring

The ID of the Alibaba Cloud account to which the resource belongs.

151266687691****
ResourceIdstring

The ID of the resource.

vtb-uf6978gdqbi****
ResourceNamestring

The name of the resource.

group1
RegionIdstring

The region ID of the resource.

cn-hangzhou
Tagsobject []

The tags of the resource.

Keystring

The tag key.

test-key
Valuestring

The tag value.

test-value
IpAddressesarray

The IP addresses.

Note 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
IpAddressAttributesobject []

The attributes of the IP address.

IpAddressstring

The IP address.

192.168.1.2
NetworkTypestring

The network type. Valid values:

  • Public: the Internet
  • Private: internal network
Public
Versionstring

The version.

Ipv4
Configurationobject

The configurations of the resource.

any

The configurations of the resource.

{\"uid\":\"191432722631****\",\"groupId\":\"MtxXXli4FfphQJyH9R3p00****\"}

Examples

Sample success responses

JSONformat

{
  "RequestId": "F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E",
  "ResourceType": "ACS::VPC::VSwitch",
  "CreateTime": "2021-06-30T09:20:08Z",
  "ExpireTime": "2021-07-30T09:20:08Z",
  "ResourceGroupId": "rg-acfmv4k****",
  "ZoneId": "cn-hangzhou-k",
  "AccountId": "151266687691****",
  "ResourceId": "vtb-uf6978gdqbi****",
  "ResourceName": "group1",
  "RegionId": "cn-hangzhou",
  "Tags": [
    {
      "Key": "test-key",
      "Value": "test-value"
    }
  ],
  "IpAddresses": [
    "192.168.1.2"
  ],
  "IpAddressAttributes": [
    {
      "IpAddress": "192.168.1.2",
      "NetworkType": "Public",
      "Version": "Ipv4"
    }
  ],
  "Configuration": {
    "key": "{\\\"uid\\\":\\\"191432722631****\\\",\\\"groupId\\\":\\\"MtxXXli4FfphQJyH9R3p00****\\\"}"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform the operation.
403NoPermission.ResourceThe operator is not permitted for this resource.You are not authorized to perform operations on the resource.
404NotExists.ResourceThe specified resource does not exist.The specified resource does not exist.
409InvalidParameter.ResourceTypeThe specified parameter ResourceType is not valid.The ResourceType parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-21The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 409
Output ParametersThe response structure of the API has changed.
2023-06-02The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 409