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 NAME_OF_PROJECT \
--output json
This command contains the following options that you may need to specify:
-
project-name
: The name of the project containing the clusters that you want to list. -
(optional)
cluster-name
: The name of the cluster. -
(optional)
deleted
: The ability to list deleted clusters. -
(optional)
output
: The output format for the response (json
|yaml
|wide
).
Result sample
+-------------+-------------+--------------+------------+---------+
| NAME | CREATED | UPDATED | STATUS | DEFAULT |
+-------------+-------------+--------------+------------+---------+
| my-cluster | a day ago | a day ago | ready | |
+-------------+-------------+--------------+------------+---------+
You can add the Result sample
|
Related Pages
Corresponding API Methods