全部產品
Search
文件中心

Cloud Architect Design Tools:ValuateTemplate - 模板即時詢價

更新時間:Dec 22, 2025

查詢範本價格。

調試

您可以在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>

詢價返回結果集

array<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.建立
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. 資源不存在

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情