查询创建服务实例的预估价格。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
computenest:GetServiceEstimateCost |
get |
*Service
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
RegionId |
string |
否 |
地域 ID。 |
cn-hangzhou |
ServiceId |
string |
是 |
服务 ID。 |
service-12xxxxxx |
ServiceVersion |
string |
否 |
服务版本。 |
1 |
TemplateName |
string |
否 |
模板名称。 |
模板1 |
Parameters |
object |
否 |
部署服务实例输入的参数。 |
{ \"RegionId\": \"cn-hangzhou\", \"InstanceType\": \"ecs.g5.large\"} |
ClientToken |
string |
否 |
保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。 |
qwertyuiop |
TrialType |
string |
否 |
使用类型。可选值:
|
NotTrial |
SpecificationName |
string |
否 |
套餐规格名称。 |
套餐一 |
ServiceInstanceId |
string |
否 |
服务实例 ID。 |
si-d6ab3a63ccbb4b17xxxx |
Commodity |
object |
否 |
购买订单时间信息。 |
|
PayPeriodUnit |
string |
否 |
购买时长的单位,可选值:
|
Year |
PayPeriod |
integer |
否 |
购买时长。 |
1 |
CouponId |
string |
否 |
优惠券 ID |
302070970220 |
QuotationId |
string |
否 |
云市场 PrivateOffer Id |
17cde2e8-2f5d-xxxx-xxxx-5120dd215d66 |
OperationName |
string |
否 |
变配操作名称。 |
参数变配 |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
Schema of Response |
||
RequestId |
string |
请求 ID。 |
08ABBB67-39C9-5EE7-98E5-80486F75CE8D |
Resources |
object |
资源列表。 |
{ "EcsInstance" : { "Type" : "ALIYUN::ECS::Instance", "Success" : true, "Result" : { "Order" : { "Currency" : "CNY", "RuleIds" : [ "102111101338****" ], "DetailInfos" : { "ResourcePriceModel" : [ { "OriginalPrice" : 0, "DiscountPrice" : 0, "SubRules" : { "Rule" : [ ] }, "Resource" : "bandwidth", "TradePrice" : 0 }, { "OriginalPrice" : 0, "DiscountPrice" : 0, "SubRules" : { "Rule" : [ ] }, "Resource" : "image", "TradePrice" : 0 }, { "OriginalPrice" : 0.366666, "DiscountPrice" : 0.249012, "SubRules" : { "Rule" : [ ] }, "Resource" : "instanceType", "TradePrice" : 0.117654 }, { "OriginalPrice" : 0.055555, "DiscountPrice" : 0.037729, "SubRules" : { "Rule" : [ ] }, "Resource" : "systemDisk", "TradePrice" : 0.017826 } ] }, "TradeAmount" : 0.135, "OriginalAmount" : 0.422, "Coupons" : { "Coupon" : [ ] }, "DiscountAmount" : 0.287 }, "OrderSupplement" : { "PriceUnit" : "/Hour", "ChargeType" : "PostPaid", "Quantity" : 1, "PriceType" : "Total" }, "Rules" : { "Rule" : [ { "RuleDescId" : "102111101338****", "Name" : "合同优惠_多计费项优惠_3.208750折" } ] } } } } |
any |
资源列表。 |
{ "EcsInstance" : { "Type" : "ALIYUN::ECS::Instance", "Success" : true, "Result" : { "Order" : { "Currency" : "CNY", "RuleIds" : [ "102111101338****" ], "DetailInfos" : { "ResourcePriceModel" : [ { "OriginalPrice" : 0, "DiscountPrice" : 0, "SubRules" : { "Rule" : [ ] }, "Resource" : "bandwidth", "TradePrice" : 0 }, { "OriginalPrice" : 0, "DiscountPrice" : 0, "SubRules" : { "Rule" : [ ] }, "Resource" : "image", "TradePrice" : 0 }, { "OriginalPrice" : 0.366666, "DiscountPrice" : 0.249012, "SubRules" : { "Rule" : [ ] }, "Resource" : "instanceType", "TradePrice" : 0.117654 }, { "OriginalPrice" : 0.055555, "DiscountPrice" : 0.037729, "SubRules" : { "Rule" : [ ] }, "Resource" : "systemDisk", "TradePrice" : 0.017826 } ] }, "TradeAmount" : 0.135, "OriginalAmount" : 0.422, "Coupons" : { "Coupon" : [ ] }, "DiscountAmount" : 0.287 }, "OrderSupplement" : { "PriceUnit" : "/Hour", "ChargeType" : "PostPaid", "Quantity" : 1, "PriceType" : "Total" }, "Rules" : { "Rule" : [ { "RuleDescId" : "102111101338****", "Name" : "合同优惠_多计费项优惠_3.208750折" } ] } } } } |
|
Commodity |
object |
云市场购买订单信息。 |
{'cmgj00059839': {'Result': {'InquiryType': 'Buy', 'Order': {'Currency': 'CNY', 'DiscountAmount': '0.0', 'TradeAmount': '0.01', 'OriginalAmount': '0.01'}}}} |
object |
云市场购买订单信息。 |
||
Result |
object |
Result 模型。 |
|
Order |
object |
订单信息。 |
|
Currency |
string |
货币代码。 |
CNY |
TradeAmount |
string |
优惠后。 |
9.99 |
DiscountAmount |
string |
抵扣金额。 |
1.99 |
OriginalAmount |
string |
优惠前。 |
11.98 |
InquiryType |
string |
询价类型,可选值:
|
Buy |
SubOrders |
object |
订单子项。 |
|
SubOrder |
array<object> |
订单子项。 |
|
object |
订单子项对象。 |
||
ModuleInstance |
array<object> |
模块(实例)信息。 |
|
object |
模块(实例)对象。 |
||
ModuleId |
integer |
模块 ID。 |
1234 |
ModuleName |
string |
模块名称。 |
数据库类型 |
ModuleCode |
string |
模块代码。 |
rds_dbtype |
TotalProductFee |
number |
产品原价(元)。 |
10.00 |
DiscountFee |
number |
折扣费用(元)。 |
1.99 |
PayFee |
number |
实付金额(元)。 |
8.01 |
PriceUnit |
string |
价格单位。 |
元/GB/小时 |
IsPricingModule |
boolean |
是否计价项。 |
true |
NeedOrderPay |
boolean |
在订单中是否需要支付。 |
true |
PriceType |
string |
定价类型。 |
hourPrice |
ModuleAttrs |
array<object> |
模块属性。 |
|
object |
模块属性对象。 |
||
Type |
integer |
属性类型,可选值:
|
3 |
Name |
string |
属性名称 |
20GB |
Code |
string |
属性代码 |
rds_storage |
Value |
string |
属性值 |
20 |
Unit |
string |
值单位 |
GB |
ModuleNameEn |
string |
模块英文名称。 |
数据单元 |
PriceUnitEn |
string |
价格单位英文名称 |
元/月 |
Coupons |
array<object> |
优惠券。 |
|
object |
优惠券。 |
||
CanPromFee |
number |
可支付金额。 |
9.99 |
CouponDesc |
string |
优惠券描述 |
10元优惠券(有效期至2024年9月8日) |
CouponName |
string |
优惠券名称 |
10元优惠券 |
CouponOptionNo |
string |
优惠券编号。 |
50008800000xxxx |
Selected |
boolean |
是否选中。 |
true |
示例
正常返回示例
JSON
格式
{
"RequestId": "08ABBB67-39C9-5EE7-98E5-80486F75CE8D",
"Resources": {
"key": "{\n \"EcsInstance\" : {\n \"Type\" : \"ALIYUN::ECS::Instance\",\n \"Success\" : true,\n \"Result\" : {\n \"Order\" : {\n \"Currency\" : \"CNY\",\n \"RuleIds\" : [ \"102111101338****\" ],\n \"DetailInfos\" : {\n \"ResourcePriceModel\" : [ {\n \"OriginalPrice\" : 0,\n \"DiscountPrice\" : 0,\n \"SubRules\" : {\n \"Rule\" : [ ]\n },\n \"Resource\" : \"bandwidth\",\n \"TradePrice\" : 0\n }, {\n \"OriginalPrice\" : 0,\n \"DiscountPrice\" : 0,\n \"SubRules\" : {\n \"Rule\" : [ ]\n },\n \"Resource\" : \"image\",\n \"TradePrice\" : 0\n }, {\n \"OriginalPrice\" : 0.366666,\n \"DiscountPrice\" : 0.249012,\n \"SubRules\" : {\n \"Rule\" : [ ]\n },\n \"Resource\" : \"instanceType\",\n \"TradePrice\" : 0.117654\n }, {\n \"OriginalPrice\" : 0.055555,\n \"DiscountPrice\" : 0.037729,\n \"SubRules\" : {\n \"Rule\" : [ ]\n },\n \"Resource\" : \"systemDisk\",\n \"TradePrice\" : 0.017826\n } ]\n },\n \"TradeAmount\" : 0.135,\n \"OriginalAmount\" : 0.422,\n \"Coupons\" : {\n \"Coupon\" : [ ]\n },\n \"DiscountAmount\" : 0.287\n },\n \"OrderSupplement\" : {\n \"PriceUnit\" : \"/Hour\",\n \"ChargeType\" : \"PostPaid\",\n \"Quantity\" : 1,\n \"PriceType\" : \"Total\"\n },\n \"Rules\" : {\n \"Rule\" : [ {\n \"RuleDescId\" : \"102111101338****\",\n \"Name\" : \"合同优惠_多计费项优惠_3.208750折\"\n } ]\n }\n }\n }\n }"
},
"Commodity": {
"key": {
"Result": {
"Order": {
"Currency": "CNY",
"TradeAmount": "9.99",
"DiscountAmount": "1.99",
"OriginalAmount": "11.98"
},
"InquiryType": "Buy",
"SubOrders": {
"SubOrder": [
{
"ModuleInstance": [
{
"ModuleId": 1234,
"ModuleName": "数据库类型",
"ModuleCode": "rds_dbtype",
"TotalProductFee": 10,
"DiscountFee": 1.99,
"PayFee": 8.01,
"PriceUnit": "元/GB/小时",
"IsPricingModule": true,
"NeedOrderPay": true,
"PriceType": "hourPrice",
"ModuleAttrs": [
{
"Type": 3,
"Name": "20GB",
"Code": "rds_storage",
"Value": "20",
"Unit": "GB"
}
],
"ModuleNameEn": "数据单元",
"PriceUnitEn": "元/月"
}
]
}
]
},
"Coupons": [
{
"CanPromFee": 9.99,
"CouponDesc": "10元优惠券(有效期至2024年9月8日)",
"CouponName": "10元优惠券",
"CouponOptionNo": "50008800000xxxx",
"Selected": true
}
]
}
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。