All Products
Search
Document Center

Resource Management:GetResourceConfiguration

Last Updated:Jun 25, 2025

Queries the configurations of a resource within the current account.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:GetResourceConfigurationget
*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
Tagsarray<object>

The tags of the resource.

Tagobject

A tag.

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.
IpAddressstring

An IP address.

192.168.1.2
IpAddressAttributesarray<object>

The attributes of the IP address.

IpAddressAttributeobject
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 changedView Change Details
2023-06-02The Error code has changedView Change Details