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 No The ID of the instance. You can call the DescribeDBInstances operation to query the list of one or more ApsaraDB for MongoDB instances.
Note This parameter is required when the order type is configuration change or instance renewal.
dds-bp13bbf2407f****
RegionId String Yes The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. cn-hangzhou
ZoneId String Yes The zone ID of the instance. You can call the DescribeRegions operation to query the most recent zone list. 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:
  • 3.4
  • 4.0
  • 4.2
4.2
DBInstanceClass String No The instance type of the instance. For more information, see Instance types. 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
  • Classic

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: pay-as-you-go
  • PrePaid: subscription
PostPaid
AutoPay String No Specifies whether to enable auto-renewal for the instance. Valid values:
  • True: enables auto-renewal for the instance.
  • False: disables auto-renewal for the instance.
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 type of the Configserver node in a sharded cluster instance. The following section describes the subparameters:
  • nodeClass: the type of the Configserver node.
  • nodeStorage: the storage capacity of the Configserver node.
Default value: [{"nodeClass":"dds.cs.mid","nodeStorage":"20"}].
[{"nodeClass":"dds.cs.mid","nodeStorage":"20"}]
mongos JSON No The types of the mongos nodes in a sharded cluster instance. The following section describes the subparameter:

nodeClass: the type of the mongos node.

For more information, see Instance types.

[{"nodeClass":"dds.mongos.mid"},{"nodeClass":"dds.mongos.mid"}]
shards JSON No The types of the shard nodes in a sharded cluster instance. The following section describes the subparameters:
  • nodeClass: the type of the shard node.
  • nodeStorage: the storage capacity of the shard node.
  • ReadonlyReplicas: the number of read-only nodes. Valid values: 0, 1, 2, 3, 4, and 5.

For more information, see Instance types.

[{"nodeClass":"dds.shard.mid","ReadonlyReplicas":"1","nodeStorage":"10"},{"nodeClass":"dds.shard.mid","ReadonlyReplicas":"1","nodeStorage":"10"}]