Queries the tags associated with the specified Lindorm instance.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region in which the instances whose tags you want to query are located. You can call the DescribeRegions operation to query the region ID. | cn-hangzhou |
ResourceId | array | Yes | The list of resource IDs. | |
string | Yes | The IDs of the instances whose tags you want to query. You can specify multiple instance IDs to query the tags associated with the instances. You can call the GetLindormInstanceList operation to query the instance IDs. | ld-bp17j28j2y7pm**** | |
NextToken | string | No | The token used to start the next query to retrieve more results. Note
This parameter is not required in the first query. If not all results are returned in one query, you can pass in the NextToken value returned for the query to perform the next query.
| 212db86**** |
ResourceType | string | Yes | The resource type. Set the value to INSTANCE. | INSTANCE |
Tag | object [] | No | The list of tags associated with the instances you want to query. | |
Key | string | No | The keys of the tags associated with the instances you want to query. Note
You can specify the keys of multiple tags. For example, you can specify the key of the first tag in the first key-value pair contained in the value of this parameter and specify the key of the second tag in the second key-value pair.
| test |
Value | string | No | The values of the tags associated with the instances you want to query. Note
You can specify the values of multiple tags. For example, you can specify the value of the first tag in the first key-value pair contained in the value of this parameter and specify the value of the second tag in the second key-value pair.
| 2.2.8 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "05CB115C-91CB-529F-9098-50C1F6CB3BD3",
"TagResources": [
{
"ResourceType": "ALIYUN::HITSDB::INSTANCE",
"TagValue": "2.2.8",
"ResourceId": "ld-bp17j28j2y7pm****",
"TagKey": "test"
}
],
"NextToken": "212db86****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Lindorm.Errorcode.MissingParameter | You must specify ResourceId.N or Tags | - |
400 | Lindorm.Errorcode.NumberExceed.Tags | The maximum number of Tags is exceeded. | - |
400 | Lindorm.Errorcode.NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. | - |
403 | API.Forbidden | The API operation is forbidden in this environment. | This operation is not supported in the current environment. |
403 | Lindorm.Errorcode.OperationDenied | You are not authorized to operate on the specified resource. | You are not authorized to manage the specified resource. |
403 | Lindorm.Errorcode.ServiceLinkedRoleNoPermission | No permission to create service linked role. | You are not authorized to create the service-linked role. |
404 | Lindorm.Errorcode.InstanceNotFound | The instance is not found. | The specified instance does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|