Skip to main content

collections_data_connector

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

Overview

Namecollections_data_connector
TypeResource
Idgoogle.discoveryengine.collections_data_connector

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The full resource name of the Data Connector. Format: projects/*/locations/*/collections/*/dataConnector.
aclEnabledbooleanOptional. Whether the connector will be created with an ACL config. Currently this field only affects Cloud Storage and BigQuery connectors.
actionConfigobjectOptional. Action configurations to make the connector support actions. (id: GoogleCloudDiscoveryengineV1ActionConfig)
actionStatestringOutput only. State of the action connector. This reflects whether the action connector is initializing, active or has encountered errors. (STATE_UNSPECIFIED, CREATING, ACTIVE, FAILED, RUNNING, WARNING, INITIALIZATION_FAILED, UPDATING)
alertPolicyConfigsarrayOptional. The connector level alert config.
autoRunDisabledbooleanOptional. Indicates whether the connector is disabled for auto run. It can be used to pause periodical and real time sync. Update: with the introduction of incremental_sync_disabled, auto_run_disabled is used to pause/disable only full syncs
bapConfigobjectOptional. The configuration for establishing a BAP connection. (id: GoogleCloudDiscoveryengineV1BAPConfig)
blockingReasonsarrayOutput only. User actions that must be completed before the connector can start syncing data.
cliConfigobjectOptional. The configuration for establishing a CLI connection. (id: GoogleCloudDiscoveryengineV1CliConfig)
connectorModesarrayOptional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED.
connectorSourceIdstringOptional. If set, this value instead of data_source is used to fetch the corresponding connector source.
connectorTypestringOutput only. The type of connector. Each source can only map to one type. For example, salesforce, confluence and jira have THIRD_PARTY connector type. It is not mutable once set by system. (CONNECTOR_TYPE_UNSPECIFIED, THIRD_PARTY, GCP_FHIR, BIG_QUERY, GCS, GOOGLE_MAIL, GOOGLE_CALENDAR, GOOGLE_DRIVE, NATIVE_CLOUD_IDENTITY, THIRD_PARTY_FEDERATED, THIRD_PARTY_EUA, GCNV, GOOGLE_CHAT, GOOGLE_SITES, REMOTE_MCP, GOOGLE_WORKSPACE)
createEuaSaasbooleanOptional. Whether the END USER AUTHENTICATION connector is created in SaaS.
createTimestring (google-datetime)Output only. Timestamp the DataConnector was created at.
dataSourcestringRequired. The identifier for the data source. For the full, up-to-date list of supported connectors and their values, see Connect a third-party data source.
destinationConfigsarrayOptional. Any target destinations used to connect to third-party services.
dynamicToolsarrayOutput only. The dynamic tools fetched for this connector.
egressFqdnsarrayOutput only. The list of FQDNs of the data connector can egress to. This includes both FQDN derived from the customer provided instance URL and default per connector type FQDNs.
endUserConfigobjectOptional. Any params and credentials used specifically for EUA connectors. (id: GoogleCloudDiscoveryengineV1DataConnectorEndUserConfig)
entitiesarrayList of entities from the connected data source to ingest.
errorsarrayOutput only. The errors from initialization or from the latest connector run.
federatedConfigobjectOptional. Any params and credentials used specifically for hybrid connectors supporting FEDERATED mode. This field should only be set if the connector is a hybrid connector and we want to enable FEDERATED mode. (id: GoogleCloudDiscoveryengineV1DataConnectorFederatedConfig)
hybridIngestionDisabledbooleanOptional. If the connector is a hybrid connector, determines whether ingestion is enabled and appropriate resources are provisioned during connector creation. If the connector is not a hybrid connector, this field is ignored.
identityRefreshIntervalstring (google-duration)The refresh interval to sync the Access Control List information for the documents ingested by this connector. If not set, the access control list will be refreshed at the default interval of 30 minutes. The identity refresh interval can be at least 30 minutes and at most 7 days.
identityScheduleConfigobjectThe configuration for the identity data synchronization runs. This contains the refresh interval to sync the Access Control List information for the documents ingested by this connector. (id: GoogleCloudDiscoveryengineV1IdentityScheduleConfig)
incrementalRefreshIntervalstring (google-duration)Optional. The refresh interval specifically for incremental data syncs. If unset, incremental syncs will use the default from env, set to 3hrs. The minimum is 30 minutes and maximum is 7 days. Applicable to only 3P connectors. When the refresh interval is set to the same value as the incremental refresh interval, incremental sync will be disabled.
incrementalSyncDisabledbooleanOptional. Indicates whether incremental syncs are paused for this connector. This is independent of auto_run_disabled. Applicable to only 3P connectors. When the refresh interval is set to the same value as the incremental refresh interval, incremental sync will be disabled, i.e. set to true.
jsonParamsstringRequired data connector parameters in json string format.
kmsKeyNamestringInput only. The KMS key to be used to protect the DataStores managed by this connector. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the DataStores created by this connector will be protected by the KMS key.
lastSyncTimestring (google-datetime)Output only. For periodic connectors only, the last time a data sync was completed.
latestPauseTimestring (google-datetime)Output only. The most recent timestamp when this DataConnector was paused, affecting all functionalities such as data synchronization. Pausing a connector has the following effects: - All functionalities, including data synchronization, are halted. - Any ongoing data synchronization job will be canceled. - No future data synchronization runs will be scheduled nor can be triggered.
metadataobjectOptional. User-facing metadata for the connector. Populated from the connector's generated metadata / registry ConnectorSource. (id: GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata)
nextSyncTimeobjectDefines the scheduled time for the next data synchronization. This field requires hour , minute, and time_zone from the IANA Time Zone Database. This is utilized when the data connector has a refresh interval greater than 1 day. When the hours or minutes are not specified, we will assume a sync time of 0:00. The user must provide a time zone to avoid ambiguity. (id: GoogleTypeDateTime)
oauthStaticIpAddressesarrayOutput only. The static IP addresses used by this connector for OAuth APIs (e.g. end user authentication). These are surfaced separately from static_ip_addresses so that customers can apply granular firewall settings for OAuth endpoints. Only populated for connectors that have static IP enabled and are used for actions and/or federated search.
paramsobjectRequired data connector parameters in structured json format.
privateConnectivityProjectIdstringOutput only. The tenant project ID associated with private connectivity connectors. This project must be allowlisted by in order for the connector to function.
realtimeStatestringOutput only. real-time sync state (STATE_UNSPECIFIED, CREATING, ACTIVE, FAILED, RUNNING, WARNING, INITIALIZATION_FAILED, UPDATING)
realtimeSyncConfigobjectOptional. The configuration for realtime sync. (id: GoogleCloudDiscoveryengineV1DataConnectorRealtimeSyncConfig)
refreshIntervalstring (google-duration)Required. The refresh interval for data sync. If duration is set to 0, the data will be synced in real time. The streaming feature is not supported yet. The minimum is 30 minutes and maximum is 7 days. When the refresh interval is set to the same value as the incremental refresh interval, incremental sync will be disabled.
removeParamKeysarrayOptional. Specifies keys to be removed from the 'params' field. This is only active when 'params' is included in the 'update_mask' in an UpdateDataConnectorRequest. Deletion takes precedence if a key is both in 'remove_param_keys' and present in the 'params' field of the request.
statestringOutput only. State of the connector. (STATE_UNSPECIFIED, CREATING, ACTIVE, FAILED, RUNNING, WARNING, INITIALIZATION_FAILED, UPDATING)
staticIpAddressesarrayOutput only. The static IP addresses used by this connector.
staticIpEnabledbooleanOptional. Whether customer has enabled static IP addresses for this connector.
syncModestringThe data synchronization mode supported by the data connector. (PERIODIC, STREAMING, UNSPECIFIED)
tagstringOptional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
updateTimestring (google-datetime)Output only. Timestamp the DataConnector was last updated.
vpcscEnabledbooleanOutput only. Whether the connector is created with VPC-SC enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_collections_get_data_connectorselectprojectsId, locationsId, collectionsIdGets the DataConnector. DataConnector is a singleton resource for each Collection.
projects_locations_collections_update_data_connectorupdateprojectsId, locationsId, collectionsIdupdateMaskUpdates a DataConnector.

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
collectionsIdstring
locationsIdstring
projectsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the DataConnector. DataConnector is a singleton resource for each Collection.

SELECT
name,
aclEnabled,
actionConfig,
actionState,
alertPolicyConfigs,
autoRunDisabled,
bapConfig,
blockingReasons,
cliConfig,
connectorModes,
connectorSourceId,
connectorType,
createEuaSaas,
createTime,
dataSource,
destinationConfigs,
dynamicTools,
egressFqdns,
endUserConfig,
entities,
errors,
federatedConfig,
hybridIngestionDisabled,
identityRefreshInterval,
identityScheduleConfig,
incrementalRefreshInterval,
incrementalSyncDisabled,
jsonParams,
kmsKeyName,
lastSyncTime,
latestPauseTime,
metadata,
nextSyncTime,
oauthStaticIpAddresses,
params,
privateConnectivityProjectId,
realtimeState,
realtimeSyncConfig,
refreshInterval,
removeParamKeys,
state,
staticIpAddresses,
staticIpEnabled,
syncMode,
tag,
updateTime,
vpcscEnabled
FROM google.discoveryengine.collections_data_connector
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND collectionsId = '{{ collectionsId }}' -- required
;

UPDATE examples

Updates a DataConnector.

UPDATE google.discoveryengine.collections_data_connector
SET
data__jsonParams = '{{ jsonParams }}',
data__syncMode = '{{ syncMode }}',
data__actionConfig = '{{ actionConfig }}',
data__tag = '{{ tag }}',
data__identityRefreshInterval = '{{ identityRefreshInterval }}',
data__incrementalSyncDisabled = {{ incrementalSyncDisabled }},
data__realtimeSyncConfig = '{{ realtimeSyncConfig }}',
data__metadata = '{{ metadata }}',
data__autoRunDisabled = {{ autoRunDisabled }},
data__bapConfig = '{{ bapConfig }}',
data__hybridIngestionDisabled = {{ hybridIngestionDisabled }},
data__cliConfig = '{{ cliConfig }}',
data__kmsKeyName = '{{ kmsKeyName }}',
data__federatedConfig = '{{ federatedConfig }}',
data__endUserConfig = '{{ endUserConfig }}',
data__aclEnabled = {{ aclEnabled }},
data__alertPolicyConfigs = '{{ alertPolicyConfigs }}',
data__destinationConfigs = '{{ destinationConfigs }}',
data__staticIpEnabled = {{ staticIpEnabled }},
data__dataSource = '{{ dataSource }}',
data__nextSyncTime = '{{ nextSyncTime }}',
data__entities = '{{ entities }}',
data__refreshInterval = '{{ refreshInterval }}',
data__identityScheduleConfig = '{{ identityScheduleConfig }}',
data__createEuaSaas = {{ createEuaSaas }},
data__connectorSourceId = '{{ connectorSourceId }}',
data__connectorModes = '{{ connectorModes }}',
data__params = '{{ params }}',
data__incrementalRefreshInterval = '{{ incrementalRefreshInterval }}',
data__removeParamKeys = '{{ removeParamKeys }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND collectionsId = '{{ collectionsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
aclEnabled,
actionConfig,
actionState,
alertPolicyConfigs,
autoRunDisabled,
bapConfig,
blockingReasons,
cliConfig,
connectorModes,
connectorSourceId,
connectorType,
createEuaSaas,
createTime,
dataSource,
destinationConfigs,
dynamicTools,
egressFqdns,
endUserConfig,
entities,
errors,
federatedConfig,
hybridIngestionDisabled,
identityRefreshInterval,
identityScheduleConfig,
incrementalRefreshInterval,
incrementalSyncDisabled,
jsonParams,
kmsKeyName,
lastSyncTime,
latestPauseTime,
metadata,
nextSyncTime,
oauthStaticIpAddresses,
params,
privateConnectivityProjectId,
realtimeState,
realtimeSyncConfig,
refreshInterval,
removeParamKeys,
state,
staticIpAddresses,
staticIpEnabled,
syncMode,
tag,
updateTime,
vpcscEnabled;