Method: projects.setEnabled

Enables or disables data transfer for a project. This method requires the additional scope of 'https://www.googleapis.com/auth/cloudplatformprojects' to manage the cloud project permissions.

HTTP request

POST https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}:setEnabled

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

The name of the project resource in the form: projects/{projectId}

Request body

The request body contains data with the following structure:

JSON representation
{
  "enabled": boolean,
}
Fields
enabled

boolean

Whether data transfer should be enabled or disabled for the project.

Response body

If successful, the response body will be empty.

Authorization

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloudplatformprojects

For more information, see the Auth Guide.

Send feedback about...