Mengambil daftar nama domain kustom.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListCustomDomains |
list |
*全部资源
|
None | None |
Sintaks permintaan
GET /2023-03-30/custom-domains HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| prefix |
string |
No |
Awalan nama domain. |
foo |
| nextToken |
string |
No |
Token yang digunakan untuk memulai paginasi. |
MTIzNCNhYmM= |
| limit |
integer |
No |
Jumlah nama domain kustom yang akan dikembalikan. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
| ListCustomDomainOutput |
Daftar nama domain kustom. |
Contoh
Respons sukses
JSONformat
{
"customDomains": [
{
"accountId": "186851234023****",
"apiVersion": "2023-03-30",
"authConfig": {
"authInfo": "{}",
"authType": "anonymous"
},
"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.2"
},
"wafConfig": {
"enableWAF": true
},
"corsConfig": {
"allowOrigins": [
""
],
"allowMethods": [
""
],
"allowHeaders": [
""
],
"exposeHeaders": [
""
],
"allowCredentials": true,
"maxAge": 3600
}
}
],
"nextToken": "next_domain_name"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.