Obtains the tags of a customer master key (CMK).

Request format: KeyId="string"


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListResourceTags

The operation that you want to perform. Set the value to ListResourceTags.

KeyId String Yes 1234abcd-12ab-34cd-56ef-12345678****

The globally unique identifier of the key of the CMK whose tags you want to obtain.

Response parameters

Parameter Type Example Description
RequestId String 4162a6af-bc99-40b3-a552-89dcc8aaf7c8

The ID of the request.

Tags Array

An array of Tag data.

KeyId String 33caea95-c3e5-4 b3 e-a9c6-cec76e4e specific parameter values *

The globally unique identifier of the key of the CMK.

TagKey String Project

A tag key.

TagValue String Test

A tag value.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "4162a6af-bc99-40b3-a552-89dcc8aaf7c8",
    "Tags": {
            "Tag": [
                    "KeyId": "33caea95-c3e5-4b3e-a9c6-cec76e4e****",
                    "TagKey": "Project",
                    "TagValue": "Test"

Error codes

HTTP status code Error code Error message Description
400 Throttling Request was denied due to request throttling. This message returned because your traffic in this period has exceeded the limit. If your business requirements are not met, submit a ticket.

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