collections_data_connector
Creates, updates, deletes, gets or lists a collections_data_connector resource.
Overview
| Name | collections_data_connector |
| Type | Resource |
| Id | google.discoveryengine.collections_data_connector |
Fields
The following fields are returned by SELECT queries:
- projects_locations_collections_get_data_connector
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The full resource name of the Data Connector. Format: projects/*/locations/*/collections/*/dataConnector. |
aclEnabled | boolean | Optional. Whether the connector will be created with an ACL config. Currently this field only affects Cloud Storage and BigQuery connectors. |
actionConfig | object | Optional. Action configurations to make the connector support actions. (id: GoogleCloudDiscoveryengineV1ActionConfig) |
actionState | string | Output 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) |
alertPolicyConfigs | array | Optional. The connector level alert config. |
autoRunDisabled | boolean | Optional. 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 |
bapConfig | object | Optional. The configuration for establishing a BAP connection. (id: GoogleCloudDiscoveryengineV1BAPConfig) |
blockingReasons | array | Output only. User actions that must be completed before the connector can start syncing data. |
cliConfig | object | Optional. The configuration for establishing a CLI connection. (id: GoogleCloudDiscoveryengineV1CliConfig) |
connectorModes | array | Optional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED. |
connectorSourceId | string | Optional. If set, this value instead of data_source is used to fetch the corresponding connector source. |
connectorType | string | Output 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) |
createEuaSaas | boolean | Optional. Whether the END USER AUTHENTICATION connector is created in SaaS. |
createTime | string (google-datetime) | Output only. Timestamp the DataConnector was created at. |
dataSource | string | Required. 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. |
destinationConfigs | array | Optional. Any target destinations used to connect to third-party services. |
dynamicTools | array | Output only. The dynamic tools fetched for this connector. |
egressFqdns | array | Output 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. |
endUserConfig | object | Optional. Any params and credentials used specifically for EUA connectors. (id: GoogleCloudDiscoveryengineV1DataConnectorEndUserConfig) |
entities | array | List of entities from the connected data source to ingest. |
errors | array | Output only. The errors from initialization or from the latest connector run. |
federatedConfig | object | Optional. 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) |
hybridIngestionDisabled | boolean | Optional. 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. |
identityRefreshInterval | string (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. |
identityScheduleConfig | object | The 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) |
incrementalRefreshInterval | string (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. |
incrementalSyncDisabled | boolean | Optional. 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. |
jsonParams | string | Required data connector parameters in json string format. |
kmsKeyName | string | Input 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. |
lastSyncTime | string (google-datetime) | Output only. For periodic connectors only, the last time a data sync was completed. |
latestPauseTime | string (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. |
metadata | object | Optional. User-facing metadata for the connector. Populated from the connector's generated metadata / registry ConnectorSource. (id: GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata) |
nextSyncTime | object | Defines 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) |
oauthStaticIpAddresses | array | Output 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. |
params | object | Required data connector parameters in structured json format. |
privateConnectivityProjectId | string | Output only. The tenant project ID associated with private connectivity connectors. This project must be allowlisted by in order for the connector to function. |
realtimeState | string | Output only. real-time sync state (STATE_UNSPECIFIED, CREATING, ACTIVE, FAILED, RUNNING, WARNING, INITIALIZATION_FAILED, UPDATING) |
realtimeSyncConfig | object | Optional. The configuration for realtime sync. (id: GoogleCloudDiscoveryengineV1DataConnectorRealtimeSyncConfig) |
refreshInterval | string (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. |
removeParamKeys | array | Optional. 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. |
state | string | Output only. State of the connector. (STATE_UNSPECIFIED, CREATING, ACTIVE, FAILED, RUNNING, WARNING, INITIALIZATION_FAILED, UPDATING) |
staticIpAddresses | array | Output only. The static IP addresses used by this connector. |
staticIpEnabled | boolean | Optional. Whether customer has enabled static IP addresses for this connector. |
syncMode | string | The data synchronization mode supported by the data connector. (PERIODIC, STREAMING, UNSPECIFIED) |
tag | string | Optional. 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. |
updateTime | string (google-datetime) | Output only. Timestamp the DataConnector was last updated. |
vpcscEnabled | boolean | Output only. Whether the connector is created with VPC-SC enabled. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
projects_locations_collections_get_data_connector | select | projectsId, locationsId, collectionsId | Gets the DataConnector. DataConnector is a singleton resource for each Collection. | |
projects_locations_collections_update_data_connector | update | projectsId, locationsId, collectionsId | updateMask | Updates 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.
| Name | Datatype | Description |
|---|---|---|
collectionsId | string | |
locationsId | string | |
projectsId | string | |
updateMask | string (google-fieldmask) |
SELECT examples
- projects_locations_collections_get_data_connector
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
- projects_locations_collections_update_data_connector
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;