Menu
AWS Elastic Beanstalk
API Reference (API Version 2010-12-01)

ListTagsForResource

Returns the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value pairs.

Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments. For details about environment tagging, see Tagging Resources in Your Elastic Beanstalk Environment.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

ResourceArn

The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.

Must be the ARN of an Elastic Beanstalk environment.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

ResourceArn

The Amazon Resource Name (ARN) of the resouce for which a tag list was requested.

Type: String

ResourceTags.member.N

A list of tag key-value pairs.

Type: Array of Tag objects

Errors

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

InsufficientPrivileges

The specified account does not have sufficient privileges for one of more AWS services.

HTTP Status Code: 403

ResourceNotFound

A resource doesn't exist for the specified Amazon Resource Name (ARN).

HTTP Status Code: 400

ResourceTypeNotSupported

The type of the specified Amazon Resource Name (ARN) isn't supported for this operation.

HTTP Status Code: 400

See Also

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