Method: projects.locations.connections.updateCredential

Sets the credential for the specified connection.

HTTP request

PATCH https://bigqueryconnection.googleapis.com/v1beta1/{name=projects/*/locations/*/connections/*/credential}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Name of the connection, for example: projects/{projectId}/locations/{locationId}/connections/{connectionId}/credential

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

  • bigquery.connections.update

Request body

The request body contains an instance of ConnectionCredential.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

ConnectionCredential

Credential to use with a connection.

JSON representation
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "cloudSql": {
    object (CloudSqlCredential)
  }
  // End of mutually exclusive fields.
}
Fields
Credential specific to the underlying data source. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
cloudSql

object (CloudSqlCredential)

Credential for Cloud SQL database.

End of mutually exclusive fields.