Mengambil riwayat aplikasi Kebijakan perlindungan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:ListProtectionPolicyApplications |
none |
*全部资源
|
None | None |
Sintaks permintaan
GET /api/v1/protection-policies/{ProtectionPolicyId}/list-applications HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProtectionPolicyId |
string |
Yes |
ID Kebijakan perlindungan. |
p-123****890 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SubProtectionPolicyType |
string |
No |
Tipe sub-Kebijakan perlindungan. |
ECS_AUTO_SNAPSHOT_POLICY |
| TaskId |
string |
Yes |
ID Tugas. Anda dapat memanggil operasi DescribeTasks untuk mengkueri ID Tugas. |
t-0004d9ctt1ii******** |
| NextToken |
string |
No |
Token paginasi. Tanggapan mengembalikan nilai |
cae**********699 |
| MaxResults |
integer |
No |
Jumlah maksimum hasil yang dikembalikan dalam satu halaman. |
100 |
| ResourceType |
string |
No |
Tipe Sumber daya. |
ACS::ECS::Instance |
| ApplyStatus |
string |
No |
Status aplikasi. |
FAILED |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
34081B20-C4C0-514F-93F6-8EEC3D1A587E |
| Data |
object |
The response data. |
|
| Content |
array<object> |
The response content. |
|
|
object |
A policy application record. |
||
| ProtectionPolicyId |
string |
Protection policy ID. |
p-123***7890 |
| ResourceArn |
string |
Resource ARN. |
acs:ecs:123***890:cn-shanghai:instance/i-001***90 |
| ResourceId |
string |
Resource ID. |
i-xxxxxxxx |
| ResourceType |
string |
Resource type. |
ACS::ECS::Instance |
| ProductType |
string |
Product type. |
ecs |
| SubProtectionPolicyType |
string |
Sub-protection policy type. |
ECS_AUTO_SNAPSHOT_POLICY |
| TaskId |
string |
Task ID. |
t-0000e4w0u1v592zdf6s7 |
| ApplyTime |
integer |
The time when the policy was applied. |
2024-11-19T02:19:06Z |
| ApplyStatus |
string |
The status of policy application. |
FAILED |
| ApplyDetail |
string |
Error message. |
{"errorCode":"HbrPolicyNotFound","errorMessage":"po-123***7890"} |
| ResourceOwnerId |
integer |
123***7890 |
|
| NextToken |
string |
The pagination token for retrieving the next page of results. If this parameter is empty, all results have been returned. |
fb836242f4225fa0f0e0257362dfc6dd |
| MaxResults |
integer |
The maximum number of results to return. |
10 |
| TotalCount |
integer |
The total number of entries. |
5 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "34081B20-C4C0-514F-93F6-8EEC3D1A587E",
"Data": {
"Content": [
{
"ProtectionPolicyId": "p-123***7890",
"ResourceArn": "acs:ecs:123***890:cn-shanghai:instance/i-001***90\n",
"ResourceId": "i-xxxxxxxx",
"ResourceType": "ACS::ECS::Instance",
"ProductType": "ecs",
"SubProtectionPolicyType": "ECS_AUTO_SNAPSHOT_POLICY",
"TaskId": "t-0000e4w0u1v592zdf6s7",
"ApplyTime": 0,
"ApplyStatus": "FAILED",
"ApplyDetail": "{\"errorCode\":\"HbrPolicyNotFound\",\"errorMessage\":\"po-123***7890\"}",
"ResourceOwnerId": 0
}
],
"NextToken": "fb836242f4225fa0f0e0257362dfc6dd",
"MaxResults": 10,
"TotalCount": 5
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.