查询资产中服务器的统计信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:DescribeFieldStatistics |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
服务器所在的地域的 ID。 |
cn-hangzhou |
| MachineTypes |
string |
否 |
要查询的资产类型。不指定资产类型,即查询所有类型资产的统计信息。取值:
|
ecs |
| ResourceDirectoryAccountId |
integer |
否 |
资源目录成员账号主账号 ID。 说明
调用 DescribeMonitorAccounts 接口可以获取该参数。 |
1232428423234**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求返回数据。 |
||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
7E0618A9-D5EF-4220-9471-C42B5E92719F |
| GroupedFields |
object |
查询到的服务器资产的信息。 |
|
| OfflineInstanceCount |
integer |
离线服务器的数量。 |
21 |
| NoRiskInstanceCount |
integer |
无风险资产数量。 |
10 |
| UnKnowStatusInstanceCount |
integer |
未知资产开启状态的数量。 |
1 |
| RegionCount |
integer |
服务器所属的地域数量。 |
11 |
| NewInstanceCount |
integer |
新增服务器数量。 |
10 |
| ExposedInstanceCount |
integer |
暴露资产数。 |
1 |
| GroupCount |
integer |
服务器组数量。 |
20 |
| TencentInstanceCount |
integer |
第三方云服务器数量。 |
10 |
| GeneralAssetCount |
integer |
一般资产数量。 |
10 |
| InstanceSyncTaskCount |
integer |
您查询时指定的资产类型下的任务数量。如果查询时没有指定资产类型,此处的数量是您资产中所有服务器和云产品的数量之和。 |
10 |
| UnprotectedInstanceCount |
integer |
未受保护的资产数量。 |
10 |
| ImportantAssetCount |
integer |
重要资产数量。 |
10 |
| TestAssetCount |
integer |
测试资产数量。 |
10 |
| VpcCount |
integer |
专有网络 VPC 数量。 |
5 |
| InstanceCount |
integer |
您查询时指定的资产类型下的所有资产数量。如果查询时没有指定资产类型,此处的数量是您资产中所有服务器和云产品的数量之和。 |
100 |
| PauseInstanceCount |
integer |
暂停的服务器数量。 |
10 |
| IdcInstanceCount |
integer |
云安全中心支持检测的资产数量。 |
100 |
| NotRunningStatusCount |
integer |
未启动(未开机)的服务器数量。 |
10 |
| AliYunInstanceCount |
integer |
阿里云服务器组所属的资产数量。 |
100 |
| RiskInstanceCount |
integer |
存在风险的资产数量。 |
90 |
| HuaweiInstanceCount |
integer |
第三方云服务器数量。 |
0 |
| AwsInstanceCount |
integer |
第三方云服务器数量。 |
100 |
| OutMachineInstanceCount |
integer |
云外实例数量。 |
20 |
| TripartiteInstanceCount |
integer |
轻量应用服务器数量。 |
2 |
| AzureInstanceCount |
integer |
第三方云服务器数量。 |
5 |
| InstanceCoreCount |
integer |
您查询时指定的资产类型下的所有资产计算核数。如果查询时没有指定资产类型,此处的数量是您资产中所有服务器和云产品的计算核数之和。 |
301 |
| RiskInstanceCoreCount |
integer |
存在风险的资产计算核数。 |
201 |
| ExposedInstanceCoreCount |
integer |
暴露资产计算核数。 |
30 |
| UnprotectedInstanceCoreCount |
integer |
未受保护的资产的计算核数。 |
30 |
| NotRunningStatusCoreCount |
integer |
未启动(未开机)服务器的计算核数。 |
30 |
| NewInstanceCoreCount |
integer |
新增服务器的计算核数。 |
30 |
| NotBindMachineInstanceCount |
integer |
您查询时指定的资产类型下的未绑定授权的资产类型数量。 |
10 |
| VolcengineInstanceCount |
integer |
第三方云服务器数量。 |
10 |
| GoogleInstanceCount |
integer |
第三方云服务器数量。 |
10 |
| BaiduInstanceCount |
integer |
第三方云服务器数量。 |
5 |
| UcloudInstanceCount |
integer |
第三方云服务器数量。 |
5 |
| StateCloudInstanceCount |
integer |
第三方云服务器数量。 |
5 |
| KingsoftInstanceCount |
integer |
第三方云服务器数量。 |
5 |
示例
正常返回示例
JSON格式
{
"RequestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
"GroupedFields": {
"OfflineInstanceCount": 21,
"NoRiskInstanceCount": 10,
"UnKnowStatusInstanceCount": 1,
"RegionCount": 11,
"NewInstanceCount": 10,
"ExposedInstanceCount": 1,
"GroupCount": 20,
"TencentInstanceCount": 10,
"GeneralAssetCount": 10,
"InstanceSyncTaskCount": 10,
"UnprotectedInstanceCount": 10,
"ImportantAssetCount": 10,
"TestAssetCount": 10,
"VpcCount": 5,
"InstanceCount": 100,
"PauseInstanceCount": 10,
"IdcInstanceCount": 100,
"NotRunningStatusCount": 10,
"AliYunInstanceCount": 100,
"RiskInstanceCount": 90,
"HuaweiInstanceCount": 0,
"AwsInstanceCount": 100,
"OutMachineInstanceCount": 20,
"TripartiteInstanceCount": 2,
"AzureInstanceCount": 5,
"InstanceCoreCount": 301,
"RiskInstanceCoreCount": 201,
"ExposedInstanceCoreCount": 30,
"UnprotectedInstanceCoreCount": 30,
"NotRunningStatusCoreCount": 30,
"NewInstanceCoreCount": 30,
"NotBindMachineInstanceCount": 10,
"VolcengineInstanceCount": 10,
"GoogleInstanceCount": 10,
"BaiduInstanceCount": 5,
"UcloudInstanceCount": 5,
"StateCloudInstanceCount": 5,
"KingsoftInstanceCount": 5
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NoPermission | no permission | 无此服务的访问权限。 |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | 资源目录账号校验无权限。 |
| 500 | RdCheckInnerError | Resource directory account service internal error. | 资源目录账号服务内部错误。 |
| 500 | ServerError | ServerError | 服务故障,请稍后重试! |
| 403 | NoPermission | caller has no permission | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。