ValuateTemplate - 模板实时询价

查询模板价格。

调试

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

调试

授权信息

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

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

bpstudio:ValuateTemplate

get

*Template

acs:bpstudio::{#accountId}:template/{#TemplateId}

请求参数

名称

类型

必填

描述

示例值

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

计价单位。

CNYUSD

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

计价单位

CNYUSD

Type

string

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







"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. 资源不存在

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

变更历史

更多信息,参考变更详情