Queries a list of tags that are attached to a CEN instances.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
ResourceType String Yes cen

The resource type. Valid value: cen.

Action String No ListTagResources

The name of this action. Valid value: ListTagResources.

NextToken String No caeba0bbb2be03f84eb48b699f0a4883

The token for the next query.

PageSize Integer No 10

Number of lines per page. Maximum value: 50. Default value: 10.

ResourceId.N RepeatList No cen-7qthudw0ll6jmc****

The ID of the resource. Value range of N: 1 to 20.

Tag.N.Key String No FinanceDept

The tag key of the resource. Value range of N: 1 to 20. This value can be a null string. It can be a maximum of 64 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://.

Tag.N.Value String No FinanceJoshua

The tag value of the resource. Value range of N: 1 to 20. This value can be a null string. It can be a maximum of 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://.

Response parameters

Parameter Type Example value Description
NextToken String caeba0bbb2be03f84eb48b699f0a4883

The token for the next query.

RequestId String DE65F6B7-7566-4802-9007-96F2494AC5XX

The ID of the request.

TagResources Array

A collection of resources and their tags that contain information such as resource IDs, resource types, and tag keys.

TagResource

A collection of resources and their tags that contain information such as resource IDs, resource types, and tag keys.

ResourceId String cen-wyfbqnusjgo9n8****

The ID of the resource.

ResourceType String cen

The type of the resource.

TagKey String FinanceDept

The tag key.

TagValue String FinanceJoshua

The value of the tag.

Examples

Request example


http(s)://[Endpoint]/? Action=ListTagResources
&ResourceType=cen
&<CommonParameters>

Response example

XML format

<ListTagResourcesResponse>
	      <TagResources>
		            <TagResource>
			                  <ResourceType>cen</ResourceType>
			                  <TagValue>FinanceJoshua</TagValue>
			                  <ResourceId>cen-7qthudw0ll6jmc****</ResourceId>
			                  <TagKey>FinanceDept</TagKey>
		            </TagResource>
	      </TagResources>
          <NextToken>caeba0bbb2be03f84eb48b699f0a4883</NextToken>
	      <RequestId>DE65F6B7-7566-4802-9007-96F2494AC5XX</RequestId>
</ListTagResourcesResponse>

JSON format

{
	"ListTagResourcesResponse":{
		"TagResources":{
			"TagResource":{
				"ResourceType":"cen",
				"TagValue":"FinanceJoshua",
				"ResourceId":"cen-7qthudw0ll6jmc****",
				"TagKey":"FinanceDept"
			}
		},
		"NextToken":"caeba0bbb2be03f84eb48b699f0a4883",
		"RequestId":"DE65F6B7-7566-4802-9007-96F2494AC5XX"
	}
}

Error codes

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