ListAutoshifts
Returns a list of autoshifts for an AWS Region. By default, the call returns
only ACTIVE
autoshifts. Optionally, you can specify the status
parameter to return
COMPLETED
autoshifts.
Request Syntax
GET /autoshifts?maxResults=maxResults
&nextToken=nextToken
&status=status
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- maxResults
-
The number of objects that you want to return with this call.
Valid Range: Minimum value of 1. Maximum value of 100.
- nextToken
-
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results. - status
-
The status of the autoshift.
Valid Values:
ACTIVE | COMPLETED
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"items": [
{
"awayFrom": "string",
"endTime": number,
"startTime": number,
"status": "string"
}
],
"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 items in the response list.
Type: Array of AutoshiftSummary objects
- nextToken
-
Specifies that you want to receive the next page of results. Valid only if you received a
NextToken
response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextToken
response to request the next page of results.Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient access to perform this action.
HTTP Status Code: 403
- InternalServerException
-
There was an internal server error.
HTTP Status Code: 500
- ThrottlingException
-
The request was denied due to request throttling.
HTTP Status Code: 429
- ValidationException
-
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: