Stage
Represents an API stage.
URI
/v2/apis/
apiId
/stages/stageName
HTTP methods
GET
Operation ID: GetStage
Gets a Stage
.
Path parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stageName | String | True | The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
apiId | String | True | The API identifier. |
Responses | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Status code | Response model | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
200 | Stage | Success | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 | NotFoundException | The resource specified in the request was not found. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
429 | LimitExceededException | The client is sending more than the allowed number of requests per unit of time. |
DELETE
Operation ID: DeleteStage
Deletes a Stage
.
Path parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stageName | String | True | The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
apiId | String | True | The API identifier. |
Responses | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Status code | Response model | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
204 | None | The request has succeeded, and there is no additional content to send in the response payload body. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 | NotFoundException | The resource specified in the request was not found. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
429 | LimitExceededException | The client is sending more than the allowed number of requests per unit of time. |
PATCH
Operation ID: UpdateStage
Updates a Stage
.
Path parameters | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stageName | String | True | The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
apiId | String | True | The API identifier. |
Responses | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Status code | Response model | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
200 | Stage | Success | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
400 | BadRequestException | One of the parameters in the request is invalid. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
404 | NotFoundException | The resource specified in the request was not found. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
409 | ConflictException | The resource already exists. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
429 | LimitExceededException | The client is sending more than the allowed number of requests per unit of time. |
Schemas
Request bodies
{ "description": "string", "deploymentId": "string", "clientCertificateId": "string", "defaultRouteSettings": { "detailedMetricsEnabled": boolean, "loggingLevel": enum, "dataTraceEnabled": boolean, "throttlingBurstLimit": integer, "throttlingRateLimit": number }, "routeSettings": { }, "stageVariables": { }, "accessLogSettings": { "format": "string", "destinationArn": "string" }, "autoDeploy": boolean }
Response bodies
{ "stageName": "string", "description": "string", "deploymentId": "string", "clientCertificateId": "string", "defaultRouteSettings": { "detailedMetricsEnabled": boolean, "loggingLevel": enum, "dataTraceEnabled": boolean, "throttlingBurstLimit": integer, "throttlingRateLimit": number }, "routeSettings": { }, "stageVariables": { }, "accessLogSettings": { "format": "string", "destinationArn": "string" }, "autoDeploy": boolean, "lastDeploymentStatusMessage": "string", "createdDate": "string", "lastUpdatedDate": "string", "tags": { }, "apiGatewayManaged": boolean }
{ "message": "string" }
{ "message": "string", "resourceType": "string" }
{ "message": "string" }
Properties
AccessLogSettings
Settings for logging access in a stage.
Property | Type | Required | Description |
---|---|---|---|
destinationArn | string | False | The ARN of the CloudWatch Logs log group to receive access logs. |
format | string | False | A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. |
BadRequestException
The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
Property | Type | Required | Description |
---|---|---|---|
message | string | False | Describes the error encountered. |
ConflictException
The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.
Property | Type | Required | Description |
---|---|---|---|
message | string | False | Describes the error encountered. |
LimitExceededException
A limit has been exceeded. See the accompanying error message for details.
Property | Type | Required | Description |
---|---|---|---|
limitType | string | False | The limit type. |
message | string | False | Describes the error encountered. |
LoggingLevel
The logging level.
ERROR
INFO
false
NotFoundException
The resource specified in the request was not found. See the message
field for more information.
Property | Type | Required | Description |
---|---|---|---|
message | string | False | Describes the error encountered. |
resourceType | string | False | The resource type. |
RouteSettings
Represents a collection of route settings.
Property | Type | Required | Description |
---|---|---|---|
dataTraceEnabled | boolean | False | Specifies whether ( |
detailedMetricsEnabled | boolean | False | Specifies whether detailed metrics are enabled. |
loggingLevel | False | Specifies the logging level for this route: | |
throttlingBurstLimit | integer Format: int32 | False | Specifies the throttling burst limit. |
throttlingRateLimit | number Format: double | False | Specifies the throttling rate limit. |
RouteSettingsMap
The route settings map.
Property | Type | Required | Description |
---|---|---|---|
| object | False |
Stage
Represents an API stage.
Property | Type | Required | Description |
---|---|---|---|
accessLogSettings | False | Settings for logging access in this stage. | |
apiGatewayManaged | boolean | False | Specifies whether a stage is managed by API Gateway. If you created an API using
quick create, the |
autoDeploy | boolean | False | Specifies whether updates to an API automatically trigger a new deployment. The default value is |
clientCertificateId | string | False | The identifier of a client certificate for a |
createdDate | string Format: date-time | False | The timestamp when the stage was created. |
defaultRouteSettings | False | Default route settings for the stage. | |
deploymentId | string | False | The identifier of the |
description | string | False | The description of the stage. |
lastDeploymentStatusMessage | string | False | Describes the status of the last deployment of a stage. Supported only for stages with |
lastUpdatedDate | string Format: date-time | False | The timestamp when the stage was last updated. |
routeSettings | False | Route settings for the stage, by | |
stageName | string | True | The name of the stage. |
stageVariables | False | A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+. | |
tags | False | The collection of tags. Each tag element is associated with a given resource. |
StageVariablesMap
The stage variable map.
Property | Type | Required | Description |
---|---|---|---|
| string | False |
Tags
Represents a collection of tags associated with the resource.
Property | Type | Required | Description |
---|---|---|---|
| string | False |
UpdateStageInput
Represents the input parameters for an UpdateStage
request.
Property | Type | Required | Description |
---|---|---|---|
accessLogSettings | False | Settings for logging access in this stage. | |
autoDeploy | boolean | False | Specifies whether updates to an API automatically trigger a new deployment. The default value is |
clientCertificateId | string | False | The identifier of a client certificate for a |
defaultRouteSettings | False | The default route settings for the stage. | |
deploymentId | string | False | The deployment identifier for the API stage. Can't be updated if |
description | string | False | The description for the API stage. |
routeSettings | False | Route settings for the stage. | |
stageVariables | False | A map that defines the stage variables for a |