Queries the price for upgrading or downgrading an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
stream:QueryModifyVvpInstancePrice |
none |
*VvpInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
Region ID |
cn-beijing |
| InstanceId |
string |
Yes |
Order instance ID |
f-cn-wwo36qj4g06 |
| ResourceSpec |
object |
Yes |
Resource specifications. |
|
| Cpu |
integer |
Yes |
Number of CPUs after upgrade or downgrade. |
10 |
| MemoryGB |
integer |
Yes |
Memory size after upgrade or downgrade. Note
Memory size must be 4 times the number of CPUs. |
40 |
| Ha |
boolean |
No |
Select same-city high availability resources. |
true |
| HaVSwitchIds |
array |
No |
Same-city high availability secondary zone vSwitch group. |
|
|
string |
No |
Same-city high availability secondary zone vSwitch. |
[\"vsw-bp1qh4w76fg38oe91d3bj\"] |
|
| HaResourceSpec |
object |
No |
Same-city high availability resource description. |
|
| Cpu |
integer |
No |
Number of same-city high availability CPUs. |
20 |
| MemoryGB |
integer |
No |
Same-city high availability memory size. |
80 |
| UsePromotionCode |
boolean |
No |
||
| PromotionCode |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Request ID |
67F33190-946B-1105-B6A1-E2DF0426DD51 |
| Success |
boolean |
Success |
true |
| PriceInfo |
object |
Price information, including price and discount rules. |
|
| Currency |
string |
Currency unit. |
CNY |
| DiscountAmount |
number |
Discount |
655.2 |
| OriginalAmount |
number |
Original price |
4368 |
| TradeAmount |
number |
Final price, which is the original price minus the discount. |
3712.8 |
| Code |
string |
Error code |
ORDER.INST_HAS_UNPAID_ORDER |
| Message |
string |
Error message |
存在未支付订单,请先支付或取消原有订单 |
| OptionalPromotions |
array<object> |
Coupon group information. |
|
|
object |
Coupon information. |
||
| PromotionName |
string |
Coupon name |
¥1,391.5 优惠券 |
| PromotionDesc |
string |
Coupon description |
¥1,391.5 优惠券(有效期至 03/23/2022) |
| PromotionOptionNo |
string |
Coupon number |
500011220010099 |
| Selected |
boolean |
Use the coupon. Values are:
|
true |
| Rules |
array<object> |
Activity rule group. |
|
|
object |
Activity rule. |
||
| Description |
string |
Activity rule description. |
买满1年,立享官网价格8.5折优惠。 |
| RuleId |
integer |
Activity ID. |
587 |
| StandPrice |
string |
Official website discount price/direct sales contract discount price |
0.5 |
| StandDiscountPrice |
string |
Discounted price based on official website discount |
1231 |
| IsContractActivity |
boolean |
Whether the large customer discount is applied |
是 |
| DepreciateInfo |
object |
Price reduction information |
|
| OriginalStandAmount |
string |
Original total official website price |
12000 |
| CheapStandAmount |
string |
Total official website price after reduction |
6000 |
| CheapRate |
string |
Price reduction ratio |
0.5 |
| MonthPrice |
string |
Equivalent monthly price |
0.6 |
| StartTime |
string |
Price reduction start time |
2023-10-04T21:10:26+08:00 |
| IsShow |
boolean |
Whether to display the price reduction amount |
false |
| LxRequestId |
string |
67F33190-946B-1105-B6A1-E2DF0426DD51 |
Examples
Success response
JSON format
{
"RequestId": "67F33190-946B-1105-B6A1-E2DF0426DD51",
"Success": true,
"PriceInfo": {
"Currency": "CNY",
"DiscountAmount": 655.2,
"OriginalAmount": 4368,
"TradeAmount": 3712.8,
"Code": "ORDER.INST_HAS_UNPAID_ORDER",
"Message": "存在未支付订单,请先支付或取消原有订单",
"OptionalPromotions": [
{
"PromotionName": "¥1,391.5 优惠券",
"PromotionDesc": "¥1,391.5 优惠券(有效期至 03/23/2022)",
"PromotionOptionNo": "500011220010099",
"Selected": true
}
],
"Rules": [
{
"Description": "买满1年,立享官网价格8.5折优惠。",
"RuleId": 587
}
],
"StandPrice": "0.5",
"StandDiscountPrice": "1231",
"IsContractActivity": true,
"DepreciateInfo": {
"OriginalStandAmount": "12000",
"CheapStandAmount": "6000",
"CheapRate": "0.5",
"MonthPrice": "0.6",
"StartTime": "2023-10-04T21:10:26+08:00",
"IsShow": false
},
"LxRequestId": "67F33190-946B-1105-B6A1-E2DF0426DD51"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.