擷取自訂網域名資訊列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
fc:ListCustomDomains |
get |
*全部資源
|
無 | 無 |
請求文法
GET /2021-04-06/custom-domains HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| prefix |
string |
否 |
設定返回網域名稱的首碼。 |
prefix_text |
| startKey |
string |
否 |
設定結果從 startKey 之後(包括 startKey)按字母排序的第一個開始返回。 |
next_service |
| nextToken |
string |
否 |
當符合查詢條件的資料未讀取完時,服務端會返回 nextToken,此時可以使用 nextToken 繼續讀取後面的資料。第一次查詢不需要提供這個參數。 |
fc-thinkphp-demo.functioncompute.com |
| limit |
integer |
否 |
限定此次返回資源的數量。取值範圍[0,100],預設值為 20。返回結果小於或等於指定的數量。 |
20 |
| X-Fc-Account-Id |
string |
否 |
您的阿里雲帳號(主帳號)ID。 |
188077086902**** |
| X-Fc-Date |
string |
否 |
API 呼叫時間,格式為EEE,d MMM yyyy HH:mm:ss GMT。 |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
否 |
自訂請求 ID。 |
asdf***** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| nextToken |
string |
當符合查詢條件的資料未讀取完時,服務端會返回 nextToken,此時可以使用 nextToken 繼續讀取後面的資料。第一次查詢不需要提供這個參數。 |
example.com |
| customDomains |
array<object> |
符合列舉條件的網域名稱列表。 |
|
|
object |
網域名稱資訊。 |
||
| domainName |
string |
網域名稱。 |
example.com |
| accountId |
string |
您的阿里雲帳號(主帳號)ID。 |
1986114****4305 |
| protocol |
string |
網域名稱支援的協議類型。
|
HTTP |
| apiVersion |
string |
API 的版本。 |
2016-08-15 |
| createdTime |
string |
網域名稱的建立時間。 |
2020-07-27T08:02:19Z |
| lastModifiedTime |
string |
網域名稱上一次被更新的時間。 |
2020-07-27T08:02:19Z |
| certConfig | CertConfig |
HTTPS 認證的配置資訊。 |
|
| tlsConfig | TLSConfig |
TLS 配置資訊。 |
|
| routeConfig | RouteConfig |
路由表:定義網域名稱訪問時的 PATH 到 Function 的映射。 |
|
| wafConfig | WAFConfig |
Web Application Firewall配置資訊。 |
樣本
正常返回樣本
JSON格式
{
"nextToken": "example.com",
"customDomains": [
{
"domainName": "example.com\t",
"accountId": "1986114****4305\t",
"protocol": "HTTP\t",
"apiVersion": "2016-08-15\t",
"createdTime": "2020-07-27T08:02:19Z\t",
"lastModifiedTime": "2020-07-27T08:02:19Z\t",
"certConfig": {
"certName": "my-cert",
"certificate": "-----BEGIN CERTIFICATE----- xxxxx -----END CERTIFICATE-----",
"privateKey": "-----BEGIN RSA PRIVATE KEY----- xxxxx -----END RSA PRIVATE KEY-----"
},
"tlsConfig": {
"minVersion": "TLSv1.2",
"cipherSuites": [
"TLS_RSA_WITH_RC4_128_SHA"
],
"maxVersion": "TLSv1.3"
},
"routeConfig": {
"routes": [
{
"functionName": "f1",
"methods": [
"GET"
],
"path": "/login",
"qualifier": "prod",
"serviceName": "s1",
"rewriteConfig": {
"equalRules": [
{
"match": "/old",
"replacement": "/new"
}
],
"wildcardRules": [
{
"match": "/api/*",
"replacement": "/$1"
}
],
"regexRules": [
{
"match": "^/js/(.*?)$",
"replacement": "/public/javascripts/$1"
}
]
}
}
]
},
"wafConfig": {
"enableWAF": true
}
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。