Mengkueri daftar aturan perlindungan data.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:DescribeRules |
none |
*Semua Sumber daya.
|
None | None |
Sintaks permintaan
GET /api/v1/rules HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
No |
Tipe Sumber daya. |
ACS::ECS::Instance |
| NextToken |
string |
No |
Apakah token kueri berikutnya ada. Nilai valid: Jika NextToken kosong, tidak ada hasil lagi. Jika NextToken dikembalikan, nilai tersebut menunjukkan token untuk kueri berikutnya. |
cae**********699 |
| MaxResults |
integer |
No |
Jumlah maksimum entri per halaman untuk kueri berhalaman. Nilai maksimum: 50. Nilai default: 10. |
10 |
| ResourceCategoryId |
string |
No |
ID kategori Sumber daya. |
rc-000***123 |
| ResourceRegionId |
string |
No |
ID wilayah Sumber daya. |
cn-hangzhou |
| ResourceOwnerIds |
array |
No |
||
|
integer |
No |
123***7890 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
BaseResponse<ListResult |
||
| Data |
object |
Data yang dikembalikan. |
|
| Content |
array<object> |
Koleksi rekaman yang dikembalikan dalam permintaan ini. |
|
|
object |
|||
| RuleId |
string |
The unique ID of the rule. |
rule-bp11ggd8wr762 |
| ProductType |
string |
The product type to which the rule applies. |
ecs |
| ResourceType |
string |
The resource type to which the rule applies. |
ACS::ECS::Instance |
| RuleTemplate |
string |
The rule template. |
ecs-backup |
| CheckStatus |
string |
The check status. Valid values: NOT_CHECKED (Not checked), PASSED (Passed), FAILED (Failed), CHECKING (Checking), and CHECK_FAILED (Check failed). |
PASSED |
| CheckTime |
integer |
The UNIX timestamp that indicates when the check was performed. |
1704157635 |
| TotalResourceCount |
integer |
The total number of resources that were checked. |
1 |
| RiskyResourceCount |
integer |
The number of at-risk resources. |
0 |
| CheckFailedResourceCount |
integer |
The number of resources for which the check failed. |
0 |
| NextToken |
string |
Posisi dari mana panggilan saat ini mulai membaca. Nilai kosong menunjukkan bahwa semua data telah dibaca. |
0975951c75d7b41464c8d08ae17043ca |
| MaxResults |
integer |
Jumlah maksimum rekaman yang dikembalikan dalam permintaan ini. |
10 |
| TotalCount |
integer |
Jumlah total rekaman yang sesuai dengan kondisi permintaan. Parameter ini opsional dan mungkin tidak dikembalikan secara default. |
42 |
| RequestId |
string |
Pengidentifikasi unik permintaan. |
86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9 |
Contoh
Respons sukses
JSONformat
{
"Data": {
"Content": [
{
"RuleId": "rule-bp11ggd8wr762",
"ProductType": "ecs",
"ResourceType": "ACS::ECS::Instance",
"RuleTemplate": "ecs-backup",
"CheckStatus": "PASSED",
"CheckTime": 1704157635,
"TotalResourceCount": 1,
"RiskyResourceCount": 0,
"CheckFailedResourceCount": 0
}
],
"NextToken": "0975951c75d7b41464c8d08ae17043ca",
"MaxResults": 10,
"TotalCount": 42
},
"RequestId": "86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.