閱讀808 返回首頁    go 阿裏雲


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

描述

通過該接口,可以上傳服務器證書進行管理。一次隻能上傳一份服務器證書和對應的PrivateKey,返回結果為成功或者錯誤碼。該接口保證事務性,即上傳的證書和PrivateKey要麼都上傳成功,要麼都不成功。添加成功後,返回該用戶的所有服務器證書列表的Fingerprint。

請求參數

名稱 類型 是否必須 描述
Action String 操作接口名,係統規定參數。取值:UploadServerCertificate
RegionId String 負載均衡實例所屬的Region編號。取值:從DescribeRegions的返回值中選取。
ServerCertificate String 需要上傳的安全證書。
ServerCertificateName String 需要上傳證書的名稱。
PrivateKey String 需要上傳的私鑰。

返回參數

名稱 類型 描述
<公共返回參數> 詳見公共返回參數
ServerCertificateId String 安全證書的ID。
ServerCertificateName String 安全證書的名稱
Fingerprint String 安全證書的指紋

示例

請求示例

  1. https://slb.aliyuncs.com/
  2. &Action=UploadServerCertificate
  3. &RegionId=cn-east-hangzhou-01
  4. &ServerCertificate=test
  5. &ServerCertificateName=mycert01
  6. &PrivateKey=wmsad!q23
  7. &<公共請求參數>

返回示例

  • XML 格式

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <UploadServerCertificateResponse>
    3. <RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
    4. <ServerCertificateId>idkp-123-cn-test-01</ServerCertificateId>
    5. <ServerCertificateName>mycert01</ServerCertificateId>
    6. <Fingerprint>01:DF:AB:CD</Fingerprint>
    7. </UploadServerCertificateResponse>
  • JSON格式

    1. {
    2. "RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
    3. "ServerCertificateId":"idkp-123-cn-test-01",
    4. "ServerCertificateName":"mycert01",
    5. "Fingerprint":"01:DF:AB:CD"
    6. }

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

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