From 3ff1f8d20390140e05df59be96340fe37bd9d950 Mon Sep 17 00:00:00 2001 From: CPol Date: Sun, 24 Dec 2023 12:38:29 +0000 Subject: [PATCH] GITBOOK-503: change request with no subject merged in GitBook --- .../aws-services/aws-api-gateway-enum.md | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/pentesting-cloud/aws-security/aws-services/aws-api-gateway-enum.md b/pentesting-cloud/aws-security/aws-services/aws-api-gateway-enum.md index ad6fcbeee5..a6189bf55c 100644 --- a/pentesting-cloud/aws-security/aws-services/aws-api-gateway-enum.md +++ b/pentesting-cloud/aws-security/aws-services/aws-api-gateway-enum.md @@ -94,7 +94,48 @@ aws apigateway get-usage --usage-plan-id --start-date 2023-07-01 --end {% tab title="apigatewayv2" %} ```bash -## TODO +# Generic info +aws apigatewayv2 get-account -- +aws apigatewayv2 get-domain-names +aws apigatewayv2 get-domain-name --domain-name +aws apigatewayv2 get-usage-plans -- +aws apigatewayv2 get-vpc-links +aws apigatewayv2 get-client-certificates -- + +# Enumerate APIs +aws apigatewayv2 get-apis # This will also show the resource policy (if any) +aws apigatewayv2 get-api --api-id + +## Get all the info from an api at once +aws apigatewayv2 export-api --api-id --output-type YAML --specification OAS30 /tmp/api.yaml + +## Get stages +aws apigatewayv2 get-stages --api-id + +## Get routes +aws apigatewayv2 get-routes --api-id +aws apigatewayv2 get-route --api-id --route-id + +## Get deployments +aws apigatewayv2 get-deployments --api-id +aws apigatewayv2 get-deployment --api-id --deployment-id + +## Get integrations +aws apigatewayv2 get-integrations --api-id + +## Get authorizers +aws apigatewayv2 get-authorizers --api-id +aws apigatewayv2 get-authorizer --api-id --authorizer-id + +## Get domain mappings +aws apigatewayv2 get-api-mappings --api-id --domain-name +aws apigatewayv2 get-api-mapping --api-id --api-mapping-id --domain-name + +## Get models +aws apigatewayv2 get-models --api-id + +## Call API +https://.execute-api..amazonaws.com// ``` {% endtab %} {% endtabs %}