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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource's name.
bigqueryProfileobjectBigQuery Connection Profile configuration. (id: BigQueryProfile)
createTimestring (google-datetime)Output only. The create time of the resource.
displayNamestringRequired. Display name.
forwardSshConnectivityobjectForward SSH tunnel connectivity. (id: ForwardSshTunnelConnectivity)
gcsProfileobjectCloud Storage ConnectionProfile configuration. (id: GcsProfile)
labelsobjectLabels.
mongodbProfileobjectMongoDB Connection Profile configuration. (id: MongodbProfile)
mysqlProfileobjectMySQL ConnectionProfile configuration. (id: MysqlProfile)
oracleProfileobjectOracle ConnectionProfile configuration. (id: OracleProfile)
postgresqlProfileobjectPostgreSQL Connection Profile configuration. (id: PostgresqlProfile)
privateConnectivityobjectPrivate connectivity. (id: PrivateConnectivity)
salesforceProfileobjectSalesforce Connection Profile configuration. (id: SalesforceProfile)
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
sqlServerProfileobjectSQLServer Connection Profile configuration. (id: SqlServerProfile)
staticServiceIpConnectivityobjectStatic Service IP connectivity. (id: StaticServiceIpConnectivity)
updateTimestring (google-datetime)Output only. The update time of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, connectionProfilesIdUse this method to get details about a connection profile.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByUse this method to list connection profiles created in a project and location.
createinsertprojectsId, locationsIdconnectionProfileId, requestId, validateOnly, forceUse this method to create a connection profile in a project and location.
patchupdateprojectsId, locationsId, connectionProfilesIdupdateMask, requestId, validateOnly, forceUse this method to update the parameters of a connection profile.
deletedeleteprojectsId, locationsId, connectionProfilesIdrequestIdUse this method to delete a connection profile.
discoverexecprojectsId, locationsIdUse 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connectionProfilesIdstring
locationsIdstring
projectsIdstring
connectionProfileIdstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Use this method to get details about a connection profile.

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

INSERT examples

Use this method to create a connection profile in a project and location.

INSERT INTO google.datastream.connection_profiles (
data__labels,
data__displayName,
data__oracleProfile,
data__gcsProfile,
data__mysqlProfile,
data__bigqueryProfile,
data__postgresqlProfile,
data__sqlServerProfile,
data__salesforceProfile,
data__mongodbProfile,
data__staticServiceIpConnectivity,
data__forwardSshConnectivity,
data__privateConnectivity,
projectsId,
locationsId,
connectionProfileId,
requestId,
validateOnly,
force
)
SELECT
'{{ labels }}',
'{{ displayName }}',
'{{ oracleProfile }}',
'{{ gcsProfile }}',
'{{ mysqlProfile }}',
'{{ bigqueryProfile }}',
'{{ postgresqlProfile }}',
'{{ sqlServerProfile }}',
'{{ salesforceProfile }}',
'{{ mongodbProfile }}',
'{{ staticServiceIpConnectivity }}',
'{{ forwardSshConnectivity }}',
'{{ privateConnectivity }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ connectionProfileId }}',
'{{ requestId }}',
'{{ validateOnly }}',
'{{ force }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Use this method to update the parameters of a connection profile.

UPDATE google.datastream.connection_profiles
SET
data__labels = '{{ labels }}',
data__displayName = '{{ displayName }}',
data__oracleProfile = '{{ oracleProfile }}',
data__gcsProfile = '{{ gcsProfile }}',
data__mysqlProfile = '{{ mysqlProfile }}',
data__bigqueryProfile = '{{ bigqueryProfile }}',
data__postgresqlProfile = '{{ postgresqlProfile }}',
data__sqlServerProfile = '{{ sqlServerProfile }}',
data__salesforceProfile = '{{ salesforceProfile }}',
data__mongodbProfile = '{{ mongodbProfile }}',
data__staticServiceIpConnectivity = '{{ staticServiceIpConnectivity }}',
data__forwardSshConnectivity = '{{ forwardSshConnectivity }}',
data__privateConnectivity = '{{ privateConnectivity }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectionProfilesId = '{{ connectionProfilesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND validateOnly = {{ validateOnly}}
AND force = {{ force}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Use this method to delete a connection profile.

DELETE FROM google.datastream.connection_profiles
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectionProfilesId = '{{ connectionProfilesId }}' --required
AND requestId = '{{ requestId }}';

Lifecycle Methods

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

EXEC google.datastream.connection_profiles.discover 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"connectionProfile": "{{ connectionProfile }}",
"connectionProfileName": "{{ connectionProfileName }}",
"fullHierarchy": {{ fullHierarchy }},
"hierarchyDepth": {{ hierarchyDepth }},
"oracleRdbms": "{{ oracleRdbms }}",
"mysqlRdbms": "{{ mysqlRdbms }}",
"postgresqlRdbms": "{{ postgresqlRdbms }}",
"sqlServerRdbms": "{{ sqlServerRdbms }}",
"salesforceOrg": "{{ salesforceOrg }}",
"mongodbCluster": "{{ mongodbCluster }}"
}';