v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1364261347.5 KB
projects

Enables or disables Network Policy for a cluster.

post/v1/{+name}:setNetworkPolicy

Path parameters

namestring required

The name (project, location, cluster name) of the cluster to set networking policy. Specified in the format projects/*/locations/*/clusters/*.

Request body

zonestring

Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

projectIdstring

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

clusterIdstring

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

namestring

The name (project, location, cluster name) of the cluster to set networking policy. Specified in the format projects/*/locations/*/clusters/*.

Response

Successful response