ドメイン名を指定されたクライアント CA 証明書に関連付けます。証明書が指定されていない場合、ドメイン名は ESA CA 証明書に関連付けられます。この API は非推奨です。代わりに SetClientCaCertificateHostnames を使用してください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:SetClientCertificateHostnames |
create |
*サイト。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SiteId |
integer |
必須 |
サイト ID。 |
123456789**** |
| Hostnames |
array |
必須 |
関連付けるドメイン名のリスト。 |
|
|
string |
任意 |
ドメイン名。 |
www.example.com |
|
| Id |
string |
任意 |
クライアント CA 証明書 ID。 |
babab9db65ee5efcca9f3d41d4b50d** |
Id パラメーターの値は、ListClientCaCertificates 応答の各証明書レコードの Id フィールドの値、または ListClientCertificates 応答の各証明書レコードの CACertificateId フィールドの値である必要があります。Id フィールドではありません。ドメイン名を ESA CA 証明書に関連付ける場合、証明書 Id を指定する必要はありません。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ。 |
||
| SiteId |
integer |
サイト ID。 |
123456789**** |
| SiteName |
string |
サイト名。 |
example.com |
| Id |
string |
クライアント CA 証明書 ID。 |
babab9db65ee5efcca9f3d41d4b50d** |
| Hostnames |
array |
関連付けるドメイン名のリスト。 |
|
|
string |
ドメイン名。 |
www.example.com |
|
| RequestId |
string |
リクエスト ID。 |
ET5BF670-09D5-4D0B-BEBY-D96A2A528000 |
例
成功レスポンス
JSONJSON
{
"SiteId": 0,
"SiteName": "example.com ",
"Id": "babab9db65ee5efcca9f3d41d4b50d**",
"Hostnames": [
"www.example.com"
],
"RequestId": "ET5BF670-09D5-4D0B-BEBY-D96A2A528000"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | QuotaCheckFailed.Function | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. | |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | |
| 404 | Certificate.NotFound | The specified certificate does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。