閱讀229 返回首頁    go 小米 go MIUI米柚


DescribeServerCertificates__ServerCertificate相關API_API 參考_負載均衡-阿裏雲

描述

該接口用於查詢用戶擁有的服務器證書列表,返回服務器證書的Fingerprint,名稱和證書ID。如果不傳ServerCertificateId參數,則會返回用戶指定Region的所有服務器證書。

注意:返回信息敏感,考慮安全性,隻返回證書的指紋和名稱,不返回證書和私鑰的內容。

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數。取值:DescribeServerCertificates
RegionId String 負載均衡實例所屬的Region編號。取值:從DescribeRegions的返回值中選取。
ServerCertificateId String 安全證書的ID。

返回參數

名稱 類型 描述
<公共返回參數> 詳見 <公共請求參數>
ServerCertificates List 數組格式,返回證書實例,詳情見下表。
  • 證書列表ServerCertificates
名稱 類型 描述
ServerCertificateId String 安全證書的ID。
ServerCertificateName String 安全證書的名稱。
RegionId String 安全證書的Region。
Fingerprint String 安全證書的指紋。

示例

請求示例

  1. https://slb.aliyuncs.com/
  2. &Action=DescribeServerCertificate
  3. &RegionId=cn-east-hangzhou-01
  4. &<公共請求參數>

返回示例

  • XML 格式
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. < DescribeServerCertificateResponse>
    3. <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    4. <ServerCertificates>
    5. <ServerCertificate>
    6. < ServerCertificateId >139a00604ad-cn-east-hangzhou-01</ ServerCertificateId>
    7. < ServerCertificateName >abe</ServerCertificateName>
    8. <Fingerprint >A:B:E</Fingerprint>
    9. </ServerCertificate>
    10. <ServerCertificate>
    11. < ServerCertificateId >139a00604ad-cn-east-hangzhou-02</ ServerCertificateId>
    12. < ServerCertificateName >abf</ServerCertificateName>
    13. <Fingerprint >A:B:F</Fingerprint>
    14. </ServerCertificate>
    15. </ServerCertificates>
    16. </DescribeServerCertificateResponse>
  • JSON格式
    1. {"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
    2. " ServerCertificates":{
    3. " ServerCertificate":[
    4. {" ServerCertificateId":"139a00604ad-cn-east-hangzhou-01"
    5. " ServerCertificateName":"abe",
    6. " Fingerprint ":"A:B:E"},
    7. {" ServerCertificateId":"282b00102ac-cn-east-hangzhou-02"
    8. " ServerCertificateName":"abf",
    9. " Fingerprint ":"A:B:F"}
    10. ]}}

最後更新:2016-11-23 16:04:12

  上一篇:go DeleteServerCertificate__ServerCertificate相關API_API 參考_負載均衡-阿裏雲
  下一篇:go SetServerCertificateName__ServerCertificate相關API_API 參考_負載均衡-阿裏雲