ListTagsForResource - Quick Setup

ListTagsForResource

Returns tags assigned to the resource.

Request Syntax

GET /tags/ResourceArn HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ResourceArn

The ARN of the resource the tag is assigned to.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "Tags": [ { "Key": "string", "Value": "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.

Tags

Key-value pairs of metadata assigned to the resource.

Type: Array of TagEntry objects

Errors

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

AccessDeniedException

The requester has insufficient permissions to perform the operation.

HTTP Status Code: 403

ConflictException

Another request is being processed. Wait a few minutes and try again.

HTTP Status Code: 409

InternalServerException

An error occurred on the server side.

HTTP Status Code: 500

ResourceNotFoundException

The resource couldn't be found. Check the ID or name and try again.

HTTP Status Code: 404

ThrottlingException

The request or operation exceeds the maximum allowed request rate per AWS account and AWS Region.

HTTP Status Code: 429

ValidationException

The request is invalid. Verify the values provided for the request parameters are accurate.

HTTP Status Code: 400

See Also

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