Queries tags associated with the specified Lindorm instances.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region in which the instances you want to associate tags with are located. You can call the DescribeRegions operation to query the region ID. | cn-hangzhou |
ResourceType | string | Yes | The resource type. Set the value to INSTANCE. | INSTANCE |
ResourceId | array | Yes | The list of resource IDs. | |
string | Yes | The IDs of the instances with which you want to associate tags. You can specify multiple instance IDs. You can call the GetLindormInstanceList operation to query the instance IDs. | ld-bp17j28j2y7pm**** | |
Tag | object [] | Yes | The tags that you want to associate with the resource. | |
Key | string | Yes | The key of the tag that you want to associate with the resource. 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 value of the tag that you want to associate with the resource. 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": "4F23D50C-400C-592C-9486-9D1E10179065"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | Lindorm.Errorcode.ParameterInvaild | The parameter is invalid. |
400 | Lindorm.Errorcode.InvalidParameter.TagValue | The Tag.N.Value parameter is invalid. |
400 | Lindorm.Errorcode.InvalidParameter.TagKey | The Tag.N.Key parameter is invalid. |
400 | Lindorm.Errorcode.Duplicate.TagKey | The Tag.N.Key contains duplicate keys. |
400 | Lindorm.Errorcode.NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. |
400 | Lindorm.Errorcode.NumberExceed.Tags | The maximum number of Tags is exceeded. |
400 | Lindorm.Errorcode.QuotaExceed.TagsPerResource | The maximum number of tags for each resource is exceeded |
403 | Lindorm.Errorcode.OperationDenied | You are not authorized to operate on the specified resource. |
403 | Lindorm.Errorcode.ServiceLinkedRoleNoPermission | No permission to create service linked role. |
404 | Lindorm.Errorcode.InvalidResourceId | The specified ResourceIds are not found in our records. |
404 | Lindorm.Errorcode.MissingParameter.TagKey | You must specify Tag.N.Key. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-07-14 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||||
| ||||||||||||||
2022-07-13 | The Error code has changed | see changesets | ||||||||||||
|