ListResourceTargets
Returns a list of resource targets, optionally filtered by resource provider or target type. Use the pagination token to retrieve additional results.
Request Syntax
GET /resources/targets?maxResults=MaxResults&nextToken=NextToken&resourceProviderArn=ResourceProviderArn&resourceTargetType=ResourceTargetType HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- MaxResults
-
The maximum number of results to return in a single response.
Valid Range: Minimum value of 1. Maximum value of 100.
- NextToken
-
The token returned by a previous call to retrieve the next page of results.
Length Constraints: Minimum length of 1. Maximum length of 5000.
Pattern:
[!-~]+ - ResourceProviderArn
-
The Amazon Resource Name (ARN) of the resource provider by which to filter the results.
Length Constraints: Minimum length of 0. Maximum length of 256.
Pattern:
arn:aws[a-z0-9-]{0,30}:backup-external:[a-z0-9-]{1,30}:[0-9]{12}:resource-provider:[a-z0-9-]{1,30}/[a-z0-9]{1,36} - ResourceTargetType
-
The resource target type by which to filter the results.
Valid Values:
MSSQL_DATABASE | NAS_FILESYSTEM | ORACLEDB_DATABASE | SERVER_FILESYSTEM | VMWARE_VM
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Items": [
{
"Arn": "string",
"CreatedAt": number,
"ExternalIdentifier": "string",
"ExternalName": "string",
"LastSyncedAt": number,
"Name": "string",
"ProviderArn": "string",
"ProviderType": "string",
"Status": "string",
"StatusMessage": "string",
"TargetType": "string",
"UpdatedAt": number
}
],
"NextToken": "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.
- Items
-
The list of resource target summaries.
Type: Array of ResourceTargetListItem objects
- NextToken
-
The token to use to retrieve the next page of results. If there are no additional results, this value is not returned.
Type: String
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
The request was denied because you do not have permission to perform the requested operation.
HTTP Status Code: 403
- ConflictException
-
The request conflicts with the current state of the specified resource.
HTTP Status Code: 409
- InternalServerException
-
The request failed because of an internal server error.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource was not found.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied because the request rate is too high.
HTTP Status Code: 429
- ValidationException
-
The request contains invalid parameters.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: