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 one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloudplatformprojects
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

Try it!

Send feedback about...