ListTagsForResource - AWS Resource Explorer


Lists the tags that are attached to the specified resource.

Minimum permissions

To call this operation, you must have the following permissions:

Related operations

Request Syntax

GET /tags/resourceArn HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.


The Amazon resource name (ARN) of the view or index that you want to attach tags to.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Tags": { "string" : "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


The tag key and value pairs that you want to attach to the specified view or index.

Type: String to string map


For information about the errors that are common to all actions, see Common Errors.


The credentials that you used to call this operation don't have the minimum required permissions.

HTTP Status Code: 403


The request failed because of internal service error. Try your request again later.

HTTP Status Code: 500


You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again.

HTTP Status Code: 404


The request failed because you exceeded a rate limit for this operation. For more information, see Quotas for Resource Explorer.

HTTP Status Code: 429


The principal making the request isn't permitted to perform the operation.

HTTP Status Code: 401


You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.

HTTP Status Code: 400



The following example lists the tag key names and values that are attached to the view or index specified by its ARN.

Sample Request

GET /tags/arn%3Aaws%3Aresource-explorer-2%3Aus-east-1%3A123456789012%3Aview%2FMy-EC2-Only-View%2F0bcc225f-b62f-4095-b772-0cdf63ee6d8d HTTP/1.1 Host: X-Amz-Date: 20221101T200059Z Accept-Encoding: identity User-Agent: <UserAgentString> Content-Length: <PayloadSizeBytes> Authorization: AWS4-HMAC-SHA256 Credential=<Credential>, SignedHeaders=<Headers>, Signature=<Signature>

Sample Response

HTTP/1.1 200 OK Date: Tue, 01 Nov 2022 20:00:59 GMT Content-Type: application/json Content-Length: <PayloadSizeBytes> { "Tags": { "environment": "production" } }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: