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.

Limits

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.
OrderType String Yes The type of the order. Valid values:
  • BUY
  • UPGRADE
  • RENEW
IzNo String Yes The ID of the zone. You can call the DescribeZones operation to query zone IDs.
ChargeType String No The billing method. Valid values:
  • PostPaid: the pay-as-you-go billing method.
  • PrePaid: 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 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

https://r-kvstore.aliyuncs.com/?Action=DescribePrice
&RegionId=cn-hangzhou
&ZoneId=cn-hangzhou-b
&OrderType=BUY
&Instances=
        [
          {
            "RegionId": "cn-hangzhou",
            "IzNo": "cn-hangzhou-b",
            "InstanceClass": "redis.master.small.default",
            "ChargeType": "PostPaid",
            "OrderType": "BUY",
            "Period": "1",
            "Quantity": "1",
            "Capacity": "4096"
          }
        ]    
&<Common request parameters>