This topic describes the subparameters that are included in the Instances request parameter of the DescribePrice API operation. It also provides a sample request where the Instances request parameter is specified. Note that the values of the Instances request parameter must use the JSON format.


This topic provides a supplementary description for the DescribePrice API operation. The supplementary description is not applicable to other API operations.

Subparameters of the Instances request parameter

Subparameter Type Required Description
InstanceId String No The ID of the instance. This parameter is required if the OrderType parameter is set to UPGRADE or RENEW.
Capacity Long Yes The storage capacity of the instance. Unit: MB.
InstanceClass String Yes The instance type. For more information about instance types, see Overview.
OrderType String Yes The type of the order. Valid values:
  • BUY
IzNo String Yes The ID of the zone. You can call the DescribeZones API operation to query the list of zones.
ChargeType String No The billing method. Valid values:
  • PostPaid: specifies the pay-as-you-go billing method.
  • PrePaid: specifies the subscription billing method.
Note The default value is PostPaid.
NodeType String No The type of the node. Set the value to MASTER_SLAVE. This value indicates that the node is a master-replica node.
Period Long No The subscription period. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36.
Quantity String No The number of instances that you want to purchase. Valid values: 1 to 30. Default value: 1.
VPCId String No The ID of the virtual private cloud (VPC) that is connected to the instances.
VSwitchId String No The ID of the VSwitch.
AutoPay String No Specifies whether to enable automatic payment. Valid values:
  • true
  • false
Note The default value is true.
InstanceName String No The names of the instances.

Sample request where the Instances request parameter is specified
            "RegionId": "cn-hangzhou",
            "ZoneId": "cn-hangzhou-b",
            "InstanceClass": "redis.master.small.default",
            "ChargeType": "PostPaid",
            "OrderType": "BUY",
            "Period": "1",
            "Quantity": "1",
            "Capacity": "4096"
&<Common request parameters>