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.

ParameterTypeRequiredDescriptionExample
DBInstanceIdStringYesThe ID of the instance. You can call the DescribeDBInstances operation to query the list of instances. dds-bp13bbf2407f****
RegionIdStringYesThe region ID of the instance. You can call the DescribeRegions operation to query the IDs of regions. cn-hangzhou
ZoneIdStringYesThe zone ID of the instance. You can call the DescribeRegions operation to query the IDs of zones. cn-hangzhou-h
EngineStringYesThe database engine of the instance. Set the value to MongoDB. MongoDB
EngineVersionStringYesThe database engine version of the instance. Valid values:
  • 3.4
  • 4.0
  • 4.2
  • 4.4
  • 5.0
  • 6.0
4.2
DBInstanceClassStringNoThe 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
DBInstanceStorageStringYesThe storage capacity of the instance. Unit: GB. 20
ReplicationFactorStringNoThe number of nodes in the instance. Valid values: 1, 3, 5, and 7. 3
NetworkTypeStringNoThe network type of the instance. Default value: Classic. Valid values:
  • VPC
  • Classic

VPC
VpcIdStringNoThe ID of the virtual private cloud (VPC).
Note This parameter is required when the NetworkType parameter is set to VPC.
vpc-bp1q2qqm4vxo6e6zl****
VSwitchIdStringNoThe ID of the vSwitch.
Note This parameter is required when the NetworkType parameter is set to VPC.
vsw-bp1lb40helio22b6d****
ChargeTypeStringNoThe billing method of the instance. Valid values:
  • PostPaid: pay-as-you-go
  • PrePaid: subscription
PostPaid
AutoPayStringNoSpecifies 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
PeriodStringNoThe subscription period of the instance. Unit: months.
Note This parameter is required when the ChargeType parameter is set to PrePaid.
1
configServersJSONNoThe specifications of the Configserver node in a sharded cluster instance. The following subparameters are included:
  • nodeClass: the instance type of the ConfigServer node. Set the value to 1 core, 2 GB (general-purpose).
  • nodeStorage: the storage capacity of the Configserver node. Set the value to 20 GB.
[{"nodeClass":"dds.cs.mid","nodeStorage":"20"}]
mongosJSONNoThe 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"}]
shardsJSONNoThe specifications of the shard node. The following subparameters are included:
  • nodeClass: the instance 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"}]
StorageTypeStringNoThe storage type of the instance. Valid values:
  • local_ssd: local SSD
  • cloud_essd1 :ESSD PL1.
  • cloud_essd2: ESSD PL2.
  • cloud_essd3: ESSD PL3.
Note
  • ApsaraDB for MongoDB instances that run MongoDB 4.2 or earlier support local SSDs.
  • ApsaraDB for MongoDB instances that run MongoDB 4.4 or later support ESSD PL1, ESSD PL2, and ESSD PL3.
cloud_essd1