1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/nw-networkpolicy-view.adoc
2020-09-08 20:23:19 +00:00

27 lines
640 B
Plaintext

// Module included in the following assemblies:
//
// * networking/network_policy/viewing-network-policy.adoc
// * networking/configuring-networkpolicy.adoc
// * post_installation_configuration/network-configuration.adoc
[id="nw-networkpolicy-view_{context}"]
= Viewing NetworkPolicy objects
You can list the NetworkPolicy objects in your cluster.
.Prerequisites
* You installed the OpenShift CLI (`oc`).
* You are logged in to the cluster with a user with `cluster-admin` privileges.
.Procedure
* To view NetworkPolicy objects defined in your cluster, run the following
command:
+
[source,terminal]
----
$ oc get networkpolicy
----