All Products
Search
Document Center

App Streaming:GetResourcePrice

Last Updated:Jun 17, 2026

Queries the price information of a resource.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

appstreaming:GetResourcePrice

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

NodeInstanceType

string

No

The ID of the resource instance type to purchase. You can call the ListNodeInstanceType operation to obtain the ID.

Either AppInstanceType or NodeInstanceType must have a value. If both have values, NodeInstanceType is used.

Valid values:

  • appstreaming.vgpu.8c16g.4g :

    无影-图形型_8 核 16G 4G 显存

  • appstreaming.general.8c16g :

    无影-通用型_8 核 16G

  • appstreaming.general.4c8g :

    无影-通用型_4 核 8G

  • appstreaming.vgpu.14c93g.12g :

    无影-图形型_14 核 93G 12G 显存

  • appstreaming.vgpu.8c31g.16g :

    无影-图形型_8 核 31G 16G 显存

appstreaming.vgpu.4c8g.2g

ProductType

string

Yes

The product type.

Valid values:

  • CloudApp :

    WUYING Cloud Application.

CloudApp

ChargeType

string

Yes

The billing method.

Valid values:

  • PostPaid :

    pay-as-you-go.

  • PrePaid :

    subscription.

PrePaid

Period

integer

Yes

The numeric part of the purchase duration. This parameter is used together with PeriodUnit to specify the complete purchase duration.

1

PeriodUnit

string

Yes

The unit part of the purchase duration. This parameter is used together with Period to specify the complete purchase duration. The following combinations of Period and PeriodUnit are supported:

  • 1 Week (1 week)

  • 1 Month (1 month)

  • 2 Month (2 months)

  • 3 Month (3 months)

  • 6 Month (6 months)

  • 1 Year (1 year)

  • 2 Year (2 years)

  • 3 Year (3 years)

Note

This parameter is case-sensitive. For example, Week is valid, but week is invalid. If the request parameters do not match the supported combinations, such as 2 Week, the API call succeeds but an error occurs during the order placement stage.

Valid values:

  • Month :

    month.

  • Year :

    year.

  • Week :

    week.

Week

Amount

integer

Yes

The quantity of resources to purchase.

1

BizRegionId

string

Yes

The region ID of the delivery group. For more information about supported regions, see Limits.

Valid values:

  • cn-shanghai :

    China (Shanghai).

  • cn-hangzhou :

    China (Hangzhou).

cn-hangzhou

AppInstanceType

string

No

The ID of the session instance type to purchase. You can call the ListAppInstanceType operation to obtain the ID.

Either AppInstanceType or NodeInstanceType must have a value. If both have values, NodeInstanceType is used.

appstreaming.general

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Code

string

The error code returned when an error occurs.

InvalidParameter.ProductType

Message

string

The error message returned when an error occurs.

The parameter ProductType is invalid.

PriceModel

object

The price object.

This parameter is returned when the request parameter NodeInstanceType has a value.

Price

object

The price details.

OriginalPrice

string

The original price.

11.00

DiscountPrice

string

The discount. The actual price is calculated based on the following formula: Actual price = Original price - Discount.

1.00

TradePrice

string

The actual price. The actual price is calculated based on the following formula: Actual price = Original price - Discount.

10.00

Currency

string

The currency type.

CNY

Promotions

array<object>

The coupon metadata.

object

OptionCode

string

The coupon code.

coupon****

PromotionId

string

The coupon ID.

17440009****

PromotionName

string

The coupon name.

**优惠

PromotionDesc

string

The coupon description.

**活动期间的优惠

Selected

boolean

Indicates whether the coupon was used.

Valid values:

  • true

  • false

Valid values:

  • true :
  • false :

true

Rules

array<object>

The pricing rules.

object

The pricing rules.

RuleId

integer

The ID of the price calculation rule.

102002100393****

Description

string

The description of the price calculation rule.

用户优惠

PriceList

array<object>

The list of price objects.

This parameter is returned when the request parameter AppInstanceType has a value.

array<object>

The price object.

PriceType

string

The price type.

Valid values:

  • Connected :

    in-use phase.

  • Standby :

    pre-launch phase.

Standby

Price

object

The price details.

OriginalPrice

string

The original price.

6700

DiscountPrice

string

The discount. The actual price is calculated based on the following formula: Actual price = Original price - Discount.

999.0

TradePrice

string

The actual price. The actual price is calculated based on the following formula: Actual price = Original price - Discount.

5278.0

Currency

string

The currency type.

CNY

Promotions

array<object>

The coupon metadata.

object

OptionCode

string

The coupon code.

coupon****

PromotionId

string

The coupon ID.

1847709****

PromotionName

string

The coupon name.

**优惠

PromotionDesc

string

The coupon description.

**活动期间的优惠

Selected

boolean

Indicates whether the coupon was used.

Valid values:

  • true

  • false

Valid values:

  • true :
  • false :

true

Rules

array<object>

The pricing rules.

object

The pricing rules.

RuleId

integer

The ID of the price calculation rule.

260904273633****

Description

string

The description of the price calculation rule.

用户优惠。

Examples

Success response

JSON format

{
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "Code": "InvalidParameter.ProductType",
  "Message": "The parameter ProductType is invalid.",
  "PriceModel": {
    "Price": {
      "OriginalPrice": "11.00",
      "DiscountPrice": "1.00",
      "TradePrice": "10.00",
      "Currency": "CNY",
      "Promotions": [
        {
          "OptionCode": "coupon****",
          "PromotionId": "17440009****",
          "PromotionName": "**优惠",
          "PromotionDesc": "**活动期间的优惠",
          "Selected": true
        }
      ]
    },
    "Rules": [
      {
        "RuleId": 0,
        "Description": "用户优惠"
      }
    ]
  },
  "PriceList": [
    {
      "PriceType": "Standby",
      "Price": {
        "OriginalPrice": "6700",
        "DiscountPrice": "999.0",
        "TradePrice": "5278.0",
        "Currency": "CNY",
        "Promotions": [
          {
            "OptionCode": "coupon****",
            "PromotionId": "1847709****",
            "PromotionName": "**优惠",
            "PromotionDesc": "**活动期间的优惠",
            "Selected": true
          }
        ]
      },
      "Rules": [
        {
          "RuleId": 0,
          "Description": "用户优惠。"
        }
      ]
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.