如何查询抢占式实例近 30 天内的历史价格


本文摘自PHP中文网,作者坏嘻嘻,侵删。

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

DescribeSpotPriceHistory

请求参数

微信截图_20180920092836.png

微信截图_20180920092852.png

返回参数

微信截图_20180920092859.png

示例

请求示例

1

2

3

4

5

6

7

8

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 格式

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

<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 格式

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

{

    "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 错误中心。

微信截图_20180920092908.png

以上就是如何查询抢占式实例近 30 天内的历史价格的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Linux是学什么

Linux下如何查看系统和进程的运行状态

Linux中关于traceroute命令的使用详解

如何在ecs管理控制台上导入 ssh 密钥对

Linux怎么修改用户名

Linux有回收站吗

Linux 和 ubuntu的区别与联系

Linux下如何使用inode删除指定文件的方法示例

Linux find命令如何实现模糊查询

Linux找不到文件怎么办

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...