QueryRenewInstancePrice

Updated at:

Queries the renewal price of a subscription workspace.

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

stream:QueryRenewVvpInstancePrice

get

*VvpInstance

acs:stream:{#regionId}:{#accountId}:vvpinstance/{#InstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

Region

string

Yes

The region ID.

cn-beijing

InstanceId

string

Yes

The instance ID.

sc_flinkserverless_public_cn-7e22ae5sess

Duration

integer

Yes

The number of subscription periods.

1

PricingCycle

string

Yes

The subscription period. Valid values:

  • Month: month.

  • Year: year.

  • Hour: hour.

  • Day: day.

Valid values:

  • Month :

    month.

  • Year :

    year.

  • Hour :

    hour.

  • Day :

    day.

Month

UsePromotionCode

boolean

No

PromotionCode

string

No

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

67F33190-946B-1105-B6A1-E2DF0426DD51

Success

boolean

Indicates whether the request was successful.

true

PriceInfo

object

The price information, including the price and promotion rules.

Currency

string

The currency unit.

CNY

DiscountAmount

number

The discount amount.

655.2

OriginalAmount

number

The original price.

4368

TradeAmount

number

The final price, which is the original price minus the discount amount.

3712.8

Code

string

The error code.

ORDER.INST_HAS_UNPAID_ORDER

Message

string

The error message.

An unpaid order exists. Pay for or cancel the existing order first

OptionalPromotions

array<object>

The coupon group information.

object

The coupon information.

PromotionName

string

The coupon name.

¥1,391.5 coupon

PromotionDesc

string

The coupon description.

¥1,391.5 coupon (valid until 03/23/2022)

PromotionOptionNo

string

The coupon number.

500011220010099

Selected

boolean

Indicates whether the coupon is selected. Valid values:

  • true: Selected.

  • false: Not selected.

true

Rules

array<object>

The promotion rule group.

object

The promotion rule.

Description

string

The description of the promotion rule.

Purchase for 1 year or more and enjoy a 15% discount off the list price

RuleId

integer

The promotion ID.

587

StandPrice

string

The list price with the website discount or direct sales contract discount applied.

32432

StandDiscountPrice

string

The promotional price based on the standard website discount.

21321

IsContractActivity

boolean

Indicates whether an enterprise discount is applied.

true

DepreciateInfo

object

The price reduction information.

OriginalStandAmount

string

The original total list price.

12000

CheapStandAmount

string

The total list price after the price reduction.

8000

CheapRate

string

The price reduction ratio.

34%

MonthPrice

string

The equivalent monthly price.

1000

StartTime

string

The start time of the price reduction, in ISO 8601 format.

2023-03-31T16:00:00Z

IsShow

boolean

Indicates whether the price reduction percentage is displayed.

true

LxRequestId

string

The Lingxiao request ID of the call.

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": "An unpaid order exists. Pay for or cancel the existing order first",
    "OptionalPromotions": [
      {
        "PromotionName": "¥1,391.5 coupon",
        "PromotionDesc": "¥1,391.5 coupon (valid until 03/23/2022)",
        "PromotionOptionNo": "500011220010099",
        "Selected": true
      }
    ],
    "Rules": [
      {
        "Description": "Purchase for 1 year or more to enjoy a 15% discount off the list price",
        "RuleId": 587
      }
    ],
    "StandPrice": "32432",
    "StandDiscountPrice": "21321",
    "IsContractActivity": true,
    "DepreciateInfo": {
      "OriginalStandAmount": "12000",
      "CheapStandAmount": "8000",
      "CheapRate": "34%",
      "MonthPrice": "1000",
      "StartTime": "2023-03-31T16:00:00Z",
      "IsShow": true
    },
    "LxRequestId": "67F33190-946B-1105-B6A1-E2DF0426DD51"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.