テンプレートの価格を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
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 |
リソースのトポロジー 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 |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。