本篇文章給大家?guī)?lái)的內(nèi)容是關(guān)于如何查詢搶占式實(shí)例近 30 天內(nèi)的歷史價(jià)格,有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)你有所幫助。
DescribeSpotPriceHistory
請(qǐng)求參數(shù)
返回參數(shù)
示例
請(qǐng)求示例
https://ecs.aliyuncs.com/?Action=DescribeSpotHistory &RegionId=cn-hangzhou &ZoneId=cn-hanghzhou-c &NetworkType=vpc &InstanceType=ecs.t1.xsmall &IoOptimized=none &UtcStartTime=2017-08-22T08:45:08Z... &
返回示例
xml 格式
<describespotpricehistoryresponse> ????<requestid>xxxxxxxxxxxxxx</requestid> ????<nextoffset>1000</nextoffset> ????<spotprices> ????????<spotpricetype> ????????????<iooptimized>none</iooptimized> ????????????<originprice>0.028</originprice> ????????????<networktype>classic</networktype> ????????????<timestamp>2017-09-18T11:00:00Z</timestamp> ????????????<zoneid>cn-hangzhou-c</zoneid> ????????????<spotprice>0.006</spotprice> ????????????<instancetype>ecs.t1.xsmall</instancetype> ????????</spotpricetype> ????????<spotpricetype> ????????????<iooptimized>none</iooptimized> ????????????<originprice>0.028</originprice> ????????????<networktype>classic</networktype> ????????????<timestamp>2017-09-18T12:00:00Z</timestamp> ????????????<zoneid>cn-hangzhou-c</zoneid> ????????????<spotprice>0.006</spotprice> ????????????<instancetype>ecs.t1.xsmall</instancetype> ????</spotpricetype></spotprices></describespotpricehistoryresponse>
json 格式
{ ????"RequestId":"xxxxxxxxxxxxxx", ????"NextOffset":1000, ????"SpotPrices": ????{ ????????"SpotPriceType":[ ????????{ ????????????"IoOptimized":"none", ????????????"OriginPrice":0.028, ????????????"NetworkType":"classic", ????????????"Timestamp":"2017-09-18T11:00:00Z", ????????????"ZoneId":"cn-hangzhou-c","SpotPrice":0.006, ????????????"InstanceType":"ecs.t1.xsmall" ????????????} ????????] ????} }
錯(cuò)誤碼
以下為本接口特有的錯(cuò)誤碼。更多錯(cuò)誤碼,請(qǐng)?jiān)L問(wèn) API 錯(cuò)誤中心。
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END