dcos cluster list

Listing connected clusters

Description

The dcos-cluster list command will list the clusters configured and the ones linked to the current cluster.

Usage

  1. dcos cluster list [flags]

Options

NameDescription
—attachedReturnes attached clusters only.
—jsonDisplays a JSON-formatted list.
-h, —helpDisplays help for this command.

Examples

  1. dcos cluster list
  2. NAME CLUSTER ID STATUS VERSION URL
  3. MyCluster 00548eb6-9626-47d8-9076-d57b56752225 AVAILABLE 1.13 https://100.220.241.100
  1. dcos cluster list --attached
  2. NAME ID STATUS VERSION URL
  3. * user_45-wosq2gi 7edd47b7-7f22-4bd5-b8a9-b53a204aafd3 AVAILABLE 1.13.0 https://user_45-wo-elasticl-1uwhasco5acg9-2062765490.eu-central-1.elb.amazonaws.com
  1. dcos cluster list --json
  2. [
  3. {
  4. "attached": false,
  5. "cluster_id": "bb07074e-2c3d-4dc5-8523-75cab9d517cb",
  6. "name": "user_84-rd373u5",
  7. "status": "UNAVAILABLE",
  8. "url": "http://user_84-elasticl-7qbh2zcfyz6h-407934734.us-east-1.elb.amazonaws.com",
  9. "version": "UNKNOWN"
  10. },
  11. {
  12. "attached": true,
  13. "cluster_id": "7edd47b7-7f22-4bd5-b8a9-b53a204aafd3",
  14. "name": "user_45-wosq2gi",
  15. "status": "AVAILABLE",
  16. "url": "https://user_45-wo-elasticl-1uwhasco5acg9-2062765490.eu-central-1.elb.amazonaws.com",
  17. "version": "1.13.0"
  18. }
  19. ]

For more examples, see Cluster Connections.

Parent command

CommandDescription
dcos clusterManage DC/OS clusters.