保護ポリシーのリストを取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
bdrc:ListProtectionPolicies |
list |
*All Resource
|
なし | なし |
リクエスト構文
GET /api/v1/protection-policies HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ProtectionPolicyRegionId |
string |
任意 |
保護ポリシーのリージョン ID。 |
cn-hangzhou |
| MaxResults |
integer |
任意 |
返される結果の最大値。 |
10 |
| NextToken |
string |
任意 |
ページネーショントークン。 |
cae**********699 |
| ProtectionPolicyId |
string |
任意 |
保護ポリシー ID。 |
p-123***7890 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
5B2F09BF-CEBD-5A7E-AC01-E7F86169A5E5 |
| Data |
object |
The data returned. |
|
| Content |
array<object> |
The response parameters. |
|
|
array<object> |
The collection of records returned by this request. |
||
| ProtectionPolicyRegionId |
string |
cn-hangzhou |
|
| ProtectionPolicyId |
string |
p-123***7890 |
|
| ProtectionPolicyName |
string |
MyProtectionPolicy |
|
| BoundResourceCategoryIds |
array |
||
|
string |
rc-123***7890 |
||
| SubProtectionPolicies |
array<object> |
||
|
object |
|||
| SubProtectionPolicyType |
string |
ECS_AUTO_SNAPSHOT_POLICY |
|
| Config |
string |
{\"autoSnapshotPolicyId\":\"sp-123***7890\"} |
|
| LatestApplyTime |
integer |
1742167218 |
|
| LatestTaskId |
string |
t-123***7890 |
|
| LatestApplySummary |
object |
||
| CompleteTime |
integer |
1742167218 |
|
| ResourceCount |
array<object> |
||
|
object |
|||
| ResourceType |
string |
ACS::OTS::Instance |
|
| Count |
integer |
1 |
|
| ApplyStatusCount |
array<object> |
||
|
object |
|||
| ApplyStatus |
string |
FAILED |
|
| Count |
integer |
3 |
|
| NextToken |
string |
The paging token. |
CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAOTzWWYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3NTcwMzY2MjMwNzY2ODcyMzAzMTY2Nzg3ODY5MzY= |
| MaxResults |
integer |
The maximum number of results requested. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
5 |
例
成功レスポンス
JSONJSON
{
"RequestId": "5B2F09BF-CEBD-5A7E-AC01-E7F86169A5E5",
"Data": {
"Content": [
{
"ProtectionPolicyRegionId": "cn-hangzhou",
"ProtectionPolicyId": "p-123***7890",
"ProtectionPolicyName": "MyProtectionPolicy",
"BoundResourceCategoryIds": [
"rc-123***7890"
],
"SubProtectionPolicies": [
{
"SubProtectionPolicyType": "ECS_AUTO_SNAPSHOT_POLICY",
"Config": "{\\\"autoSnapshotPolicyId\\\":\\\"sp-123***7890\\\"}"
}
],
"LatestApplyTime": 1742167218,
"LatestTaskId": "t-123***7890",
"LatestApplySummary": {
"CompleteTime": 1742167218,
"ResourceCount": [
{
"ResourceType": "ACS::OTS::Instance",
"Count": 1
}
],
"ApplyStatusCount": [
{
"ApplyStatus": "FAILED",
"Count": 3
}
]
}
}
],
"NextToken": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAOTzWWYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3NTcwMzY2MjMwNzY2ODcyMzAzMTY2Nzg3ODY5MzY=",
"MaxResults": 10,
"TotalCount": 5
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。