1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/ocm-cli-list-wif-commands.adoc
2025-11-23 18:59:17 +00:00

32 lines
1.0 KiB
Plaintext

// Module included in the following assemblies:
//
// * osd_gcp_clusters/osd-creating-a-cluster-on-gcp-with-workload-identity-federation.adoc
:_mod-docs-content-type: PROCEDURE
[id="ocm-cli-list-wif-commands_{context}"]
= Listing Workload Identity Federation clusters
[role="_abstract"]
You can list {product-title} clusters that have been deployed using Workload Identity Federation (WIF) authentication by using the {cluster-manager} CLI (`ocm`).
.Procedure
* To list all of your {product-title} clusters that have been deployed using the WIF authentication type, run one of the following commands:
+
** Using the `--parameter` flag with the `search` option:
+
[source,terminal]
----
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id != ''"
----
+
** Using a specific wif-config ID to filter the clusters associated with that configuration:
+
[source,terminal]
----
$ ocm list clusters --parameter search="gcp.authentication.wif_config_id = '<wif_config_id>'" <1>
----
<1> Replace `<wif_config_id>` with the ID of the WIF configuration.