Method: projects.locations.networkPolicies.get

Retrieves a NetworkPolicy resource by its resource name.

HTTP request

GET https://vmwareengine.googleapis.com/v1/{name=projects/*/locations/*/networkPolicies/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the network policy to retrieve. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-network-policy

Authorization requires the following IAM permission on the specified resource name:

  • vmwareengine.networkPolicies.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of NetworkPolicy.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.