Amazon GuardDuty
Amazon Guard Duty User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

ListTagsForResource

Lists tags for a resource. Tagging is currently supported for detectors, filters, IP sets, and threat intel sets, with a limit of 50 tags per resource. When invoked, this operation returns all assigned tags for a given resource.

Request Syntax

GET /tags/{resourceArn}

Path Parameters

resourceArn

The ARN of the resource whose tags you want to list.

Type: String

Required: Yes

Response Syntax

Body:

{ "tags" : { "string" : "string" } }

Response Elements

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

The response is the following data in JSON format.

tags

The list of all tags (key/value pairs) assigned to a resource.

Type: Array of strings

Errors

If the action isn't successful, the service sends back an HTTP error response code along with detailed error information.

BadRequestException

HTTP Status Code: 400

InternalServerErrorException

HTTP Status Code: 500