CmdID / aws / aws apigateway
aws apigateway get-integration-response
Represents a get integration response. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To get the integration response configuration for a HTTP method defined under a REST API's resource
The following get-integration-response example gets the integration response configuration for the 200 status code of the GET method defined under a REST API's resource.
aws apigateway get-integration-response --rest-api-id 1234123412 --resource-id y9h6rt --http-method GET --status-code 200Identify--rest-api-idThe string identifier of the associated RestApi.--resource-idSpecifies a get integration response request's resource identifier.--http-methodSpecifies a get integration response request's HTTP method.--status-codeSpecifies a get integration response request's status code.Its output
{
"statusCode": "200",
"responseTemplates": {
"application/json": null
}
}For more information, see Set up an integration response in API Gateway in the Amazon API Gateway Developer Guide.
Options
--http-methodSpecifies a get integration response request's HTTP method.--resource-idSpecifies a get integration response request's resource identifier.--rest-api-idThe string identifier of the associated RestApi.--status-codeSpecifies a get integration response request's status code.