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:

NameDatatypeDescription
namestringOutput only. Identifier. The resource's name.
bigqueryProfileobjectProfile for connecting to a BigQuery destination. (id: BigQueryProfile)
createTimestring (google-datetime)Output only. The create time of the resource.
dataverseProfileobjectProfile for connecting to a Dataverse source. (id: DataverseProfile)
displayNamestringRequired. Display name.
forwardSshConnectivityobjectForward SSH tunnel connectivity. (id: ForwardSshTunnelConnectivity)
gcsProfileobjectProfile for connecting to a Cloud Storage destination. (id: GcsProfile)
labelsobjectLabels.
mongodbProfileobjectProfile for connecting to a MongoDB source. (id: MongodbProfile)
mysqlProfileobjectProfile for connecting to a MySQL source. (id: MysqlProfile)
oracleProfileobjectProfile for connecting to an Oracle source. (id: OracleProfile)
postgresqlProfileobjectProfile for connecting to a PostgreSQL source. (id: PostgresqlProfile)
privateConnectivityobjectPrivate connectivity. (id: PrivateConnectivity)
salesforceMarketingCloudProfileobjectProfile for connecting to a Salesforce Marketing Cloud source. (id: SalesforceMarketingCloudProfile)
salesforceProfileobjectProfile for connecting to a Salesforce source. (id: SalesforceProfile)
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
serviceNowProfileobjectProfile for connecting to a ServiceNow source. (id: ServiceNowProfile)
spannerProfileobjectProfile for connecting to a Spanner source. (id: SpannerProfile)
sqlServerProfileobjectProfile for connecting to a SQLServer source. (id: SqlServerProfile)
staticServiceIpConnectivityobjectStatic Service IP connectivity. (id: StaticServiceIpConnectivity)
updateTimestring (google-datetime)Output only. The update time of the resource.
workdayProfileobjectOptional. Profile for connecting to a Workday source. (id: WorkdayProfile)

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, locationsIdpageToken, filter, pageSize, orderByUse this method to list connection profiles created in a project and location.
createinsertprojectsId, locationsIdforce, connectionProfileId, requestId, validateOnlyUse this method to create a connection profile in a project and location.
patchupdateprojectsId, locationsId, connectionProfilesIdforce, validateOnly, requestId, updateMaskUse 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,
dataverseProfile,
displayName,
forwardSshConnectivity,
gcsProfile,
labels,
mongodbProfile,
mysqlProfile,
oracleProfile,
postgresqlProfile,
privateConnectivity,
salesforceMarketingCloudProfile,
salesforceProfile,
satisfiesPzi,
satisfiesPzs,
serviceNowProfile,
spannerProfile,
sqlServerProfile,
staticServiceIpConnectivity,
updateTime,
workdayProfile
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__bigqueryProfile,
data__staticServiceIpConnectivity,
data__workdayProfile,
data__privateConnectivity,
data__sqlServerProfile,
data__mongodbProfile,
data__salesforceProfile,
data__oracleProfile,
data__forwardSshConnectivity,
data__spannerProfile,
data__mysqlProfile,
data__displayName,
data__postgresqlProfile,
data__serviceNowProfile,
data__gcsProfile,
data__labels,
data__salesforceMarketingCloudProfile,
data__dataverseProfile,
projectsId,
locationsId,
force,
connectionProfileId,
requestId,
validateOnly
)
SELECT
'{{ bigqueryProfile }}',
'{{ staticServiceIpConnectivity }}',
'{{ workdayProfile }}',
'{{ privateConnectivity }}',
'{{ sqlServerProfile }}',
'{{ mongodbProfile }}',
'{{ salesforceProfile }}',
'{{ oracleProfile }}',
'{{ forwardSshConnectivity }}',
'{{ spannerProfile }}',
'{{ mysqlProfile }}',
'{{ displayName }}',
'{{ postgresqlProfile }}',
'{{ serviceNowProfile }}',
'{{ gcsProfile }}',
'{{ labels }}',
'{{ salesforceMarketingCloudProfile }}',
'{{ dataverseProfile }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ force }}',
'{{ connectionProfileId }}',
'{{ requestId }}',
'{{ validateOnly }}'
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__bigqueryProfile = '{{ bigqueryProfile }}',
data__staticServiceIpConnectivity = '{{ staticServiceIpConnectivity }}',
data__workdayProfile = '{{ workdayProfile }}',
data__privateConnectivity = '{{ privateConnectivity }}',
data__sqlServerProfile = '{{ sqlServerProfile }}',
data__mongodbProfile = '{{ mongodbProfile }}',
data__salesforceProfile = '{{ salesforceProfile }}',
data__oracleProfile = '{{ oracleProfile }}',
data__forwardSshConnectivity = '{{ forwardSshConnectivity }}',
data__spannerProfile = '{{ spannerProfile }}',
data__mysqlProfile = '{{ mysqlProfile }}',
data__displayName = '{{ displayName }}',
data__postgresqlProfile = '{{ postgresqlProfile }}',
data__serviceNowProfile = '{{ serviceNowProfile }}',
data__gcsProfile = '{{ gcsProfile }}',
data__labels = '{{ labels }}',
data__salesforceMarketingCloudProfile = '{{ salesforceMarketingCloudProfile }}',
data__dataverseProfile = '{{ dataverseProfile }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND connectionProfilesId = '{{ connectionProfilesId }}' --required
AND force = {{ force}}
AND validateOnly = {{ validateOnly}}
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
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=
'{
"postgresqlRdbms": "{{ postgresqlRdbms }}",
"spannerDatabase": "{{ spannerDatabase }}",
"mysqlRdbms": "{{ mysqlRdbms }}",
"salesforceOrg": "{{ salesforceOrg }}",
"oracleRdbms": "{{ oracleRdbms }}",
"sourceCatalog": "{{ sourceCatalog }}",
"sqlServerRdbms": "{{ sqlServerRdbms }}",
"connectionProfileName": "{{ connectionProfileName }}",
"mongodbCluster": "{{ mongodbCluster }}",
"connectionProfile": "{{ connectionProfile }}",
"fullHierarchy": {{ fullHierarchy }},
"hierarchyDepth": {{ hierarchyDepth }}
}'
;