When retrieving all tags, you can optionally specify the MaxResults
parameter to limit the number of tags in a response. If more tags remain, Amazon FSx
returns a NextToken value in the response. In this case, send a later
request with the NextToken request parameter set to the value of
NextToken from the last response.
This action is used in an iterative process to retrieve a list of your tags.
ListTagsForResource is called first without a
NextTokenvalue. Then the action continues to be called with the
NextToken parameter set to the value of the last NextToken
value until a response has no NextToken.
When using this action, keep the following in mind:
The implementation might return fewer than MaxResults file
system descriptions while still including a NextToken
value.
The order of tags returned in the response of one
ListTagsForResource call and the order of tags returned across
the responses of a multi-call iteration is unspecified.
Example
Use a bare-bones client and the command you need to make an API call.
The resource specified for the tagging operation is not a resource type owned by
Amazon FSx. Use the API of the relevant service to perform the operation.
Lists tags for Amazon FSx resources.
When retrieving all tags, you can optionally specify the
MaxResults
parameter to limit the number of tags in a response. If more tags remain, Amazon FSx returns aNextToken
value in the response. In this case, send a later request with theNextToken
request parameter set to the value ofNextToken
from the last response.This action is used in an iterative process to retrieve a list of your tags.
ListTagsForResource
is called first without aNextToken
value. Then the action continues to be called with theNextToken
parameter set to the value of the lastNextToken
value until a response has noNextToken
.When using this action, keep the following in mind:
The implementation might return fewer than
MaxResults
file system descriptions while still including aNextToken
value.The order of tags returned in the response of one
ListTagsForResource
call and the order of tags returned across the responses of a multi-call iteration is unspecified.Example
Use a bare-bones client and the command you need to make an API call.
Param
ListTagsForResourceCommandInput
Returns
ListTagsForResourceCommandOutput
See
input
shape.response
shape.config
shape.Throws
BadRequest (client fault)
A generic error indicating a failure with a client request.
Throws
InternalServerError (server fault)
A generic error indicating a server-side failure.
Throws
NotServiceResourceError (client fault)
The resource specified for the tagging operation is not a resource type owned by Amazon FSx. Use the API of the relevant service to perform the operation.
Throws
ResourceDoesNotSupportTagging (client fault)
The resource specified does not support tagging.
Throws
ResourceNotFound (client fault)
The resource specified by the Amazon Resource Name (ARN) can't be found.
Throws
FSxServiceException
Base exception class for all service exceptions from FSx service.
Example
To list tags for a resource