Amazon API Gateway
API Reference

ApiMapping

Represents an API mapping.

URI

/v2/domainnames/domainName/apimappings/apiMappingId

HTTP Methods

GET

Operation ID: GetApiMapping

Gets an API mapping.

Path Parameters

Name Type Required Description
apiMappingId String True

The API mapping identifier.

domainName String True

The domain name.

Responses

Status Code Response Model Description
200 ApiMapping

Success

400 BadRequestException

One of the parameters in the request is invalid.

404 NotFoundException

The resource specified in the request was not found.

429 LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

See Also

DELETE

Operation ID: DeleteApiMapping

Deletes an API mapping.

Path Parameters

Name Type Required Description
apiMappingId String True

The API mapping identifier.

domainName String True

The domain name.

Responses

Status Code Response Model Description
204 None

The request has succeeded, and there is no additional content to send in the response payload body.

400 BadRequestException

One of the parameters in the request is invalid.

404 NotFoundException

The resource specified in the request was not found.

429 LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

See Also

PATCH

Operation ID: UpdateApiMapping

The API mapping.

Path Parameters

Name Type Required Description
apiMappingId String True

The API mapping identifier.

domainName String True

The domain name.

Query Parameters

Name Type Required Description
apiId String True

The identifier of the API.

Responses

Status Code Response Model Description
200 ApiMapping

Success

400 BadRequestException

One of the parameters in the request is invalid.

404 NotFoundException

The resource specified in the request was not found.

409 ConflictException

The resource already exists.

429 LimitExceededException

The client is sending more than the allowed number of requests per unit of time.

See Also

Schemas

Request Bodies

Example PATCH

{ "apiMappingKey": "string", "apiId": "string", "stage": "string" }

Response Bodies

Example ApiMapping

{ "apiMappingId": "string", "apiMappingKey": "string", "apiId": "string", "stage": "string" }

Example BadRequestException

{ "message": "string" }

Example NotFoundException

{ "message": "string", "resourceType": "string" }

Example ConflictException

{ "message": "string" }

Example LimitExceededException

{ "message": "string", "limitType": "string" }

Properties

ApiMapping

Represents an API mapping.

Property Type Required Description
apiMappingId

string

False

The API mapping identifier.

apiMappingKey

string

False

The API mapping key.

apiId

string

True

The API identifier.

stage

string

True

The API stage.

See Also

BadRequestException

The request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.

Property Type Required Description
message

string

False

Describes the error encountered.

See Also

ConflictException

The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.

Property Type Required Description
message

string

False

Describes the error encountered.

See Also

LimitExceededException

A limit has been exceeded. See the accompanying error message for details.

Property Type Required Description
message

string

False

Describes the error encountered.

limitType

string

False

The limit type.

See Also

NotFoundException

The resource specified in the request was not found. See the message field for more information.

Property Type Required Description
message

string

False

Describes the error encountered.

resourceType

string

False

The resource type.

See Also

UpdateApiMappingInput

Represents the input parameters for an UpdateApiMapping request.

Property Type Required Description
apiMappingKey

string

False

The API mapping key.

apiId

string

False

The API identifier.

stage

string

False

The API stage.

See Also