GetResourceModifyPrice
Queries the price and discount information required to scale out a subscription delivery group to a specified total number of nodes.
Operation description
This operation queries the resource scale-out price for an existing delivery group. A successful call returns only a quote and does not create an order or add nodes.
Before you call this operation, verify the following conditions:
The delivery group belongs to the current account and is located in a supported region in the Chinese mainland.
The product type is WUYING Cloud App or Cloud Browser, and the billing method is subscription and purchased by node. This operation does not apply to browser groups that use the pay-as-you-go billing method or are billed by monthly active users (MAU).
The order status of the delivery group is normal, a resource node pool is associated, and no paid but ineffective renewal or scale-in orders exist.
The target total number of nodes is greater than the current number of purchased nodes and does not exceed the node quota for the account in the corresponding region, product, and billing method.
Parameter relationships:
ProductType, AppInstanceGroupId, and Amount are all required parameters and must be specified at the same time.
ProductType must match the product corresponding to AppInstanceGroupId.
Amount is the total number of nodes after the scale-out, not the number of nodes added in this operation. The region, node specifications, and billing method are determined by the existing delivery group and do not need to be passed separately.
Call sequence:
Confirm the target delivery group and the current number of purchased nodes. For cloud app Common scenarios, you can first invoke ListAppInstanceGroup to obtain the identity, and then invoke GetAppInstanceGroup to query the configuration and NodePool.NodeAmount.
Invoke this operation with the same product type, delivery group identity, and target total number of nodes to read the price, coupons, and price calculation rules.
After confirming the quote, if you need to execute the scale-out, you can invoke ModifyNodePoolAmount and fill in the target total number in NodePool.NodeAmount as required by the operation. A successful price inquiry does not mean that an order has been created or the scale-out has been completed.
Example scenario:
If a cloud app delivery group currently has 1 purchased subscription node and the target is to scale out to 2 nodes, set ProductType to CloudApp, AppInstanceGroupId to the ID of the delivery group, and Amount to 2. Replace the masked resource ID with the actual value under the current account. The example quantity does not represent a default value or quota limit. The price example only illustrates the relationship between the original price, discount amount, and discounted price, and does not represent the fixed selling price of the specification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:GetResourceModifyPrice |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
Yes |
The product type, which must match the product to which the target delivery group belongs. Valid values:
This operation does not apply to browser groups that use the pay-as-you-go billing method or are billed by monthly active users (MAU). Valid values:
|
CloudApp |
| AppInstanceGroupId |
string |
Yes |
The ID of the delivery group to be scaled out. You can query only one delivery group at a time. The delivery group must belong to the current account and match ProductType. It must be purchased by node, use the subscription billing method, have a normal order status, and be associated with a resource node pool. You can obtain the cloud app delivery group ID by calling ListAppInstanceGroup. You can call GetAppInstanceGroup to further verify the current configuration. |
aig-9ciijz60n4xsv**** |
| Amount |
integer |
Yes |
The total number of subscription resource nodes after the scale-out. Unit: nodes. The value must be greater than the current number of purchased nodes in the delivery group and cannot exceed the node quota of the account. This parameter does not represent the number of added nodes or the number of sessions. For example, if there is currently 1 node and you want to scale out to 2 nodes, set this parameter to 2, which indicates a final total of 2 nodes. |
2 |
All three request parameters must be explicitly specified. ProductType and AppInstanceGroupId must correspond to the same product, and Amount indicates the total number of nodes after the scale-out.
For example, if 1 node is currently purchased and you plan to scale out to 2 nodes, set Amount to 2. Use the actual value of the resource ID under the current account.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned information, which includes the request ID and the resource scale-out price. |
||
| RequestId |
string |
The unique ID of the request, which is used to locate and troubleshoot request issues. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| Data |
object |
The quote for the resource scale-out of the delivery group, which includes the price details and price calculation rules. |
|
| Price |
object |
The price details of the scale-out. For the currency of the amount, see Currency. For the selection of coupons, see Promotions. |
|
| OriginalPrice |
number |
The original price of the scale-out, which is the amount before discounts. For the currency of the amount, see Currency. |
11.00 |
| DiscountPrice |
number |
The discount amount that can be deducted from the scale-out price, not the discount percentage. The discounted price TradePrice is obtained by subtracting this field from the original price OriginalPrice. For the currency of the amount, see Currency. |
1.00 |
| TradePrice |
number |
The discounted price of the scale-out. Calculation relationship: TradePrice = OriginalPrice - DiscountPrice. For the currency of the amount, see Currency. This operation returns only a quote and does not execute payment. |
10.00 |
| Currency |
string |
The currency code of the price amount. CNY indicates Chinese Yuan. Refer to this field to understand the amounts of OriginalPrice, DiscountPrice, and TradePrice. |
CNY |
| Promotions |
array<object> |
The list of optional coupons returned in the quote. Each item includes the coupon ID, name, description, and whether it is selected. |
|
|
object |
An optional coupon and its selection status in the quote. |
||
| OptionCode |
string |
The option code of the coupon, which identifies the coupon returned in the quote together with PromotionId. |
coupon**** |
| PromotionId |
string |
The ID of the coupon, which is used to identify the coupon returned in the quote. |
17440009**** |
| PromotionName |
string |
The name of the coupon, which is used to display the optional discount in the current quote. |
**Discount |
| PromotionDesc |
string |
The description of the coupon, which is used to display the information about the discount. |
**Discount during the event |
| Selected |
boolean |
Specifies whether the coupon is selected in the quote. Valid values:
Valid values:
|
true |
| Rules |
array<object> |
The list of price calculation rules for the quote, which is used to describe the applicable price or discount rules. |
|
|
object |
A price calculation rule. |
||
| RuleId |
integer |
The ID of the price calculation rule, which is used to identify the rule applied in the quote. |
102002100393**** |
| Description |
string |
The description of the price calculation rule, such as the user discount applicable to the current quote. |
User discount |
If the call is successful, the quote for the scale-out is returned in Data, and the request ID is returned in RequestId.
Data.Price includes the original price, deductible discount amount, discounted price, currency, and coupon selection status. Data.Rules includes the price calculation rules. The amount relationship is TradePrice = OriginalPrice - DiscountPrice. This operation does not create an order or execute payment.
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"Data": {
"Price": {
"OriginalPrice": 11,
"DiscountPrice": 1,
"TradePrice": 10,
"Currency": "CNY",
"Promotions": [
{
"OptionCode": "coupon****",
"PromotionId": "17440009****",
"PromotionName": "**Discount",
"PromotionDesc": "**Discount during the promotion",
"Selected": true
}
]
},
"Rules": [
{
"RuleId": 0,
"Description": "User discount"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.