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

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
bpstudio:ValuateTemplate |
get |
*Template
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
TemplateId |
string |
是 |
模板 ID |
0KSHPM6SJU03TNZP |
ClientToken |
string |
是 |
幂等标记 |
1600765710019 |
AreaId |
string |
否 |
区域 ID |
cn-hangzhou |
Instances |
array<object> |
否 |
待替换实例列表 |
|
object |
否 |
|||
NodeType |
string |
否 |
实例类型 |
ecs |
NodeName |
string |
否 |
图上实例名 |
ecs |
Id |
string |
否 |
实例 ID |
vpc-bp1q56trhtaq40vlq5oj |
ResourceGroupId |
string |
否 |
应用所属资源组 ID |
rg-acfmyjt3c5om3fi |
Variables |
object |
否 |
对于带参数的模板,这个字段用于传递相关参数值,如果未传递,则使用默认值 |
|
any |
否 |
支持类型 |
${var1} |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
Message |
string |
错误信息 |
Success |
RequestId |
string |
请求 ID |
847C9D0A-BABD-589C-8A9C-6464409EDED9 |
Data |
object |
询价结果 |
|
ResourceList |
array<object> |
询价返回结果集 |
|
object |
结果集 |
||
NodeType |
string |
资源类型 |
ecs |
Error |
string |
询价错误信息 |
InvalidSaleComponentFault : The request not refer to the correct order sale component. |
TradePrice |
number |
交易金额 |
10.0 |
DiscountAmount |
number |
减免金额 |
73.0 |
OriginalPrice |
number |
原价 |
83.0 |
PromotionName |
string |
优惠信息 |
优惠信息 |
PriceUnit |
string |
计价单位。 |
CNY或USD |
PriceList |
array<object> |
子询价列表 |
|
object |
子询价列表 |
||
NodeType |
string |
资源类型 |
eip |
ResourceId |
string |
资源 topo Id |
1687225092 |
Error |
string |
错误信息 |
ServiceUnavailable : The request has failed due to a temporary failure of the server.\r\nRequestId : 4AA302DB-3286-5589-8637-FF6D8507B7A9. |
TradePrice |
number |
交易价格 |
0.01 |
DiscountAmount |
number |
订单优惠金额 |
82.99 |
OriginalPrice |
number |
原价 |
83.0 |
PromotionName |
string |
优惠信息 |
优惠信息 |
PriceUnit |
string |
计价单位 |
CNY或USD |
Type |
string |
是否新购: |
"1" |
Code |
string |
状态码 |
200 |
示例
正常返回示例
JSON
格式
{
"Message": "Success",
"RequestId": "847C9D0A-BABD-589C-8A9C-6464409EDED9",
"Data": {
"ResourceList": [
{
"NodeType": "ecs",
"Error": "InvalidSaleComponentFault : The request not refer to the correct order sale component.",
"TradePrice": 10,
"DiscountAmount": 73,
"OriginalPrice": 83,
"PromotionName": "优惠信息",
"PriceUnit": "CNY或USD",
"PriceList": [
{
"NodeType": "eip",
"ResourceId": "1687225092",
"Error": "ServiceUnavailable : The request has failed due to a temporary failure of the server.\\r\\nRequestId : 4AA302DB-3286-5589-8637-FF6D8507B7A9.",
"TradePrice": 0.01,
"DiscountAmount": 82.99,
"OriginalPrice": 83,
"PromotionName": "优惠信息",
"PriceUnit": "CNY或USD\n",
"Type": "\"1\""
}
]
}
]
},
"Code": "200"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
200 | Success | The transaction is successful. | |
400 | ParameterEmpty | You must specify the request parameter. | 您必须指定请求参数。 |
400 | bp.java.8004 | No permissions. | 无权限访问 |
400 | bp.java.appNameNotNull | Application name cannot be repeated. | 应用名称不能重复 |
400 | bp.java.nopower | No permissions. | 没有权限 |
400 | bp.java.nopowerContact | You do not have permission to use this function. Please contact the main account or permission administrator to authorize the relevant permissions. | 您没有权限使用此功能,请联系主账号或权限管理员授权相关权限 |
400 | bp.java.tempNameNotNull | Application name cannot be repeated. | 应用名称不能重复 |
400 | bp.java.userNotExist | The user does not exist. The current user does not authenticate AliCloud with his real name. | 用户不存在, 当前用户未实名认证阿里云 |
500 | bp.java.notDelete | This template has been shared with other users and cannot be deleted. | 该模板已分享给其他用户,不能删除 |
500 | bp.java.serviceError | The server is abnormal. Please try again later. | 服务器异常,请稍后再试 |
404 | EntityNotExist.ResourceGroup | The resource group does not exist. | 资源组不存在 |
404 | EntityNotExist.ResourceId | The resource does not exist. | 资源不存在 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。