Resource: Connection
Configuration parameters to establish connection with an external data source, except the credential attributes.
JSON representation |
---|
{ "name": string, "friendlyName": string, "description": string, "creationTime": string, "lastModifiedTime": string, "hasCredential": boolean, // Union field |
Fields | |
---|---|
name |
The resource name of the connection in the form of: |
friendly |
User provided display name for the connection. |
description |
User provided description. |
creation |
Output only. The creation timestamp of the connection. |
last |
Output only. The last update timestamp of the connection. |
has |
Output only. True, if credential is configured for this connection. |
Union field properties . Properties specific to the underlying data source. properties can be only one of the following: |
|
cloud |
Cloud SQL properties. |
CloudSqlProperties
Connection properties specific to the Cloud SQL.
JSON representation |
---|
{ "instanceId": string, "database": string, "type": enum ( |
Fields | |
---|---|
instance |
Cloud SQL instance ID in the form |
database |
Database name. |
type |
Type of the Cloud SQL database. |
credential |
Input only. Cloud SQL credential. |
service |
Output only. The account ID of the service used for the purpose of this connection. When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection. |
DatabaseType
Supported Cloud SQL database types.
Enums | |
---|---|
DATABASE_TYPE_UNSPECIFIED |
Unspecified database type. |
POSTGRES |
Cloud SQL for PostgreSQL. |
MYSQL |
Cloud SQL for MySQL. |
CloudSqlCredential
Credential info for the Cloud SQL.
JSON representation |
---|
{ "username": string, "password": string } |
Fields | |
---|---|
username |
The username for the credential. |
password |
The password for the credential. |
Methods |
|
---|---|
|
Creates a new connection. |
|
Deletes connection and associated credential. |
|
Returns specified connection. |
|
Gets the access control policy for a resource. |
|
Returns a list of connections in the given project. |
|
Updates the specified connection. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |
|
Sets the credential for the specified connection. |