ドメイン名の証明書を有効または無効にし、証明書情報を更新します。
操作説明
アカウントごとに毎秒最大 30 回この操作を呼び出すことができます。
メソッド: POST。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cdn:SetCdnDomainSSLCertificate |
update |
*Domain
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
SSL 証明書を設定する高速化ドメイン名。ドメイン名でサポートされるリクエストのタイプは HTTPS である必要があります。各リクエストで指定できるドメイン名は 1 つだけです。 |
example.com |
| CertName |
string |
任意 |
証明書の名前。証明書名は 1 つだけ指定できます。CertType を upload に設定した場合、このパラメーターはオプションです。 |
yourCertName |
| CertId |
integer |
任意 |
証明書の ID。CertType を cas に設定した場合、このパラメーターは必須です。 |
8089870 |
| CertType |
string |
任意 |
証明書のタイプ。有効な値:
|
upload |
| SSLProtocol |
string |
必須 |
SSL 証明書を有効にするかどうかを指定します。
|
off |
| SSLPub |
string |
任意 |
証明書の内容。証明書を有効にする場合にのみ、証明書の内容を指定します。 |
xxx |
| SSLPri |
string |
任意 |
秘密鍵。証明書を有効にする場合にのみ、秘密鍵を指定します。 |
y**** |
| CertRegion |
string |
任意 |
証明書のリージョン。このパラメーターは、CertType が cas に設定されている場合にのみ有効になります。有効な値: cn-hangzhou および ap-southeast-1。デフォルト値: cn-hangzhou。国際サイトのユーザーには ap-southeast-1 を推奨します。 列挙値:
|
cn-hangzhou |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
A7C69682-7F88-40DD-A198-10D0309E439D |
例
成功レスポンス
JSONJSON
{
"RequestId": "A7C69682-7F88-40DD-A198-10D0309E439D\n"
}
エラーコード
|
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 | InvalidEnv | The specified Env is invalid. | |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 404 | CertName.MissingParameter | You must specify CertName. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。