View resource tags

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
RegionId String Yes cn-hangzhou

Instance region

ResourceType String Yes ALIYUN::DRDS::INSTANCE

The DRDS INSTANCE resource type. Valid value: ALIYUN::DRDS::INSTANCE.

Action String No ListTagResources

The system parameter. Valid values: ListTagResources

NextToken String No 6 ab4640 a-479b-41d0-ad3c-c6e888******

The paged token.

ResourceId.N RepeatList No drdshzs******

DRDS instance id

Tag.N.Key String No test

Tag Key

Tag.N.Value String No 1

Tag Value

Response parameters

Prameter Type Sample response Description
NextToken String 6 ab4640 a-479b-41d0-ad3c-c6e888******

The paged token.

RequestId String Cost

The ID of the request.

Success Boolean true

The result of the operation.

TagResources Array

The list of resource tag results.

TagResource

The list of resource tag results.

ResourceId String drdshz******

The id of the DRDS instance.

ResourceType String ALIYUN::DRDS::INSTANCE

Resource DRDS type

TagKey String test

Tag Key

TagValue String 1

Tag Value

Examples

Sample request


http(s)://[Endpoint]/? Action=ListTagResources
&RegionId=cn-hangzhou
&ResourceType=ALIYUN::DRDS::INSTANCE
& <Common request parameters>

Sample success responses

XML format

<NextTokencode>6ab4640a-479b-41d0-ad3c-c6e888******</NextTokencode>
<RequestId>58CE1CB0-F0F4-4BA3-B876-135DC4******</RequestId>
<Success>true</Success>
<TagResources>
    <ResourceId>drdshz******</ResourceId>
    <ResourceType>ALIYUN::DRDS::INSTANCE</ResourceType>
    <TagKey>test</TagKey>
    <TagValue>1</TagValue>
</TagResources>

JSON format

{
	"TagResources":[
		{
			"ResourceType":"ALIYUN::DRDS::INSTANCE",
			"TagValue":"1",
			"ResourceId":"drdshz******",
			"TagKey":"test"
		}
	],
	"NextTokencode":"6ab4640a-479b-41d0-ad3c-c6e888******",
	"RequestId":"58CE1CB0-F0F4-4BA3-B876-135DC4******",
	"Success":true
}

Error codes

For a list of error codes, visit the API Error Center.