Method: projects.dataSources.checkValidCreds

Returns true if valid credentials exist for the given data source and requesting user.

HTTP request

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

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 the credentials exist and are valid.

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

boolean

If set to true, the credentials exist and are valid.

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...