調用本介面設定某網域名稱下認證功能是否啟用及修改認證資訊。
介面說明
目前服務地址僅支援:華東 2(上海)。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vod:SetVodDomainCertificate |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DomainName |
string |
是 |
指定認證所屬加速網域名稱。需屬於 HTTPS 加速類型。 |
example.com |
| CertName |
string |
否 |
認證名稱。 |
cert_name |
| SSLProtocol |
string |
是 |
HTTPS 認證是否啟用。取值:
|
off |
| SSLPub |
string |
否 |
安全性憑證內容。不啟用認證則無需輸入,配置認證請輸入認證內容。 |
**** |
| SSLPri |
string |
否 |
私密金鑰內容。不啟用認證則無需輸入,配置認證請輸入私密金鑰內容。 |
**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
04F0F334-1335-436C-****-6C044FE73368 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "04F0F334-1335-436C-****-6C044FE73368"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidSSLProtocol.ValueNotSupported | The specified value of parameter SSLProtocol is not supported. | |
| 400 | SSLPub.MissingParameter | An input parameter "SSLPub" that is mandatory for processing the request is not supplied. | |
| 400 | SSLPri.MissingParameter | An input parameter "SSLPri" that is mandatory for processing the request is not supplied. | |
| 400 | InvalidSSLPub | The SSLPub you provided is malformed! | |
| 400 | InvalidSSLPri | The SSLPri you provided is malformed! | |
| 400 | Certificate.MissMatch | The SSLPri 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 | Certificate.NotPermittedOff | Turn off certificate will change domain scheduling, please contact customer service | |
| 400 | Certificate.SetNotEffect | Certificate was successfully set but doesn't take effect for protecting current service. Please contact customer service. | |
| 400 | AuthenticationFailed | Authentication failed. | |
| 400 | SetDomainCertificate.ParameterError | Parameters have error. | |
| 400 | InvalidSSLPubOrInvalidSSLPri | The SSLPri or SSLPub you provided is malformed! | |
| 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.KeyNull | The private key is not null. | |
| 400 | Key.Malformed | The private key format is error. | |
| 400 | CertStorage.failed | The certificate storage failed. | |
| 400 | CertificateContent.Duplicated | The certificate is already uploaded, please don't upload again. | |
| 400 | Certificate.Expired | The certificate is expired. | |
| 400 | InvalidDomain.notOnline | The domain is not online, please check the domain status and try again later. | |
| 400 | Decode.Error | The certificate sslpub or sslpri decode error. | |
| 400 | sslPub.Error | The SSLPub encoded failed. | |
| 400 | sslPri.Error | The SSLPri encoded failed. | |
| 400 | DomainInSafeMode | This domain is in the safe mode. if you want to do this operation, please contact us! | |
| 400 | DomainInProtectedMode | This domain is in the protected mode. if you want to do this operation, please contact us! | |
| 403 | IllegalOperation | Illegal domain operate is not permitted. | |
| 403 | ServiceBusy | The specified Domain is configuring, please retry later |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。