本文档介绍如何查询ECI的消费记录。

控制台查询

账单总览

  1. 登录到阿里云控制台。
  2. 进入账单总览页面。
  3. 选择需要查询的账期信息,查看产品消费汇总信息。

小时出账账单

  1. 登录到阿里云控制台。
  2. 进入账单页面。
  3. 选择需要查询的账期信息,查看产品小时级别账单汇总信息。
注意 ECI出账周期为1小时,前台查询账单存在一定延迟,一般3小时后您可以查看该小时内的账单信息。例如:0点到1点的帐单,您可以在3点查看。

实例明细账单

  1. 登录到阿里云控制台。
  2. 进入账单明细页面。
  3. 选择需要查询的账期信息,查看实例账单明细信息。

以实例为单位,支持的统计项包括:

  • 计费项,一个ECI实例根据您创建ECI时资源的申明方式,包含2种计费项:CPU和内存,以及ECS规格。
  • 实例,提供实例级别费用统计。

以实例或者计费项为单位,支持的统计周期包括:

  • 账期,统计该实例以实例维度或者计费项维度账期总费用。
  • 按天,统计该实例以实例维度或者计费项维度账期内每天汇总费用。
  • 明细,统计该实例以实例维度或者计费项维度每小时出账周期内的费用明细。

API接口查询

API接口查询使用阿里云OpenAPI Explorer进行演示。阿里云 OpenAPI Explorer 是一个提供在线API调试功能的平台。集成了阿里云各个产品所提供的API,具有快速检索、查阅文档、在线调试、生成SDK等功能。

账单总览

  1. 登录阿里云控制台。
  2. 进入QueryBillOverview接口调试页面。
  3. 输入账期及产品code信息,获取返回记录。
{
	"Message": "Successful!",
	"RequestId": "972EADFB-D926-4560-97F6-**********",
	"Data": {
		"BillingCycle": "2020-02",
		"AccountID": "178**************",
		"Items": {
			"Item": [
				{
					"DeductedByCoupons": 0,
					"RoundDownDiscount": 1.89875,
					"ProductName": "弹性容器实例 ECI",
					"ProductDetail": "弹性容器实例 ECI",
					"ProductCode": "eci",
					"ProductType": "eci_betav1",
					"OutstandingAmount": 730.28,
					"DeductedByCashCoupons": 0,
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 11.512014,
					"Item": "PayAsYouGoBill",
					"SubscriptionType": "PayAsYouGo",
					"PretaxGrossAmount": 743.690764,
					"PretaxAmount": 730.28,
					"Currency": "CNY"
				}
			]
		},
		"AccountName": "*******"
	},
	"Code": "Success",
	"Success": true
}
小时出账账单
  1. 登录阿里云控制台。
  2. 进入QueryBill接口调试页面。
  3. 输入账期及产品code信息,获取返回记录。
{
	"Message": "Successful!",
	"RequestId": "ABC66FBA-8D45-40C6-AB16-******",
	"Data": {
		"BillingCycle": "2020-02",
		"TotalCount": 696,
		"AccountID": "178**********",
		"PageSize": 2,
		"PageNum": 1,
		"Items": {
			"Item": [
				{
					"Status": "PayUnsettle",
					"DeductedByCoupons": 0,
					"RoundDownDiscount": 0.00625,
					"ProductName": "弹性容器实例 ECI",
					"ProductDetail": "弹性容器实例 ECI",
					"ProductCode": "eci",
					"SubOrderId": "",
					"ProductType": "eci_betav1",
					"DeductedByCashCoupons": 0,
					"OutstandingAmount": 0.92,
					"PaymentTime": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 0.396966,
					"UsageEndTime": "2020-03-01 00:00:00",
					"Item": "PayAsYouGoBill",
					"SubscriptionType": "PayAsYouGo",
					"PretaxGrossAmount": 1.323216,
					"OwnerID": "",
					"PretaxAmount": 0.92,
					"Currency": "CNY",
					"UsageStartTime": "2020-02-29 23:00:00",
					"RecordID": "2020021411289567"
				},
				{
					"Status": "PayUnsettle",
					"DeductedByCoupons": 0,
					"RoundDownDiscount": 0.00625,
					"ProductName": "弹性容器实例 ECI",
					"ProductDetail": "弹性容器实例 ECI",
					"ProductCode": "eci",
					"SubOrderId": "",
					"ProductType": "eci_betav1",
					"DeductedByCashCoupons": 0,
					"OutstandingAmount": 0.92,
					"PaymentTime": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 0.396966,
					"UsageEndTime": "2020-02-29 23:00:00",
					"Item": "PayAsYouGoBill",
					"SubscriptionType": "PayAsYouGo",
					"PretaxGrossAmount": 1.323216,
					"OwnerID": "",
					"PretaxAmount": 0.92,
					"Currency": "CNY",
					"UsageStartTime": "2020-02-29 22:00:00",
					"RecordID": "2020021411289562"
				}
			]
		},
		"AccountName": "*****"
	},
	"Code": "Success",
	"Success": true
}

实例明细账单

  1. 登录阿里云控制台。
  2. 进入QueryInstanceBill接口调试页面。
  3. 输入账期及产品code信息,获取返回记录。
{
	"Message": "Successful!",
	"RequestId": "7AF0F015-E6D4-45D8-8C59-**********",
	"Data": {
		"BillingCycle": "2020-02",
		"TotalCount": 4,
		"AccountID": "1783**********",
		"PageSize": 2,
		"PageNum": 1,
		"Items": {
			"Item": [
				{
					"InstanceSpec": "",
					"ProductName": "弹性容器实例 ECI",
					"InstanceID": "eci-2ze162kf0hr17o5dfedv",
					"DeductedByCashCoupons": 0,
					"ListPriceUnit": "",
					"BillingDate": "",
					"ListPrice": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 3.837338,
					"SubscriptionType": "PayAsYouGo",
					"Item": "PayAsYouGoBill",
					"PretaxGrossAmount": 306.986112,
					"InstanceConfig": "",
					"Currency": "CNY",
					"CostUnit": "未分配",
					"ResourceGroup": "",
					"BillingType": "其它",
					"Usage": "",
					"DeductedByCoupons": 0,
					"ProductDetail": "弹性容器实例 ECI",
					"ProductCode": "eci",
					"Zone": "",
					"ProductType": "eci_betav1",
					"OutstandingAmount": 302.47,
					"BillingItem": "",
					"NickName": "",
					"IntranetIP": "",
					"ServicePeriod": "2505600",
					"DeductedByResourcePackage": "",
					"UsageUnit": "",
					"OwnerID": "1783**********",
					"PretaxAmount": 302.47,
					"InternetIP": "",
					"Region": "",
					"Tag": ""
				},
				{
					"InstanceSpec": "",
					"ProductName": "弹性容器实例 ECI",
					"InstanceID": "eci-2ze17odcc0em3ivkfrmg",
					"DeductedByCashCoupons": 0,
					"ListPriceUnit": "",
					"BillingDate": "",
					"ListPrice": "",
					"PaymentAmount": 0,
					"DeductedByPrepaidCard": 0,
					"InvoiceDiscount": 3.837338,
					"SubscriptionType": "PayAsYouGo",
					"Item": "PayAsYouGoBill",
					"PretaxGrossAmount": 306.986112,
					"InstanceConfig": "",
					"Currency": "CNY",
					"CostUnit": "未分配",
					"ResourceGroup": "",
					"BillingType": "其它",
					"Usage": "",
					"DeductedByCoupons": 0,
					"ProductDetail": "弹性容器实例 ECI",
					"ProductCode": "eci",
					"Zone": "",
					"ProductType": "eci_betav1",
					"OutstandingAmount": 302.18,
					"BillingItem": "",
					"NickName": "",
					"IntranetIP": "",
					"ServicePeriod": "2505600",
					"DeductedByResourcePackage": "",
					"UsageUnit": "",
					"OwnerID": "1783**********",
					"PretaxAmount": 302.18,
					"InternetIP": "",
					"Region": "",
					"Tag": ""
				}
			]
		},
		"AccountName": "******"
	},
	"Code": "Success",
	"Success": true
}