查询云产品的数据保护评分状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
bdrc:DescribeProducts |
none |
*全部资源
|
无 | 无 |
请求语法
GET /api/v1/products HTTP/1.1
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
ResourceCategoryId |
string |
否 |
资源分类 ID |
rc-000***123 |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
BaseResponse<ListResult |
||
Data |
object |
返回数据 |
|
Content |
array |
本次请求所返回的记录集合 |
|
object |
|||
ProductType |
string |
云产品类型,如 ecs,oss 等 |
oss |
EnableCheck |
boolean |
是否开启数据保护评分评估 |
true |
ProtectionScore |
integer |
数据保护评分(0 - 100 分) |
90 |
ProtectionScoreUpdatedTime |
integer |
数据保护评分更新时间(UNIX 时间) |
1726036498 |
TotalResourceCount |
integer |
资源总数 |
100 |
RiskyResourceCount |
integer |
有风险的资源数 |
1 |
CheckFailedResourceCount |
integer |
检查失败的资源数 |
1 |
DisableCheckResourceCount |
integer |
关闭检查的资源数 |
1 |
WaitForCheckResourceCount |
integer |
待检查的资源数 |
1 |
RiskCount |
integer |
有风险的检查项目数 |
1 |
CheckFailedCount |
integer |
失败的检查项个数 |
1 |
ProtectionScoreDistribution |
array |
不同分数段资源个数分布 |
|
object |
|||
Range |
object |
区间 |
|
From |
integer |
下限(包含边界) |
0 |
To |
integer |
上限(包含边界) |
60 |
Count |
integer |
区间内的个数 |
5 |
NextToken |
string |
用来表示当前调用返回读取到的位置,空代表数据已经读取完毕 |
b4fd3cffcacafd65e3818a0b9b2ff9a2 |
MaxResults |
integer |
本次请求所返回的最大记录条数 |
10 |
TotalCount |
integer |
本次请求条件下的数据总量,此参数为可选参数,默认可不返回 |
50 |
RequestId |
string |
请求的唯一标识 |
30FB202A-1D22-5394-AB02-4477CDFCF51F |
示例
正常返回示例
JSON
格式
{
"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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。