All Products
Search
Document Center

Lindorm:TagResources

Last Updated:Mar 03, 2024

Queries tags associated with the specified Lindorm instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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
ResourceTypestringYes

The resource type. Set the value to INSTANCE.

INSTANCE
ResourceIdarrayYes

The list of resource IDs.

stringYes

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****
Tagobject []Yes

The tags that you want to associate with the resource.

KeystringYes

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
ValuestringNo

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

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

4F23D50C-400C-592C-9486-9D1E10179065

Examples

Sample success responses

JSONformat

{
  "RequestId": "4F23D50C-400C-592C-9486-9D1E10179065"
}

Error codes

HTTP status codeError codeError message
400Lindorm.Errorcode.ParameterInvaildThe parameter is invalid.
400Lindorm.Errorcode.InvalidParameter.TagValueThe Tag.N.Value parameter is invalid.
400Lindorm.Errorcode.InvalidParameter.TagKeyThe Tag.N.Key parameter is invalid.
400Lindorm.Errorcode.Duplicate.TagKeyThe Tag.N.Key contains duplicate keys.
400Lindorm.Errorcode.NumberExceed.ResourceIdsThe maximum number of ResourceIds is exceeded.
400Lindorm.Errorcode.NumberExceed.TagsThe maximum number of Tags is exceeded.
400Lindorm.Errorcode.QuotaExceed.TagsPerResourceThe maximum number of tags for each resource is exceeded
403Lindorm.Errorcode.OperationDeniedYou are not authorized to operate on the specified resource.
403Lindorm.Errorcode.ServiceLinkedRoleNoPermissionNo permission to create service linked role.
404Lindorm.Errorcode.InvalidResourceIdThe specified ResourceIds are not found in our records.
404Lindorm.Errorcode.MissingParameter.TagKeyYou must specify Tag.N.Key.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-07-14The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: RegionId
2022-07-13The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404