閱讀298 返回首頁    go windows


設置證書__配置操作接口_API 手冊_CDN-阿裏雲

SetDomainServerCertificate

描述

該接口用於設置某域名下證書功能是否啟用及 修改證書信息

名稱 類型 必須? 描述
Action String 操作接口名,係統規定參數。取值:SetDomainServerCertificate
DomainName String 指定證書所屬加速域名 需屬於https加速類型
ServerCertificateStatus String HTTPS證書是否啟用,取值on:啟用;off:不啟用,默認取值:off:不啟用
ServerCertificate String 安全證書內容,不啟用證書則無需輸入,配置證書請輸入證書內容。
PrivateKey String 私鑰內容,不啟用證書則無需輸入,配置證書請輸入私鑰內容。

返回參數

名稱 類型 描述
RequestID String 公共返回參數

特殊錯誤碼 (公共錯誤碼)

ErrorCode 錯誤碼 Message 錯誤信息 HTTP 狀態 語義
InvalidDomain.NotFound The domain provided does not belong to you. 404 域名不存在或不屬於當前用戶
IllegalOperation Illegal domain operate is not permitted. 403 沒有權限執行當前操作
ServiceBusy The specified Domain is configuring, please retry later. 403 域名正在配置中, 請稍後再試
InvalidDomain.Offline The domain provided is offline. 400 域名已下線
OperationDenied Your CDN service is suspended. 403 該賬號已經欠費,請充值;
InvalidServerCertificateStatus.ValueNotSupported The specified value of parameter Enable is not supported. 400 ServerCertificateStatus的值不合法
ServerCertificate.MissingParameter An input parameter ServerCertificate that is mandatory for processing the request is not supplied. 400 ServerCertificate參數缺失
PrivateKey.MissingParameter An input parameter PrivateKey that is mandatory for processing the request is not supplied. 400 PrivateKey參數卻是
InvalidCertificate The Certificate you provided is malformed! 400 證書內容不合法
InvalidPrivateKey The Private Key you provided is malformed! 400 私鑰內容不合法
Certificate.MissMatch The Private Key does not math the specified Certificate! 400 證書和私鑰不匹配
InvalidCertificate.TooLong The Certificate you provided is over the max length! 400 證書內容超過長度限製
InvalidCertName.TooLong The Certificate name you provided is over the max length 128! 400 證書名稱不能超過128個字符.
SetDomainServerCertificate.ParameterError Parameters have error. 400 參數錯誤
Certificate.StatusError Certificate is not exist or its status is error. 400 證書不存在或證書狀態錯誤
DeleteFailed Delete certificate is failed. 400 刪除證書失敗
Certificate.NotFind Not find the certificate info. 400 沒有查到相應證書
Certificate.Duplicated The certificate name is duplicated. 400 證書名稱重複
Certificate.FormatError The certificate format is error. 400 證書格式錯誤
Certificate.StatusError The certificate status is error. 400 證書狀態錯誤
Certificate.KeyNull The private key is not null. 400 私鑰不能為空
Key.Malformed The private key format is error. 400 私鑰格式錯誤

示例

請求示例:

  1. https://cdn.aliyuncs.com?Action=SetDomainServerCertificate&DomainName=test.com&ServerCertificateStatus=on&ServerCertificate=xxx&PrivateKey=yyy&<公共請求參數>

返回示例

JSON格式:

  1. {
  2. "RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
  3. }

XML格式:

  1. <SetDomainServerCertificateResponse>
  2. <RequestId>8436769A-55D0-4DF8-BBA7-0DBC156D7AAF</RequestId>
  3. </SetDomainServerCertificateResponse>

最後更新:2016-12-19 14:38:11

  上一篇:go 設置CC防護__配置操作接口_API 手冊_CDN-阿裏雲
  下一篇:go 查詢網絡帶寬__資源監控接口_API 手冊_CDN-阿裏雲