Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).
AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . apigatewayv2 ]
Gets API mappings.
See also: AWS API Documentation
See 'aws help' for descriptions of global parameters.
get-api-mappings
--domain-name <value>
[--max-results <value>]
[--next-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
--domain-name (string)
The domain name.
--max-results (string)
The maximum number of elements to be returned for this resource.
--next-token (string)
The next page of elements from this collection. Not valid for the last element of the collection.
--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
See 'aws help' for descriptions of global parameters.
To get API mappings for a custom domain name
The following get-api-mappings example displays a list of all of the API mappings for the api.example.com custom domain name.
aws apigatewayv2 get-api-mappings \
--domain-name api.example.com
Output:
{
"Items": [
{
"ApiId": "a1b2c3d4",
"ApiMappingId": "a1b2c3d5",
"ApiMappingKey": "myTestApi"
"Stage": "test"
},
{
"ApiId": "a5b6c7d8",
"ApiMappingId": "a1b2c3d6",
"ApiMappingKey": "myDevApi"
"Stage": "dev"
},
]
}
For more information, see Setting up a regional custom domain name in API Gateway in the Amazon API Gateway Developer Guide.
Items -> (list)
The elements from this collection.
(structure)
Represents an API mapping.
ApiId -> (string)
The API identifier.ApiMappingId -> (string)
The API mapping identifier.ApiMappingKey -> (string)
The API mapping key.Stage -> (string)
The API stage.
NextToken -> (string)
The next page of elements from this collection. Not valid for the last element of the collection.