ドメイン名の証明書機能を有効にするかどうかを設定し、証明書情報を更新します。
操作説明
ユーザーごとのレート制限: 1 秒あたり 30 回。
HTTP メソッド: POST。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
cdn:SetCdnDomainSSLCertificate |
update |
*ドメイン。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DomainName |
string |
必須 |
証明書を設定するアクセラレーションドメイン名。ドメイン名は HTTPS セキュアアクセラレーションを使用している必要があります。指定できるドメイン名は 1 つだけです。 |
example.com |
| CertName |
string |
任意 |
証明書の名前。指定できる証明書名は 1 つだけです。 CertType が upload に設定されている場合、このパラメーターは省略可能です。新しい証明書の名前を指定します。 |
yourCertName |
| CertId |
integer |
任意 |
証明書の ID。 CertType が cas に設定されている場合、このパラメーターは必須です。既存の証明書の ID を指定します。 |
8089870 |
| CertType |
string |
任意 |
証明書のタイプ。有効な値:
列挙値:
|
upload |
| SSLProtocol |
string |
必須 |
HTTPS 証明書を有効にするかどうかを指定します。有効な値:
|
off |
| SSLPub |
string |
任意 |
SSL 証明書の内容。証明書が無効になっている場合、このパラメーターは必須ではありません。証明書を設定する場合は、証明書の内容を入力する必要があります。 |
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. | SSLPub パラメーターがありません。 |
| 400 | SSLPri.MissingParameter | The SSLPri parameter is required. | SSLPri パラメーターがありません。 |
| 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. | カナリアリリース証明書の Deployment に指定されたパラメーターが無効です。 |
| 403 | DomainInProtectedMode | The domain is in protection mode. To request permission, contact Customer Service. | |
| 404 | CertName.MissingParameter | You must specify CertName. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。