确定集群的状态
您可以使用 AWS 管理控制台或 AWS CLI. 确定集群的状态。
使用 AWS 管理控制台
使用以下过程以使用 Amazon DocumentDB 查看 AWS 管理控制台 集群的状态
- 通过以下网址登录 AWS 管理控制台并打开 Amazon DocumentDB 控制台:https://console.aws.amazon.com/docdb。
- 在导航窗格中,选择 Clusters.
- 在 Cluster identifier (集群标识符) 列中,找到您感兴趣的集群的名称。然后,要查找集群的状态,请跨该行阅读至 Status (状态) 列,如下所示。
 ```
使用 AWS CLI
使用 describe-db-clusters 操作以使用 Amazon DocumentDB 查看 AWS CLI. 集群的状态。
以下代码可查找集群 的状态。sample-cluster.
对于 Linux、macOS 或 Unix:
1. aws docdb describe-db-clusters \
2. --db-cluster-identifier sample-cluster \
3. --query 'DBClusters[*].[DBClusterIdentifier,Status]'
对于 Windows:
1. aws docdb describe-db-clusters ^
2. --db-cluster-identifier sample-cluster ^
3. --query 'DBClusters[*].[DBClusterIdentifier,Status]'
此操作的输出将类似于下文(JSON 格式)。
1. [
2. [
3. "sample-cluster",
4. "available"
5. ]
6. ]
