這篇文章將為大家詳細講解有關查詢搶占式實例近 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 天內歷史價格的方法就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。