Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Tags

Focus mode
Tags - Amazon API Gateway

Represents a collection of tags associated with the resource.

URI

/v2/tags/resource-arn

HTTP methods

GET

Operation ID: GetTags

Gets a collection of Tag resources.

Path parameters
NameTypeRequiredDescription
resource-arnStringTrue

The resource ARN for the tag.

Responses
Status codeResponse modelDescription
200Tags

Success

400BadRequestException

One of the parameters in the request is invalid.

404NotFoundException

The resource specified in the request was not found.

409ConflictException

The resource already exists.

429LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

POST

Operation ID: TagResource

Creates a new Tag resource to represent a tag.

Path parameters
NameTypeRequiredDescription
resource-arnStringTrue

The resource ARN for the tag.

Responses
Status codeResponse modelDescription
201None

The request has succeeded and has resulted in the creation of a resource.

400BadRequestException

One of the parameters in the request is invalid.

404NotFoundException

The resource specified in the request was not found.

409ConflictException

The resource already exists.

429LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

DELETE

Operation ID: UntagResource

Deletes a Tag.

Path parameters
NameTypeRequiredDescription
resource-arnStringTrue

The resource ARN for the tag.

Query parameters
NameTypeRequiredDescription
tagKeysStringTrue

The tag keys.

Responses
Status codeResponse modelDescription
204None

The request has succeeded, and there is no additional content to send in the response payload body.

400BadRequestException

One of the parameters in the request is invalid.

404NotFoundException

The resource specified in the request was not found.

409ConflictException

The resource already exists.

429LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

Schemas

Request bodies

{ "tags": { } }

POST schema

{ "tags": { } }

Response bodies

{ }

Tags schema

{ }
{ "message": "string" }

BadRequestException schema

{ "message": "string" }
{ "message": "string", "resourceType": "string" }

NotFoundException schema

{ "message": "string", "resourceType": "string" }
{ "message": "string" }

ConflictException schema

{ "message": "string" }
{ "message": "string", "limitType": "string" }

LimitExceededException schema

{ "message": "string", "limitType": "string" }

Properties

BadRequestException

The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

PropertyTypeRequiredDescription
message

string

False

Describes the error encountered.

ConflictException

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

PropertyTypeRequiredDescription
message

string

False

Describes the error encountered.

LimitExceededException

A limit has been exceeded. See the accompanying error message for details.

PropertyTypeRequiredDescription
limitType

string

False

The limit type.

message

string

False

Describes the error encountered.

NotFoundException

The resource specified in the request was not found. See the message field for more information.

PropertyTypeRequiredDescription
message

string

False

Describes the error encountered.

resourceType

string

False

The resource type.

TagResourceInput

Represents the input parameters for a TagResource request.

PropertyTypeRequiredDescription
tags

Tags

False

The collection of tags. Each tag element is associated with a given resource.

Tags

Represents a collection of tags associated with the resource.

PropertyTypeRequiredDescription

*

string

False

See also

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

GetTags

TagResource

UntagResource

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.