docs
api
Cloud MongoDB Database(UDB NVMe)
ListUMongoDBInstances

Get Replica Set/Shard Cluster List - ListUMongoDBInstances

Overview

Get Replica Set/Shard Cluster List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ListUMongoDBInstances.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
ClusterIdstringCluster IDNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataSetarray[MongodbInstance]Replica Set IDNo

Data Model

MongodbInstance

Field NameTypeDescription InformationRequired
ZonestringAvailability ZoneYes
ClusterIdstringReplica Set/Shard Cluster IDYes
NamestringReplica Set/Sharded Cluster Instance NameYes
DBVersionstringVersions of Mongodb for Replica Set/Sharded Cluster, including MongoDB-3.6, MongoDB-4.2Yes
ConnectURLstringAccess address of the replica set/sharded clusterYes
CreateTimeintCreation time of replica set/sharded clusterYes
ClusterTypestringCluster Type, ReplicaSet: Replica Set, SharedCluster: Sharded ClusterYes
StatestringReplica Set/Sharded Cluster Status Tags: Initing: Initializing, InitFailed: Installation Failed, Starting: Starting, StartFailed: Start Failed, Running: Running, Stopping: Shutting Down, Stopped: Shut Down, StopFailed: Shutdown Failed, Deleting: Deleting, Deleted: Deleted, DeleteFailed: Deletion Failed, Restarting: Restarting, RestartFailed: Restart Failed.Yes
IPv6ConnectURLstringReplica Set/Shard Set IPv6 Access AddressNo

Example

Request Example

https://api.surfercloud.com/?Action=ListUMongoDBInstances
&Region=cn-zj
&ProjectId=OEEeTdSt
&ClusterId=PYMePPwV
&ClusterId=RlOyJXoF

Response Example

{
  "Action": "ListUMongoDBInstancesResponse",
  "ClusterId": "wWvPiKMh",
  "Message": "IToGkbMD",
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved