get_deployments
(**kwargs)¶Gets the Deployments for an API.
See also: AWS API Documentation
Request Syntax
response = client.get_deployments(
ApiId='string',
MaxResults='string',
NextToken='string'
)
[REQUIRED]
The API identifier.
dict
Response Syntax
{
'Items': [
{
'AutoDeployed': True|False,
'CreatedDate': datetime(2015, 1, 1),
'DeploymentId': 'string',
'DeploymentStatus': 'PENDING'|'FAILED'|'DEPLOYED',
'DeploymentStatusMessage': 'string',
'Description': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Success
Items (list) --
The elements from this collection.
(dict) --
An immutable representation of an API that can be called by users. A Deployment must be associated with a Stage for it to be callable over the internet.
AutoDeployed (boolean) --
Specifies whether a deployment was automatically released.
CreatedDate (datetime) --
The date and time when the Deployment resource was created.
DeploymentId (string) --
The identifier for the deployment.
DeploymentStatus (string) --
The status of the deployment: PENDING, FAILED, or SUCCEEDED.
DeploymentStatusMessage (string) --
May contain additional feedback on the status of an API deployment.
Description (string) --
The description for the deployment.
NextToken (string) --
The next page of elements from this collection. Not valid for the last element of the collection.
Exceptions
ApiGatewayV2.Client.exceptions.NotFoundException
ApiGatewayV2.Client.exceptions.TooManyRequestsException
ApiGatewayV2.Client.exceptions.BadRequestException