Skip to content

Commit 1c3a6cc

Browse files
committed
list wif clusters
1 parent 82502f6 commit 1c3a6cc

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

modules/create-wif-cluster-cli.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,20 @@ ocm gcp update wif-config --version <version> \ <1>
203203
--name <wif_name> <2>
204204
----
205205
<1> Replace `<version>` with the {product-title} y-stream version you plan to update the cluster to.
206-
<2> Replace `<wif_name>` with the name of the WIF configuration you want to update.
206+
<2> Replace `<wif_name>` with the name of the WIF configuration you want to update.
207+
208+
[id="ocm-cli-list-wif-commands_{context}"]
209+
== List WIF clusters
210+
211+
To list all of your {product-title} clusters that have been deployed using the WIF authentication type, run the following command:
212+
213+
[source,terminal]
214+
----
215+
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id != ''"
216+
----
217+
To list all of your {product-title} clusters that have been deployed using a specific wif-config, run the following command:
218+
[source,terminal]
219+
----
220+
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id = '<wif_config_id>'" <1>
221+
----
222+
<1> Replace `<wif_config_id>` with the ID of the WIF configuration to list the clusters that have been deployed using that WIF configuration.

osd_install_access_delete_cluster/creating-a-gcp-cluster-with-workload-identity-federation.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ For more information regarding resource quotas and limits, see _Additional resou
2828
include::modules/create-wif-cluster-ocm.adoc[leveloffset=+1]
2929
include::modules/create-wif-cluster-cli.adoc[leveloffset=+1]
3030

31+
3132
== Additional resources
3233

3334
* For information about {product-title} clusters using a Customer Cloud Subscription (CCS) model on {GCP}, see xref:../osd_planning/gcp-ccs.adoc#ccs-gcp-customer-requirements_gcp-ccs[Customer requirements].

0 commit comments

Comments
 (0)