This topic describes the subparameters of the DBInstances parameter that is used in the DescribePrice operation. You can call the DescribePrice operation to query the fees incurred when you create, upgrade, or renew an ApsaraDB for MongoDB instance.
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBInstanceId | String | Yes | The ID of the instance. You can call the DescribeDBInstances operation to query the list of instances. | dds-bp13bbf2407f**** |
RegionId | String | Yes | The region ID of the instance. You can call the DescribeRegions operation to query the IDs of regions. | cn-hangzhou |
ZoneId | String | Yes | The zone ID of the instance. You can call the DescribeRegions operation to query the IDs of zones. | cn-hangzhou-h |
Engine | String | Yes | The database engine of the instance. Set the value to MongoDB. | MongoDB |
EngineVersion | String | Yes | The database engine version of the instance. Valid values:
| 4.2 |
DBInstanceClass | String | No | The instance type. For more information , see Instance types. Note This parameter is required when you query the fees for creating instances, such as purchasing or cloning instances. | dds.mongo.mid |
DBInstanceStorage | String | Yes | The storage capacity of the instance. Unit: GB. | 20 |
ReplicationFactor | String | No | The number of nodes in the instance. Valid values: 1, 3, 5, and 7. | 3 |
NetworkType | String | No | The network type of the instance. Default value: Classic. Valid values:
| VPC |
VpcId | String | No | The ID of the virtual private cloud (VPC). Note This parameter is required when the NetworkType parameter is set to VPC. | vpc-bp1q2qqm4vxo6e6zl**** |
VSwitchId | String | No | The ID of the vSwitch. Note This parameter is required when the NetworkType parameter is set to VPC. | vsw-bp1lb40helio22b6d**** |
ChargeType | String | No | The billing method of the instance. Valid values:
| PostPaid |
AutoPay | String | No | Specifies whether to enable auto-renewal for the instance. Valid values:
| True |
Period | String | No | The subscription period of the instance. Unit: months. Note This parameter is required when the ChargeType parameter is set to PrePaid. | 1 |
configServers | JSON | No | The specifications of the Configserver node in a sharded cluster instance. The following subparameters are included:
| [{"nodeClass":"dds.cs.mid","nodeStorage":"20"}] |
mongos | JSON | No | The specifications of mongos in sharded cluster instances. The following subparameters are included: nodeClass: the instance type of the mongos node. For more information, see Instance types. | [{"nodeClass":"dds.mongos.mid"},{"nodeClass":"dds.mongos.mid"}] |
shards | JSON | No | The specifications of the shard node. The following subparameters are included:
For more information, see Instance types. | [{"nodeClass":"dds.shard.mid","ReadonlyReplicas":"1","nodeStorage":"10"},{"nodeClass":"dds.shard.mid","ReadonlyReplicas":"1","nodeStorage":"10"}] |
StorageType | String | No | The storage type of the instance. Valid values:
Note
| cloud_essd1 |