Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of querying the Historical Price of preemptive instances in recent 30 days

Shulou Source: shulou.com Published: 2022-06-02 04:28:09 11月12日 Update

This article will explain in detail the method of querying the historical price of preemptive examples in the past 30 days. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

DescribeSpotPriceHistory

Request parameter

Return parameters

Example

Request example

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...&

Return the example

XML format

Xxxxxxxxxxxxxx 1000 none 0.028 classic 2017-09-18T11:00:00Z cn-hangzhou-c 0.006 ecs.t1.xsmall none 0.028 classic 2017-09-18T12:00:00Z cn- Hangzhou-c 0.006 ecs.t1.xsmall

JSON format

{"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"]}}

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

This is the end of the method of querying the historical price of preemptive instances in the past 30 days. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Errors more examples prices history examples methods queries parameters formats articles good practical content interfaces articles knowledge references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi Linux macOS Apple