查询E-HPC支持的镜像市场镜像价格。
查询E-HPC支持的镜像市场镜像价格。
名称 | 类型 | 是否必需 | 默认值 | 描述 |
---|---|---|---|---|
Action | String | 是 | - | 操作接口名,系统规定参数,取值:DescribeImagePrice。 |
RegionId | String | 是 | - | 地域ID。 |
ImageId | String | 是 | 镜像ID | |
PriceUnit | String | 是 | - | 价格单位:Hour, Week, Month, Year |
SkuCode | String | 是 | - | 按量付费:ECS, 预付费: package |
Amount | Integer | 是 | - | 购买数量 |
Period | Integer | 是 | - | 购买时长 |
OrderType | String | 否 | - | 订单类型:instance-buy |
除公共返回参数外返回如下结果:
字段 | 类型 | 描述 |
---|---|---|
OriginalPrice | Float | 原价 |
TradePrice | Float | 交易价格 |
DiscountPrice | Float | 折扣 |
ProductCode | String | - |
PromotionRules | Array< PromotionRule> | 自定义促销规则列表 |
https://ehpc.cn-hangzhou.aliyuncs.com/?Action=DescribeImagePrice&RegionId=cn-hangzhou&ImageId=<镜像ID>&PriceUnit=Hour&SkuCode=package&Amount=1&Period=2&<公共请求参数>
<DescribeImagePriceResponse>
<code>200</code>
<data>
<DiscountPrice>0</DiscountPrice>
<ProductCode>cmjj028279</ProductCode>
<OriginalPrice>0.8</OriginalPrice>
<TradePrice>0.8</TradePrice>
<PromotionRules></PromotionRules>
</data>
<requestId>47ca3ac4-2a03-48f1-8bf2-ba6de0f3fd5a</requestId>
<successResponse>true</successResponse>
</DescribeImagePriceResponse>
{
"code":"200",
"data":{
"DiscountPrice":0.0,
"ProductCode":"cmjj028279",
"OriginalPrice":0.8,"TradePrice":0.8,
"PromotionRules":{
"PromotionRule":[]
}
},
"requestId":"47ca3ac4-2a03-48f1-8bf2-ba6de0f3fd5a",
"successResponse":true
}
在文档使用中是否遇到以下问题
更多建议
匿名提交