Using Console
Using CLI
<rest-api-id>
with the ID of the API you want to check. This command will return a list of all the stages for the specified API.
tracingEnabled
field in the output. If this field is set to false
, then active tracing is not enabled for that stage.
Using Python
aws configure
and then enter your access key, secret access key, and default region when prompted.
get_stage
method provided by the boto3 library to retrieve the information about a specific stage for a RestApi resource. The tracingEnabled
attribute in the response indicates whether active tracing is enabled for the API Gateway stage.
Here is a sample script: