QueryModifyInstancePrice

更新时间:
复制 MD 格式

Queries the price for upgrading or downgrading an instance.

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:QueryModifyVvpInstancePrice

none

*VvpInstance

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

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: Use.

  • false: Do not use.

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.