QueryUserOmsData

描述

查询ECS产品按小时计量的数据信息。

请求参数

名称 类型 是否必填 说明
Table String ecs
DataType String 计量数据时间类型。Hour:小时
StartTime String 请求的开始时间。日期格式按照ISO8601标准标示,并需要使用UTC时间。格式:yyyy-mm-ddThh:mm:ssZ
EndTime String 请求的结束时间。日期格式按照ISO8601标准标示,并需要使用UTC时间。格式:yyyy-mm-ddThh:mm:ssZ
Maker String 设定结果从NextToken之后按字母排序的第一个开始返回。默认从头返回
PageSize Integer 分页查询每页行数,1~200,默认100行

返回参数

名称 类型 说明
HostId String 用户所属站点,cn为中国内地站
CPUs Integer 用户购买的CPU Core数量
InstanceId String 实例ID
OsDiskSize Integer 用户购买的OS盘大小,单位Bytes
ImageOS String 镜像OS类型
NetworkIn Integer 在StartTime和EndTime时间段内发生的从外部网络流入ECS的数据量,单位Bytes
Disk Integer 用户购买的数据盘容量,单位Bytes
NetworkOut Integer 在StartTime和EndTime时间段内发生的从ECS流出到外部网络的数据量,单位Bytes
InstanceTypeName String 实例类型名称
DataDiskSize Integer 数据盘大小,单位:GB
IoOptimized Integer 创建的 ECS 是否 I/O 优化
ImageSize Integer 镜像大小
Memory Integer 用户购买的内存容量,单位Bytes
Region String 地域
OsDiskType String 用户购买的OS盘类型
TmpDataDiskSize Integer 用户购买的本地磁盘容量,单位Bytes
ProviderId String 产品供应商对应编号,默认26842
SsdDataDiskSize Integer 用户购买的本地ssd磁盘容量,单位Bytes
CloudDataDiskSize Integer 用户购买的云磁盘容量,单位Bytes
Bandwidth Integer 用户购买的带宽,单位bps
EndTime String 计费数据发生结束时间
StartTime String 计费数据发生开始时间

请求示例

示例(按小时):

https://business.aliyuncs.com/? Action=QueryUserOmsData
&DataType=Hour
&EndTime=2019-04-18T09:15:54Z
&StartTime=2019-01-01T09:15:54Z
&Table=ecs
&<公共请求参数>

返回示例

示例(按小时):

{
    "Data": {
        "OmsData": [
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T11:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T10:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T12:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T11:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T13:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T12:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T14:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T13:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T15:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T14:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T16:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T15:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T17:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T16:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T18:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T17:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T19:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T18:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T20:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T19:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T21:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T20:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T22:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T21:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-01T23:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T22:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            },
            {
                "CPUs": "1",
                "InstanceId": "i-bp1hmito9v058zbua0eb",
                "OsDiskSize": "42949672960",
                "NetworkIn": "0",
                "NetworkOut": "0",
                "ImageOS": "Windows Server 2016",
                "Disk": "0",
                "InstanceTypeName": "ecs.t5-lc2m1.nano",
                "DataDiskSize": "0",
                "IoOptimized": "true",
                "ImageSize": "42949672960",
                "Memory": "536870912",
                "Region": "cn-hangzhou-dg-a01",
                "OsDiskType": "cloud_efficiency",
                "TmpDataDiskSize": "0",
                "ProviderId": "26842",
                "EndTime": "2019-01-02T00:00:00Z",
                "SsdDataDiskSize": "0",
                "StartTime": "2019-01-01T23:00:00Z",
                "CloudDataDiskSize": "0",
                "Bandwidth": "1048576"
            }
],
        "HostId": "cn",
        "Marker": "079:00000000000000002895:r:01_1711245632317223:02_vm:03_26842:04_i-bp1hmito9v058zbua0eb:05_000000000001546696800:"
    },
    "Message": "Successful!",
    "RequestId": "9A1F6898-EFAA-4C16-A38E-AA3A98FBF232",
    "Success": true,
    "Code": "Success"
}