Queries the tags that are associated with Cloud Phone instances.
Operation description
Specify at least one of the following parameters in the request to determine the queried object: ResourceId.N, Tag.N.Key, or Tag.N.Value.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The region ID.
Set the value of this parameter to | cn-shanghai / ap-southeast-1 |
ResourceType | string | Yes | The resource type. Valid values:
| ALIYUN::ACP::INSTANCE |
MaxResults | integer | No | The number of entries to return on each page for a paged query. | 10 |
NextToken | string | No | The token that marks the position from which to start the query. If you leave this parameter empty, the query starts from the beginning. | AAAAAV3MpHK1AP0pfERHZN5pu6kU+SQXzm0H9mu/FiSc**** |
| ResourceId | array | No | A list of resource IDs. This is a list of cloud phone instance IDs. You can specify 1 to 50 IDs. | |
string | No | The resource ID. This is the ID of a cloud phone instance. | acp-123456abc**** | |
| Tag | array<object> | No | A list of tags. | |
object | No | A tag. | ||
Key | string | No | The tag key. You can specify 1 to 20 tag keys. | department |
Value | string | No | The tag value. You can specify 1 to 20 tag values. | design |
Response elements
Element | Type | Description | Example |
object | The response elements. | ||
NextToken | string | The token that marks the position from which to start the next query. If this parameter is empty, all results have been returned. | AAAAAV3MpHK1AP0pfERHZN5pu6l5V9uONHqPtDLM2U8s**** |
RequestId | string | The request ID. | 20393E53-8FF1-524C-B494-B478A5369733 |
| TagResources | array<object> | A collection of resources and their tag information. | |
object | The details of the queried instance and its tags. | ||
TagValue | string | The tag value. | TF |
ResourceType | string | The resource type. Valid values:
| ALIYUN::ACP::INSTANCE |
ResourceId | string | The resource ID. This is the ID of the cloud phone instance. | acp-8jwttemxb4t6y**** |
TagKey | string | The tag key. | department |
Examples
Success response
JSON format
{
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6l5V9uONHqPtDLM2U8s****",
"RequestId": "20393E53-8FF1-524C-B494-B478A5369733",
"TagResources": [
{
"TagValue": "TF",
"ResourceType": "ALIYUN::ACP::INSTANCE",
"ResourceId": "acp-8jwttemxb4t6y****",
"TagKey": "department"
}
]
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.