本篇文章给大家带来的内容是关于如何查询抢占式实例近 30 天内的历史价格,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
DescribeSpotPriceHistory
请求参数


返回参数

示例
请求示例
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"
}
]
}
}错误码
以下为本接口特有的错误码。更多错误码,请访问 API 错误中心。

以上就是如何查询抢占式实例近 30 天内的历史价格的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号