文档

ValuateTemplate - 模板实时询价

查询模板价格。

调试

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

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
bpstudio:ValuateTemplate
  • 全部资源
    *

请求参数

名称类型必填描述示例值
TemplateIdstring

模板 ID

0KSHPM6SJU03TNZP
ClientTokenstring

幂等标记

1600765710019
AreaIdstring

区域 ID

cn-hangzhou
Instancesobject []

待替换实例列表

NodeTypestring

实例类型

ecs
NodeNamestring

图上实例名

ecs
Idstring

实例 ID

vpc-bp1q56trhtaq40vlq5oj
ResourceGroupIdstring

应用所属资源组 ID

rg-acfmyjt3c5om3fi
Variablesobject

对于带参数的模板,这个字段用于传递相关参数值,如果未传递,则使用默认值

string

支持类型

${var1}

返回参数

名称类型描述示例值
object
Messagestring

错误信息

Success
RequestIdstring

请求 ID

847C9D0A-BABD-589C-8A9C-6464409EDED9
Dataobject

询价结果

ResourceListobject []

询价返回结果集

NodeTypestring

资源类型

ecs
Errorstring

询价错误信息

InvalidSaleComponentFault : The request not refer to the correct order sale component.
TradePricedouble

交易金额

10.0
DiscountAmountdouble

减免金额

73.0
OriginalPricedouble

原价

83.0
PromotionNamestring

优惠信息

优惠信息
PriceUnitstring

计价单位。

CNY或USD
PriceListobject []

子询价列表

NodeTypestring

资源类型

eip
ResourceIdstring

资源 topo Id

1687225092
Errorstring

错误信息

ServiceUnavailable : The request has failed due to a temporary failure of the server.\r\nRequestId : 4AA302DB-3286-5589-8637-FF6D8507B7A9.
TradePricefloat

交易价格

0.01
DiscountAmountfloat

订单优惠金额

82.99
OriginalPricefloat

原价

83.0
PromotionNamestring

优惠信息

优惠信息
PriceUnitstring

计价单位

CNY或USD
Typestring

是否新购:
1.新建
2 已保有
0 不计入价格

"1"
Codestring

状态码

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错误码错误信息描述
200SuccessThe transaction is successful.交易成功
400ParameterEmptyYou must specify the request parameter.-
400bp.java.8004No permissions.无权限访问
400bp.java.appNameNotNullApplication name cannot be repeated.应用名称不能重复
400bp.java.nopowerNo permissions.没有权限
400bp.java.nopowerContactYou do not have permission to use this function. Please contact the main account or permission administrator to authorize the relevant permissions.您没有权限使用此功能,请联系主账号或权限管理员授权相关权限
400bp.java.tempNameNotNullApplication name cannot be repeated.应用名称不能重复
400bp.java.userNotExistThe user does not exist. The current user does not authenticate AliCloud with his real name.用户不存在, 当前用户未实名认证阿里云
404EntityNotExist.ResourceGroupThe resource group does not exist.资源组不存在
404EntityNotExist.ResourceIdThe resource does not exist.资源不存在
500bp.java.notDeleteThis template has been shared with other users and cannot be deleted.该模板已分享给其他用户,不能删除
500bp.java.serviceErrorThe server is abnormal. Please try again later.服务器异常,请稍后再试

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈