// Module included in the following assemblies:
//
// * networking/network_security/network_policy/viewing-network-policy.adoc

:_mod-docs-content-type: PROCEDURE
[id="nw-networkpolicy-view-ocm_{context}"]
= Viewing network policies using {cluster-manager}

[role="_abstract"]
You can view the configuration details of your network policy in {cluster-manager-first}.

.Prerequisites

* You logged in to {cluster-manager-url}.
ifndef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
* You created an {product-title} cluster.
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
ifdef::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
* You created a {product-title} cluster.
endif::openshift-dedicated,openshift-rosa,openshift-rosa-hcp[]
* You configured an identity provider for your cluster.
* You added your user account to the configured identity provider.
* You created a network policy.

.Procedure

. From the *Administrator* perspective in the {cluster-manager} web console, under *Networking*, click *`NetworkPolicies`*.

. Select the required network policy to view.

. In the *Network Policy* details page, you can view all of the associated ingress and egress rules.

. Select *YAML* on the network policy details to view the policy configuration in YAML format.
ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]
+
[NOTE]
====
You can only view the details of these policies. You cannot edit these policies.
====
endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[]