GetDomainNames - Amazon API Gateway

GetDomainNames

Represents a collection of DomainName resources.

Request Syntax

GET /domainnames?limit=limit&position=position HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

limit

The maximum number of returned results per page. The default value is 25 and the maximum value is 500.

position

The current pagination position in the paged result set.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "item": [ { "certificateArn": "string", "certificateName": "string", "certificateUploadDate": number, "distributionDomainName": "string", "distributionHostedZoneId": "string", "domainName": "string", "domainNameStatus": "string", "domainNameStatusMessage": "string", "endpointConfiguration": { "types": [ "string" ], "vpcEndpointIds": [ "string" ] }, "mutualTlsAuthentication": { "truststoreUri": "string", "truststoreVersion": "string", "truststoreWarnings": [ "string" ] }, "ownershipVerificationCertificateArn": "string", "regionalCertificateArn": "string", "regionalCertificateName": "string", "regionalDomainName": "string", "regionalHostedZoneId": "string", "securityPolicy": "string", "tags": { "string" : "string" } } ], "position": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

item

The current page of elements from this collection.

Type: Array of DomainName objects

position

The current pagination position in the paged result set.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

BadRequestException

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

HTTP Status Code: 400

TooManyRequestsException

The request has reached its throttling limit. Retry after the specified time period.

HTTP Status Code: 429

UnauthorizedException

The request is denied because the caller has insufficient permissions.

HTTP Status Code: 401

Examples

Retrieve domain names

The following example request retrieves up to 10 custom DomainName resources for APIs under the caller's AWS account.

A successful response returns the requested DomainName resources that can be navigated to by following the linked item or examining the embedded item resource.

Sample Request

GET /domainnames?limit=10 HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160601T173728Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160601/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}

Sample Response

{ "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-basepathmapping-{rel}.html", "name": "basepathmapping", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-domainname-{rel}.html", "name": "domainname", "templated": true } ], "self": { "href": "/domainnames?limit=10" }, "domainname:by-name": { "href": "/domainnames/{domain_name}", "templated": true }, "domainname:create": { "href": "/domainnames" }, "item": { "href": "/domainnames/a.b.c.com" } }, "_embedded": { "item": { "_links": { "self": { "href": "/domainnames/a.b.c.com" }, "basepathmapping:by-base-path": { "href": "/domainnames/a.b.c.com/basepathmappings/{base_path}", "templated": true }, "basepathmapping:create": { "href": "/domainnames/a.b.c.com/basepathmappings" }, "domainname:basepathmappings": { "href": "/domainnames/a.b.c.com/basepathmappings{?limit}", "templated": true }, "domainname:delete": { "href": "/domainnames/a.b.c.com" }, "domainname:update": { "href": "/domainnames/a.b.c.com" } }, "certificateArn": "arn:aws:acm:us-east-1:012345678910:certificate/abcdef", "certificateUploadDate": "2016-04-18T22:16:04Z", "distributionDomainName": "d3ih7ecqtec0mt.cloudfront.net", "domainName": "a.b.c.com" } } }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: