CmdID / aws / aws apigateway
aws apigateway get-deployments
Gets information about a Deployments collection. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To get a list of deployments for a REST API
The following get-deployments example gets a list of deployments for the specified REST API.
aws apigateway get-deployments --rest-api-id 1234123412Identify--rest-api-idThe string identifier of the associated RestApi.Its output
{
"items": [
{
"createdDate": 1453797217,
"id": "0a2b4c",
"description": "Deployed my API for the first time"
}
]
}For more information, see Create a deployment for a REST API in API Gateway in the Amazon API Gateway Developer Guide.
Options
--limitThe maximum number of returned results per page.--positionThe current pagination position in the paged result set.--rest-api-idThe string identifier of the associated RestApi.