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.


This topic provides additional information about the DescribePrice API operation. The additional information 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.
IzNo String Yes The ID of the zone. You can call the DescribeZones operation to query zone IDs.
NodeType String No The type of the node. Set the value to MASTER_SLAVE. This value specifies 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 VPC.
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",
            "IzNo": "cn-hangzhou-b",
            "InstanceClass": "redis.master.small.default",
            "Period": "1",
            "Quantity": "1",
            "Capacity": "4096"
&<Common request parameters>