InstanceGroups: testIamPermissions

Requires authorization

Returns permissions that a caller has on the specified resource.

Request

HTTP request

POST https://www.googleapis.com/compute/beta/projects/project/zones/zone/instanceGroups/resource/testIamPermissions

Parameters

Parameter name Value Description
Path parameters
project string Project ID for this request.
resource string Name of the resource for this request.
zone string The name of the zone for this request.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/compute
https://www.googleapis.com/auth/cloud-platform

Request body

In the request body, supply data with the following structure:

{
  "permissions": [
    string
  ]
}
Property name Value Description Notes
permissions[] list The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.

Response

If successful, this method returns a response body with the following structure:

{
  "permissions": [
    string
  ]
}
Property name Value Description Notes
permissions[] list A subset of `TestPermissionsRequest.permissions` that the caller is allowed.

Send feedback about...

Compute Engine