Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report