26.2. API endpoints
The following API endpoints are available:
/apis/networking.k8s.io/v1/networkpolicies-
GET: list or watch objects of kind NetworkPolicy
-
/apis/networking.k8s.io/v1/watch/networkpolicies-
GET: watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.
-
/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies-
DELETE: delete collection of NetworkPolicy -
GET: list or watch objects of kind NetworkPolicy -
POST: create a NetworkPolicy
-
/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies-
GET: watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.
-
/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}-
DELETE: delete a NetworkPolicy -
GET: read the specified NetworkPolicy -
PATCH: partially update the specified NetworkPolicy -
PUT: replace the specified NetworkPolicy
-
/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}-
GET: watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
-
26.2.1. /apis/networking.k8s.io/v1/networkpolicies 复制链接链接已复制到粘贴板!
- HTTP method
-
GET - Description
- list or watch objects of kind NetworkPolicy
| HTTP code | Reponse body |
|---|---|
| 200 - OK |
|
| 401 - Unauthorized | Empty |