サイトのオリジンクライアント証明書をアップロードします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:UploadOriginClientCertificate |
create |
*Site
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SiteId |
integer |
必須 |
サイト ID。この ID を取得するには、ListSites API を呼び出します。 |
123456789**** |
| Certificate |
string |
必須 |
PEM フォーマットの証明書の内容。 |
-----BEGIN CERTIFICATE----- |
| PrivateKey |
string |
必須 |
PEM フォーマットの証明書の秘密鍵。 |
-----BEGIN PRIVATE KEY----- |
| Name |
string |
任意 |
証明書名。 |
test |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答オブジェクト。 |
||
| RequestId |
string |
リクエスト ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Id |
string |
証明書の ID。 |
babaabcd**** |
| Status |
string |
証明書のステータス。 |
OK |
| CommonName |
string |
証明書の共通名。 |
www.example.com |
| NotBefore |
string |
証明書の有効期間の開始 ( |
2023-12-01T02:13:07Z |
| NotAfter |
string |
証明書の有効期間の終了 ( |
2024-12-01T02:13:07Z |
| Issuer |
string |
証明書の発行者。 |
GlobalSign nv-sa |
| SerialNumber |
string |
証明書のシリアル番号。 |
babaded901474b9693acf530e0fb1daa |
| FingerprintSha256 |
string |
証明書の SHA-256 指紋。 |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66 |
| SignatureAlgorithm |
string |
証明書の署名アルゴリズム。 |
SHA256-RSA |
| ValidityDays |
string |
証明書の有効期間 (日数)。 |
365 |
例
成功レスポンス
JSONJSON
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Id": "babaabcd****",
"Status": "OK",
"CommonName": "www.example.com",
"NotBefore": "2023-12-01T02:13:07Z",
"NotAfter": "2024-12-01T02:13:07Z",
"Issuer": "GlobalSign nv-sa",
"SerialNumber": "babaded901474b9693acf530e0fb1daa",
"FingerprintSha256": "1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66",
"SignatureAlgorithm": "SHA256-RSA",
"ValidityDays": "365"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Certificate.StatusError | The status of the certificate is invalid. | 需要手动添加日文描述 |
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | |
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | |
| 400 | QuotaCheckFailed.Function | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | CertificateNotMatchPrivateKey | The specified certificate does not match the private key. | |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | |
| 403 | Unauthorized.InvalidToken | Token authentication failed. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。