Method: projects.dataSources.checkValidCreds

Returns true if valid credentials exist for the given data source and requesting user. Some data sources doesn't support service account, so we need to talk to them on behalf of the end user. This API just checks whether we have OAuth token for the particular user, which is a pre-requisite before user can create a transfer config.

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}

Authorization requires the following Google IAM permission on the specified resource name:

  • bigquery.transfers.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of CheckValidCredsResponse.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Try it!

¿Te sirvió esta página? Envíanos tu opinión:

Enviar comentarios sobre…