サイトの証明書特徴を有効にするかどうかを設定し、証明書情報を更新します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:SetCertificate |
none |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SiteId |
integer |
必須 |
サイト ID。 ListSites 操作を呼び出してサイト ID を取得できます。 |
1234567890123 |
| Name |
string |
任意 |
証明書名。Type が upload に設定されている場合、このパラメーターは必須です。 |
yourCertName |
| CasId |
integer |
任意 |
クラウド証明書 ID。Type が cas に設定されている場合、このパラメーターは必須です。 |
30000478 |
| Type |
string |
必須 |
証明書タイプ。有効な値:
列挙値:
|
cas |
| Certificate |
string |
任意 |
証明書の内容。Type が upload に設定されている場合、このパラメーターは必須です。 |
-----BEGIN CERTIFICATE----- |
| PrivateKey |
string |
任意 |
証明書の秘密鍵。Type が upload に設定されている場合、このパラメーターは必須です。 |
-----BEGIN PRIVATE KEY----- |
| Region |
string |
任意 |
リージョン。Type が cas に設定されている場合、このパラメーターは必須です。有効な値:
|
cn-hangzhou |
| Id |
string |
任意 |
証明書 ID。free タイプの証明書(ApplyCertificate 操作を呼び出して作成されたもの)はサポートされていません。cas および upload タイプの証明書がサポートされています。 |
babae7c40fef412d887688b91c9e**** |
| KeyServerId |
string |
任意 |
キーレスサーバー ID。このパラメーターは Type が keyless に設定されている場合にのみ有効です。 |
1233112**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ。 |
||
| RequestId |
string |
リクエスト ID。 |
A666D44F-19D6-490E-97CF-1A64AB962C57 |
| Id |
string |
証明書 ID。 |
babae7c40fef412d887688b91c9e**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "A666D44F-19D6-490E-97CF-1A64AB962C57",
"Id": "babae7c40fef412d887688b91c9e****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Certificate.StatusError | The status of the certificate is invalid. | 需要手动添加日文描述 |
| 400 | Certificate.Duplicated | The certificate name already exists. | 需要手动添加日文描述 |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | InvalidCertificate.NotFound | The specified certificate does not match the website. Check the validity of the certificate and try again. | |
| 400 | InvalidSSLPub | The specified Certificate is invalid. | 需要手动添加日文描述 |
| 400 | InvalidSSLPri | The specified PrivateKey is invalid. | 需要手动添加日文描述 |
| 400 | CasId.MissingParameter | The CasId parameter is required. | |
| 400 | PrivateKey.MissingParameter | The PrivateKey parameter is required. | |
| 400 | Certificate.MissingParameter | The Certificate parameter is required. | |
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | UpdateFreeCertificate.NotSupport | The free certificate does not support the update operation. | |
| 400 | CertificateDomainNotMatchSite | The domain name in the specified certificate does not match the site. | |
| 400 | CertificateNotMatchPrivateKey | The specified certificate does not match the private key. | |
| 400 | CertQuotaCheckFailed | The custom certificate quota verification failed. The number of uploaded certificates exceeds the upper limit allowed for the plan. | |
| 404 | Certificate.NotFound | The specified certificate does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。