Mengkueri status skor perlindungan data layanan cloud.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:DescribeProducts |
none |
*Semua Sumber daya.
|
None | None |
Sintaks permintaan
GET /api/v1/products HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceCategoryId |
string |
No |
ID kategori sumber daya. |
rc-000***123 |
| ResourceRegionId |
string |
No |
Memfilter berdasarkan wilayah tempat sumber daya berada. Jika parameter ini tidak ditentukan, semua wilayah akan dikueri. |
cn-shanghai |
| ProductType |
string |
No |
Memfilter berdasarkan tipe produk sumber daya. Jika parameter ini tidak ditentukan, semua tipe akan dikueri. |
oss |
| ResourceOwnerIds |
array |
No |
Daftar ID pemilik sumber daya. Parameter ini digunakan dalam skenario lintas akun. Jika parameter ini dibiarkan kosong, data akun saat ini akan dikembalikan secara default. |
[123***7890] |
|
integer |
No |
ID pemilik sumber daya. |
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. |
|
|
array<object> |
|||
| ProductType |
string |
The cloud product type, such as |
oss |
| EnableCheck |
boolean |
Indicates whether the data protection score is enabled for the cloud product. |
true |
| ProtectionScore |
integer |
The data protection score, ranging from 0 to 100. |
90 |
| ProtectionScoreUpdatedTime |
integer |
The UNIX timestamp of the last data protection score update. |
1726036498 |
| TotalResourceCount |
integer |
The total count of resources for the cloud product. |
100 |
| RiskyResourceCount |
integer |
The count of risky resources. |
1 |
| CheckFailedResourceCount |
integer |
The count of resources that failed the check. |
1 |
| DisableCheckResourceCount |
integer |
The count of resources for which the check is disabled. |
1 |
| WaitForCheckResourceCount |
integer |
The count of resources pending a check. |
1 |
| RiskCount |
integer |
The count of risky check items. |
1 |
| CheckFailedCount |
integer |
The count of failed check items. |
1 |
| ProtectionScoreDistribution |
array<object> |
The distribution of resources across different score ranges. |
|
|
array<object> |
|||
| Range |
object |
The score range. |
|
| From |
integer |
The lower bound of the score range, inclusive. |
0 |
| To |
integer |
The upper bound of the score range, inclusive. |
60 |
| Count |
integer |
The count of resources within this score range. |
5 |
| NextToken |
string |
Posisi dari mana panggilan saat ini mulai membaca. Nilai kosong menunjukkan bahwa semua data telah dibaca. |
b4fd3cffcacafd65e3818a0b9b2ff9a2 |
| MaxResults |
integer |
Jumlah maksimum rekaman yang dikembalikan dalam permintaan ini. |
10 |
| TotalCount |
integer |
Jumlah total rekaman yang sesuai dengan kondisi permintaan. Ini adalah parameter opsional dan mungkin tidak dikembalikan secara default. |
50 |
| RequestId |
string |
ID unik permintaan. |
30FB202A-1D22-5394-AB02-4477CDFCF51F |
Contoh
Respons sukses
JSONformat
{
"Data": {
"Content": [
{
"ProductType": "oss",
"EnableCheck": true,
"ProtectionScore": 90,
"ProtectionScoreUpdatedTime": 1726036498,
"TotalResourceCount": 100,
"RiskyResourceCount": 1,
"CheckFailedResourceCount": 1,
"DisableCheckResourceCount": 1,
"WaitForCheckResourceCount": 1,
"RiskCount": 1,
"CheckFailedCount": 1,
"ProtectionScoreDistribution": [
{
"Range": {
"From": 0,
"To": 60
},
"Count": 5
}
]
}
],
"NextToken": "b4fd3cffcacafd65e3818a0b9b2ff9a2",
"MaxResults": 10,
"TotalCount": 50
},
"RequestId": "30FB202A-1D22-5394-AB02-4477CDFCF51F"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.