Create Data Exchange

analytics_hub.create_data_exchange
ActionGoogle Cloudconnection required

Calls analyticshub v1 POST /v1/projects/{projectsId}/locations/{locationsId}/dataExchanges.

Creates a new data exchange.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Analytics Hub
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id, location
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
location
Location or region; taken from the connection when unset.
stringNo———
body
The DataExchange resource, as the API defines it.
objectYes———
data_exchange_id
The ID of the data exchange. Required.
stringYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
description
string—
discoveryType
string—
displayName
string—
documentation
string—
icon
string—
listingCount
integer—
logLinkedDatasetQueryUserEmail
boolean—
name
string—
primaryContact
string—
sharingEnvironmentConfig
object—
{
  "description": "",
  "discoveryType": "",
  "displayName": "",
  "documentation": "",
  "icon": "",
  "listingCount": 0,
  "logLinkedDatasetQueryUserEmail": false,
  "name": "",
  "primaryContact": "",
  "sharingEnvironmentConfig": {}
}

See Create Data Exchange run in a workflow.

In a technical demo we add the Google Analytics Hub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.