298
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 | 私鑰格式錯誤 |
示例
請求示例:
https://cdn.aliyuncs.com?Action=SetDomainServerCertificate&DomainName=test.com&ServerCertificateStatus=on&ServerCertificate=xxx&PrivateKey=yyy&<公共請求參數>
返回示例
JSON格式:
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9"
}
XML格式:
<SetDomainServerCertificateResponse>
<RequestId>8436769A-55D0-4DF8-BBA7-0DBC156D7AAF</RequestId>
</SetDomainServerCertificateResponse>
最後更新:2016-12-19 14:38:11
上一篇:
設置CC防護__配置操作接口_API 手冊_CDN-阿裏雲
下一篇:
查詢網絡帶寬__資源監控接口_API 手冊_CDN-阿裏雲
金融雲服務器訪問外網的條件__常見問題_專有網絡 VPC-阿裏雲
表詳情頁介紹__數據管理手冊_用戶操作指南_大數據開發套件-阿裏雲
Spark + HBase__Spark_開發人員指南_E-MapReduce-阿裏雲
淘寶性能測試教程__淘寶性能測試課程_性能測試視頻教程_性能測試-阿裏雲
阿裏雲付費用戶破100萬;騰訊人均薪酬40萬;李強調研世界物聯網博覽會籌備
InstanceMetrics__數據類型_API文檔_批量計算-阿裏雲
報警配置__輿情分析_快速開始_公眾趨勢分析-阿裏雲
ColumnUpdate__DataType_API 參考_表格存儲-阿裏雲
中毒導致 SSH 服務運行異常,出現如下錯誤:fatal: mm_request_send: write: Broken pipe__遠程登錄 (SSH)_Linux操作運維問題_雲服務器 ECS-阿裏雲
使用已經搭建好的應用服務器__安卓應用示例_最佳實踐_對象存儲 OSS-阿裏雲
相關內容
常見錯誤說明__附錄_大數據計算服務-阿裏雲
發送短信接口__API使用手冊_短信服務-阿裏雲
接口文檔__Android_安全組件教程_移動安全-阿裏雲
運營商錯誤碼(聯通)__常見問題_短信服務-阿裏雲
設置短信模板__使用手冊_短信服務-阿裏雲
OSS 權限問題及排查__常見錯誤及排除_最佳實踐_對象存儲 OSS-阿裏雲
消息通知__操作指南_批量計算-阿裏雲
設備端快速接入(MQTT)__快速開始_阿裏雲物聯網套件-阿裏雲
查詢API調用流量數據__API管理相關接口_API_API 網關-阿裏雲
使用STS訪問__JavaScript-SDK_SDK 參考_對象存儲 OSS-阿裏雲