Queries custom domain names.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /2023-03-30/custom-domains
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
prefix | string | No | The domain name prefix. | foo |
nextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. | MTIzNCNhYmM= |
limit | integer | No | The number of custom domain names returned. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"customDomains": [
{
"accountId": "",
"apiVersion": "2023-03-30",
"authConfig": {
"authInfo": "{}",
"authType": "anonymous, function, jwt"
},
"certConfig": {
"certName": "my-cert",
"certificate": "PEM format",
"privateKey": "PEM format"
},
"createdTime": "2023-03-30T08:02:19Z",
"domainName": "example.com",
"lastModifiedTime": "2023-03-30T08:02:19Z",
"protocol": "HTTP",
"routeConfig": {
"routes": [
{
"functionName": "myFunction",
"methods": [
"GET"
],
"path": "/api/*",
"qualifier": "myAlias",
"rewriteConfig": {
"equalRules": [
{
"match": "/old",
"replacement": "/new"
}
],
"regexRules": [
{
"match": "^/api/.+?/(.*)",
"replacement": "/api/v2/$1"
}
],
"wildcardRules": [
{
"match": "/api/*",
"replacement": "/$1"
}
]
}
}
]
},
"subdomainCount": "1",
"tlsConfig": {
"cipherSuites": [
"TLS_RSA_WITH_RC4_128_SHA"
],
"maxVersion": "TLSv1.3",
"minVersion": "TLSv1.0"
},
"wafConfig": {
"enableWAF": true
}
}
],
"nextToken": "next_domain_name"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-06-14 | The API operation is not deprecated. | View Change Details |
2024-02-22 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-08-30 | API Description Update | View Change Details |
2023-08-30 | API Description Update. The response structure of the API has changed | View Change Details |
2023-06-28 | Add Operation | View Change Details |