調用本介面用於設定某網域名稱下認證功能是否啟用及更新認證資訊。
介面說明
-
本介面目前僅支援 華東 2(上海) 地區。
-
單使用者調用頻率:30 次/秒。
-
調用方式:POST。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vod:SetVodDomainSSLCertificate |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DomainName |
string |
是 |
點播加速網域名稱。 |
example.com |
| CertName |
string |
否 |
認證名稱。 |
cert_name |
| CertId |
integer |
否 |
認證 id |
12342707 |
| CertType |
string |
否 |
認證類型。
|
cas |
| SSLProtocol |
string |
是 |
HTTPS 認證是否啟用。取值:
|
off |
| SSLPub |
string |
否 |
安全性憑證內容。不啟用認證則無需輸入,配置認證請輸入認證內容。 |
**** |
| SSLPri |
string |
否 |
私密金鑰內容。不啟用認證則無需輸入,配置認證請輸入私密金鑰內容。 |
**** |
| CertRegion |
string |
否 |
認證 Region。取值:
預設值為cn-hangzhou。 |
cn-hangzhou |
| Env |
string |
否 |
是否灰階下發認證。 取值:staging:灰階下發認證。 不傳或者傳任何其他值,都是正式下發認證。 |
staging |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
F4C6D5BE-BF13-45*****6C-516EA8906DCD |
樣本
正常返回樣本
JSON格式
{
"RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidSSLProtocol.ValueNotSupported | The specified SSLProtocol is invalid. | |
| 400 | SSLPub.MissingParameter | The SSLPub parameter is required. | |
| 400 | SSLPri.MissingParameter | The SSLPri parameter is required. | |
| 400 | InvalidSSLPub | The specified SSLPub is invalid. | |
| 400 | InvalidSSLPri | The specified SSLPri is invalid. | |
| 400 | Certificate.MissMatch | The SSLPri does not match the certificate. | |
| 400 | InvalidCertificate.TooLong | The maximum length of the certificate is exceeded. | |
| 400 | InvalidCertName.TooLong | The length of the certificate name cannot exceed 128 characters. | |
| 400 | AuthenticationFailed | Error performing verification. | |
| 400 | SetDomainCertificate.ParameterError | The specified parameters are invalid. | |
| 400 | Certificate.StatusError | The status of the certificate is invalid. | |
| 400 | DeleteFailed | Error deleting the certificate. | |
| 400 | Certificate.NotFind | The certificate does not exist. | |
| 400 | Certificate.Duplicated | The certificate name already exists. | |
| 400 | Certificate.FormatError | The format of the certificate is invalid. | |
| 400 | Certificate.KeyNull | The private key is required. | |
| 400 | Key.Malformed | The specified Key format is invalid. | |
| 400 | CertStorage.failed | Error saving the certificate. | |
| 400 | CertificateContent.Duplicated | The certificate has been uploaded; do not upload again. | |
| 400 | Certificate.Expired | The certificate has expired. | |
| 400 | InvalidDomain.notOnline | The domain is offline. Check the status of the domain and try again later. | |
| 400 | Decode.Error | Error decoding the SSLPub or SSLPri certificate. | |
| 400 | sslPub.Error | Error encoding SSLPub. | |
| 400 | sslPri.Error | Error encoding SSLPri. | |
| 400 | DomainInSafeMode | The domain is in safe mode. To request permission, contact Customer Service. | |
| 400 | CreateCertificateFailed | Create certificate failed,please try again. | |
| 400 | Abs.CertRegion.ValueNotSupported | CertRegion is not supported. | |
| 400 | CertNameAlreadyExists | The CertName already exists. | |
| 400 | InvalidDomain.Offline | The domain provided is offline. | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | 網域名稱驗證失敗。 |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 404 | CertName.MissingParameter | You must specify CertName. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。