Listing Your Clusters
You can list the clusters you have created. This action also returns information about their status and time of creation.
Listing Your Clusters
The cluster list command lists all available clusters and allows you to check their status. You can use it with the following syntax:
Request sample
$ oks-cli cluster list \
--project-name my-project
This command contains the following options that you need to specify:
-
cluster-name
: The name of the cluster, with a maximum length of 40 alphanumeric characters and dashes (-). This name must not start or end with a dash, and it must be unique within the project. -
(optional)
project-name
: The name of the project where the cluster will be created.
Response sample
+--------------------------------------+------------------+----------------+----------------+------------+---------+
| ID | NAME | CREATED | UPDATED | STATUS | DEFAULT |
+--------------------------------------+------------------+----------------+----------------+------------+---------+
| ee46b46c-c20a-4c56-a791-74e523ec17ae | my-first-cluster | 3 minutes ago | 27 seconds ago | ready | |
+--------------------------------------+------------------+----------------+----------------+------------+---------+
Related Pages