Queries the data protection score status of cloud services.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:DescribeProducts |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/products HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceCategoryId |
string |
No |
The resource category ID. |
rc-000***123 |
| ResourceRegionId |
string |
No |
Filters by the region where the resource resides. If this parameter is not specified, all regions are queried. |
cn-shanghai |
| ProductType |
string |
No |
Filters by the product type of the resource. If this parameter is not specified, all types are queried. |
oss |
| ResourceOwnerIds |
array |
No |
The list of resource owner IDs. This parameter is used in cross-account scenarios. If this parameter is left empty, data of the current account is returned by default. |
[123***7890] |
|
integer |
No |
The resource owner ID. |
123***7890 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BaseResponse<ListResult |
||
| Data |
object |
The returned data. |
|
| Content |
array<object> |
The collection of records returned in this request. |
|
|
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 |
The position from which the current call starts reading. An empty value indicates that all data has been read. |
b4fd3cffcacafd65e3818a0b9b2ff9a2 |
| MaxResults |
integer |
The maximum number of records returned in this request. |
10 |
| TotalCount |
integer |
The total number of records that match the request conditions. This is an optional parameter and may not be returned by default. |
50 |
| RequestId |
string |
The unique ID of the request. |
30FB202A-1D22-5394-AB02-4477CDFCF51F |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.