查詢指定地區的伺服器憑證列表。
介面說明
為了保證安全性,只返回認證的指紋和名稱,不返回認證和私密金鑰的內容。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
slb:DescribeServerCertificates |
list |
*ServerCertificate
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
傳統型Server Load Balancer執行個體的地區。 您可以通過調用 DescribeRegions 介面查詢地區 ID。 說明
當您所選地區的 Enpoint(服務地址)為 slb.aliyuncs.com 時, |
cn-hangzhou |
| ServerCertificateId |
string |
否 |
伺服器憑證 ID。 |
12315790*******_166f8204689_1714763408_709981430 |
| ResourceGroupId |
string |
否 |
資源群組 ID。 |
rg-atstuj3rtop**** |
| Tag |
array<object> |
否 |
標籤列表。 |
|
|
object |
否 |
標籤列表。 |
||
| Key |
string |
否 |
資源的標籤鍵。N 的取值範圍:1~20。一旦輸入該值,則不允許為空白字串。 最多支援 64 個字元,不能以 |
test |
| Value |
string |
否 |
資源的標籤值。N 的取值範圍:1~20。一旦輸入該值,可以為空白字串。
最多支援 128 個字元,不能以 |
1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| ServerCertificates |
object |
||
| ServerCertificate |
array<object> |
伺服器憑證列表。 |
|
|
array<object> |
|||
| CreateTimeStamp |
integer |
伺服器憑證上傳的時間戳記。 |
1504147745000 |
| AliCloudCertificateName |
string |
阿里雲認證服務的伺服器憑證名稱。 |
testcertkey |
| ExpireTime |
string |
到期時間。 |
2023-01-26T23:59:59Z |
| CreateTime |
string |
伺服器憑證上傳的時間。 |
2021-08-31T02:49:05Z |
| ServerCertificateId |
string |
伺服器憑證 ID。 |
123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02 |
| ExpireTimeStamp |
integer |
到期時間戳記。 |
15041477450 |
| RegionId |
string |
伺服器憑證的地區。 |
cn-hangzhou |
| ServerCertificateName |
string |
伺服器憑證名稱。 |
slb |
| Fingerprint |
string |
伺服器憑證的指紋。 |
68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d |
| CommonName |
string |
網域名稱,對應認證的 |
www.example.com |
| ResourceGroupId |
string |
企業資源組 ID。 |
rg-atstuj3rtop**** |
| IsAliCloudCertificate |
integer |
是否是阿里雲認證服務中的認證:
|
0 |
| AliCloudCertificateId |
string |
阿里雲認證服務的伺服器憑證 ID。 |
7309********_15d97e7709a_71445759hr_789289731 |
| Tags |
object |
||
| Tag |
array<object> |
資源標籤。 |
|
|
object |
資源標籤。 |
||
| TagValue |
string |
資源的標籤值。 |
1 |
| TagKey |
string |
資源的標籤鍵。 |
test |
| SubjectAlternativeNames |
object |
||
| SubjectAlternativeName |
array |
數組格式,返回認證的備用網域名稱列表,對應認證的 |
|
|
string |
數組格式,返回認證的備用網域名稱列表,對應認證的 |
["demo.aliyundoc.com","example.aliyundoc.com"] |
樣本
正常返回樣本
JSON格式
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"ServerCertificates": {
"ServerCertificate": [
{
"CreateTimeStamp": 1504147745000,
"AliCloudCertificateName": "testcertkey",
"ExpireTime": "2023-01-26T23:59:59Z",
"CreateTime": "2021-08-31T02:49:05Z",
"ServerCertificateId": "123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02",
"ExpireTimeStamp": 15041477450,
"RegionId": "cn-hangzhou",
"ServerCertificateName": "slb",
"Fingerprint": "68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d",
"CommonName": "www.example.com",
"ResourceGroupId": "rg-atstuj3rtop****",
"IsAliCloudCertificate": 0,
"AliCloudCertificateId": "7309********_15d97e7709a_71445759hr_789289731",
"Tags": {
"Tag": [
{
"TagValue": "1",
"TagKey": "test"
}
]
},
"SubjectAlternativeNames": {
"SubjectAlternativeName": [
"[\"demo.aliyundoc.com\",\"example.aliyundoc.com\"]"
]
}
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Abs.ServerCertificateIdAndResourceGroupId.MissMatch | ServerCertificateId or ResourceGroupId miss match. | |
| 400 | LocationServiceTimeout | Location service connection timeout. Please try again later. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。