调用DescribeEnsResourceUsage进行ENS查询虚机、磁盘、网络用量汇总。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| ExpiredStartTime | string | 否 | vm 实例使用结束时间查询开始范围,格式: yyyy-MM-dd 或 yyyy-MM-dd HH:mm:ss。 | 2018-06-15T09:07:23Z |
| ExpiredEndTime | string | 否 | vm 实例使用结束时间查询结束范围,格式: yyyy-MM-dd 或 yyyy-MM-dd HH:mm:ss。 | 2018-06-15T09:07:23Z |
返回参数
示例
正常返回示例
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\t 请求ID。",
"EnsResourceUsage": [
{
"ServiceType": 1,
"InstanceCount": 2,
"CpuSum": 2,
"GpuSum": 6,
"DownCount": 7,
"ExpiredCount": 1,
"ExpiringCount": 0,
"RunningCount": 19,
"DiskCount": 4,
"StorageSum": 5000,
"ComputeResourceCount": 2
}
]
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | - |
| 400 | Invalid%s | The specified parameter %s is invalid. | 参数不正确 |
| 400 | Missing%s | You must specify the parameter %s. | 参数为必填 |
| 400 | NoPermission | Permission denied. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|
暂无变更历史
