Method: instances.setServiceAccount

Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.

HTTP request

POST https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setServiceAccount

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

zone

string

The name of the zone for this request.