Method: subnetworks.getIamPolicy

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

HTTP request

GET https://compute.googleapis.com/compute/beta/projects/{project}/regions/{region}/subnetworks/{resourceId}/getIamPolicy

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

region

string

The name of the region for this request.

resourceId

string

Name or id of the resource for this request.

Query parameters

Parameters
optionsRequestedPolicyVersion

integer

Requested IAM Policy version.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure: