Method: projects.dataSources.needsNewCredentials

Returns true if new credentials for the given data source and requesting user are required. DEPRECATED. Use dataSources.checkValidCredentials instead.

HTTP request

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

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

The data source in the form: projects/{projectId}/dataSources/{dataSourceId}

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

A response indicating whether new credentials are needed.

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

boolean

If set to true, new credentials are needed.

Authorization

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/bigquery
  • https://www.googleapis.com/auth/bigquery.readonly

For more information, see the Auth Guide.

Send feedback about...