保護ポリシーを取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
bdrc:GetProtectionPolicy |
get |
*All Resource
|
なし | なし |
リクエスト構文
GET /api/v1/protection-policies/{ProtectionPolicyId} HTTP/1.1
パスパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ProtectionPolicyId |
string |
必須 |
保護ポリシー ID。 |
p-123***7890 |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
リクエストパラメーターは必要ありません。
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The response parameters. |
||
| Data |
object |
The data returned. |
|
| ProtectionPolicyRegionId |
string |
The region ID of the protection policy. |
cn-hangzhou |
| ProtectionPolicyId |
string |
The protection policy ID. |
p-123***7890 |
| ProtectionPolicyName |
string |
The protection policy name. |
MyProtectionPolicy |
| BoundResourceCategoryIds |
array |
The list of associated resource category IDs. |
|
|
string |
The resource category ID. |
rc-123***7890 |
|
| SubProtectionPolicies |
array<object> |
The list of configured sub-protection policies. |
|
|
object |
The list of enabled sub-protection policies. |
||
| SubProtectionPolicyType |
string |
ECS_AUTO_SNAPSHOT_POLICY |
|
| Config |
string |
{\"kafka.message.max.bytes\": \"10485760\", \"kafka.log.retention.hours\": \"48\", \"enable.acl\": \"true\"} |
|
| LatestApplyTime |
integer |
The time when the policy was last applied. |
1742167218 |
| LatestTaskId |
string |
The ID of the latest application task. |
t-123***7890 |
| RequestId |
string |
The unique ID of the request. |
AE43C4CB-8074-5EBD-9806-8CA6D12800B1 |
例
成功レスポンス
JSONJSON
{
"Data": {
"ProtectionPolicyRegionId": "cn-hangzhou",
"ProtectionPolicyId": "p-123***7890",
"ProtectionPolicyName": "MyProtectionPolicy",
"BoundResourceCategoryIds": [
"rc-123***7890"
],
"SubProtectionPolicies": [
{
"SubProtectionPolicyType": "ECS_AUTO_SNAPSHOT_POLICY",
"Config": "{\\\"kafka.message.max.bytes\\\": \\\"10485760\\\", \\\"kafka.log.retention.hours\\\": \\\"48\\\", \\\"enable.acl\\\": \\\"true\\\"}"
}
],
"LatestApplyTime": 1742167218,
"LatestTaskId": "t-123***7890"
},
"RequestId": "AE43C4CB-8074-5EBD-9806-8CA6D12800B1"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。