查詢範本價格。
調試
您可以在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> |
詢價返回結果集 |
|
|
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" |
| 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. | 資源不存在 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。