介绍
这篇文章将为大家详细讲解有关查询抢占式实例近30天内历史价格的方法,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
DescribeSpotPriceHistory
<强>请求示例强>
https://ecs.aliyuncs.com/?Action=DescribeSpotHistory ,RegionId=cn-hangzhou ,ZoneId=cn-hanghzhou-c ,NetworkType=vpc ,InstanceType=ecs.t1.xsmall ,IoOptimized=没有 ,UtcStartTime=2017 - 08 - 22 - t08:45:08z… ,& lt;公共请求参数在
<强>返回示例强>
<强> XML格式强>
& lt; DescribeSpotPriceHistoryResponse> & lt; RequestId> xxxxxxxxxxxxxx & lt; NextOffset> 1000 & lt;/NextOffset> & lt; SpotPrices> & lt; SpotPriceType> & lt; IoOptimized> none & lt; OriginPrice> 0.028 & lt;/OriginPrice> & lt; NetworkType> classic & lt; Timestamp> 2017 - 09 - 18 t11:00:00z & lt; ZoneId> cn-hangzhou-c & lt; SpotPrice> 0.006 & lt;/SpotPrice> & lt; InstanceType> ecs.t1.xsmall & lt;/SpotPriceType> & lt; SpotPriceType> & lt; IoOptimized> none & lt; OriginPrice> 0.028 & lt;/OriginPrice> & lt; NetworkType> classic & lt; Timestamp> 2017 - 09 - 18 t12:00:00z & lt; ZoneId> cn-hangzhou-c & lt; SpotPrice> 0.006 & lt;/SpotPrice> & lt; InstanceType> ecs.t1.xsmall & lt;/SpotPriceType> & lt;/SpotPrices> & lt;/DescribeSpotPriceHistoryResponse>
<强> JSON格式强>
{ “RequestId":“xxxxxxxxxxxxxx" “NextOffset": 1000, “SpotPrices": { “SpotPriceType":( { “IoOptimized":“none" “OriginPrice": 0.028, “NetworkType":“classic" “Timestamp":“2017 - 09 - 18 - t11:00:00z" “ZoneId":“cn-hangzhou-c"“SpotPrice": 0.006, “InstanceType":“ecs.t1.xsmall" } ] } }
以下为本接口特有的错误码。更多错误码,请访问API错误中心。
关于查询抢占式实例近30天内历史价格的方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看的到。