この操作は、ドメイン名の SSL 証明書機能を有効または無効にし、証明書情報を更新します。
操作説明
-
この操作は、[中国 (上海)] リージョンでのみ使用できます。
-
この操作のレート制限は、ユーザーごとに 1 秒あたり 30 回の呼び出しです。
-
リクエストメソッドは POST です。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vod:SetVodDomainSSLCertificate |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
タイプ |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
ApsaraVideo VOD の CDN ドメイン名。 |
example.com |
| CertName |
string |
任意 |
証明書の名前。 |
cert_name |
| CertId |
integer |
任意 |
証明書の ID。 |
12342707 |
| CertType |
string |
任意 |
証明書のタイプ。
|
cas |
| SSLProtocol |
string |
必須 |
HTTPS 証明書を有効にするかどうかを指定します。有効な値:
|
off |
| SSLPub |
string |
任意 |
セキュリティ証明書の内容。証明書を設定するには、このパラメーターを指定する必要があります。証明書を無効にする場合は、このパラメーターを指定する必要はありません。 |
**** |
| SSLPri |
string |
任意 |
秘密鍵の内容。証明書を設定するには、このパラメーターを指定する必要があります。証明書を無効にする場合は、このパラメーターを指定する必要はありません。 |
**** |
| CertRegion |
string |
任意 |
証明書のリージョン。有効な値:
デフォルト値は cn-hangzhou です。 |
cn-hangzhou |
| Env |
string |
任意 |
証明書のグレースケールリリースを有効にするかどうかを指定します。 有効な値:staging:グレースケールリリースを有効にします。 このパラメーターを設定しないか、別の値に設定すると、証明書は正式にリリースされます。 |
staging |
レスポンスパラメーター
|
パラメーター |
タイプ |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID。 |
F4C6D5BE-BF13-45*****6C-516EA8906DCD |
例
成功レスポンス
JSONJSON
{
"RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。