Method: instanceTemplates.setIamPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

HTTP request

POST https://compute.googleapis.com/compute/v1/projects/{project}/global/instanceTemplates/{resourceId}/setIamPolicy

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

resourceId

string

Name or id of the resource for this request.

Request body

The request body contains data with the following structure:

JSON representation
{
  "policy": {
    "version": integer,
    "bindings": [
      {
        "role": string,
        "members": [
          string
        ],
        "condition": {
          "expression": string,
          "title": string,
          "description": string,
          "location": string
        }
      }
    ],
    "auditConfigs": [
      {
        "service": string,
        "auditLogConfigs": [
          {
            "logType": enum,
            "exemptedMembers": [
              string
            ]
          }
        ]
      }
    ],
    "etag": string
  },
  "bindings": [
    {
      "role": string</