Skip to main content

connection_profiles

Creates, updates, deletes, gets or lists a connection_profiles resource.

Overview

Nameconnection_profiles
TypeResource
Idgoogle.datastream.connection_profiles

Fields

NameDatatypeDescription
namestringOutput only. The resource's name.
bigqueryProfileobjectBigQuery warehouse profile.
createTimestringOutput only. The create time of the resource.
displayNamestringRequired. Display name.
forwardSshConnectivityobjectForward SSH Tunnel connectivity.
gcsProfileobjectCloud Storage bucket profile.
labelsobjectLabels.
mysqlProfileobjectMySQL database profile.
oracleProfileobjectOracle database profile.
postgresqlProfileobjectPostgreSQL database profile.
privateConnectivityobjectPrivate Connectivity
sqlServerProfileobjectSQLServer database profile
staticServiceIpConnectivityobjectStatic IP address connectivity. Used when the source database is configured to allow incoming connections from the Datastream public IP addresses for the region specified in the connection profile.
updateTimestringOutput only. The update time of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionProfilesId, locationsId, projectsIdUse this method to get details about a connection profile.
listSELECTlocationsId, projectsIdUse this method to list connection profiles created in a project and location.
createINSERTlocationsId, projectsIdUse this method to create a connection profile in a project and location.
deleteDELETEconnectionProfilesId, locationsId, projectsIdUse this method to delete a connection profile.
patchUPDATEconnectionProfilesId, locationsId, projectsIdUse this method to update the parameters of a connection profile.
discoverEXEClocationsId, projectsIdUse this method to discover a connection profile. The discover API call exposes the data objects and metadata belonging to the profile. Typically, a request returns children data objects of a parent data object that's optionally supplied in the request.

SELECT examples

Use this method to list connection profiles created in a project and location.

SELECT
name,
bigqueryProfile,
createTime,
displayName,
forwardSshConnectivity,
gcsProfile,
labels,
mysqlProfile,
oracleProfile,
postgresqlProfile,
privateConnectivity,
sqlServerProfile,
staticServiceIpConnectivity,
updateTime
FROM google.datastream.connection_profiles
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new connection_profiles resource.

/*+ create */
INSERT INTO google.datastream.connection_profiles (
locationsId,
projectsId,
labels,
displayName,
oracleProfile,
gcsProfile,
mysqlProfile,
bigqueryProfile,
postgresqlProfile,
sqlServerProfile,
staticServiceIpConnectivity,
forwardSshConnectivity,
privateConnectivity
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ labels }}',
'{{ displayName }}',
'{{ oracleProfile }}',
'{{ gcsProfile }}',
'{{ mysqlProfile }}',
'{{ bigqueryProfile }}',
'{{ postgresqlProfile }}',
'{{ sqlServerProfile }}',
'{{ staticServiceIpConnectivity }}',
'{{ forwardSshConnectivity }}',
'{{ privateConnectivity }}'
;

UPDATE example

Updates a connection_profiles resource.

/*+ update */
UPDATE google.datastream.connection_profiles
SET
labels = '{{ labels }}',
displayName = '{{ displayName }}',
oracleProfile = '{{ oracleProfile }}',
gcsProfile = '{{ gcsProfile }}',
mysqlProfile = '{{ mysqlProfile }}',
bigqueryProfile = '{{ bigqueryProfile }}',
postgresqlProfile = '{{ postgresqlProfile }}',
sqlServerProfile = '{{ sqlServerProfile }}',
staticServiceIpConnectivity = '{{ staticServiceIpConnectivity }}',
forwardSshConnectivity = '{{ forwardSshConnectivity }}',
privateConnectivity = '{{ privateConnectivity }}'
WHERE
connectionProfilesId = '{{ connectionProfilesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified connection_profiles resource.

/*+ delete */
DELETE FROM google.datastream.connection_profiles
WHERE connectionProfilesId = '{{ connectionProfilesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';