Using Console
Using CLI
get-rest-apis
command in AWS CLI. The command is as follows:
get-rest-api
command in AWS CLI. The command is as follows:
get_rest_apis
and get_rest_api
methods of the boto3.client('apigateway')
object to get the list of API Gateways and their details respectively. It will then check if the ‘webAclArn’ field is present and not empty for each API Gateway.
Using Python
get_rest_apis
function to retrieve all the API Gateways.get_web_acl_for_resource
function from the WAF Regional client. If the API Gateway is not integrated with WAF, the function will throw an exception.