A Bigquery Analytics Hub data exchange listing
To get more information about Listing, see:
resource "google_bigquery_analytics_hub_data_exchange" "listing" {
location = "US"
data_exchange_id = "my_data_exchange"
display_name = "my_data_exchange"
description = "example data exchange"
}
resource "google_bigquery_analytics_hub_listing" "listing" {
location = "US"
data_exchange_id = google_bigquery_analytics_hub_data_exchange.listing.data_exchange_id
listing_id = "my_listing"
display_name = "my_listing"
description = "example data exchange"
bigquery_dataset {
dataset = google_bigquery_dataset.listing.id
}
}
resource "google_bigquery_dataset" "listing" {
dataset_id = "my_listing"
friendly_name = "my_listing"
description = "example data exchange"
location = "US"
}
resource "google_bigquery_analytics_hub_data_exchange" "listing" {
location = "US"
data_exchange_id = "my_data_exchange"
display_name = "my_data_exchange"
description = "example data exchange"
}
resource "google_bigquery_analytics_hub_listing" "listing" {
location = "US"
data_exchange_id = google_bigquery_analytics_hub_data_exchange.listing.data_exchange_id
listing_id = "my_listing"
display_name = "my_listing"
description = "example data exchange"
bigquery_dataset {
dataset = google_bigquery_dataset.listing.id
}
restricted_export_config {
enabled = true
restrict_query_result = true
}
}
resource "google_bigquery_dataset" "listing" {
dataset_id = "my_listing"
friendly_name = "my_listing"
description = "example data exchange"
location = "US"
}
The following arguments are supported:
data_exchange_id
-
(Required)
The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
listing_id
-
(Required)
The ID of the listing. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces.
location
-
(Required)
The name of the location this data exchange listing.
display_name
-
(Required)
Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and can't start or end with spaces.
bigquery_dataset
-
(Required)
Shared dataset i.e. BigQuery dataset source.
Structure is documented below.
The bigquery_dataset
block supports:
dataset
-
(Required)
Resource name of the dataset source for this listing. e.g. projects/myproject/datasets/123description
-
(Optional)
Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF).
primary_contact
-
(Optional)
Email or URL of the primary point of contact of the listing.
documentation
-
(Optional)
Documentation describing the listing.
icon
-
(Optional)
Base64 encoded image representing the listing.
request_access
-
(Optional)
Email or URL of the request access of the listing. Subscribers can use this reference to request access.
data_provider
-
(Optional)
Details of the data provider who owns the source data.
Structure is documented below.
publisher
-
(Optional)
Details of the publisher who owns the listing and who can share the source data.
Structure is documented below.
categories
-
(Optional)
Categories of the listing. Up to two categories are allowed.
restricted_export_config
-
(Optional)
If set, restricted export configuration will be propagated and enforced on the linked dataset.
Structure is documented below.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
The data_provider
block supports:
name
-
(Required)
Name of the data provider.
primary_contact
-
(Optional)
Email or URL of the data provider.
name
-
(Required)
Name of the listing publisher.
primary_contact
-
(Optional)
Email or URL of the listing publisher.
The restricted_export_config
block supports:
enabled
-
(Optional)
If true, enable restricted export.
restrict_query_result
-
(Optional)
If true, restrict export of query result derived from restricted linked dataset table.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}/listings/{{listing_id}}
name
-
The resource name of the listing. e.g. "projects/myproject/locations/US/dataExchanges/123/listings/456"
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.Listing can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}/listings/{{listing_id}}
{{project}}/{{location}}/{{data_exchange_id}}/{{listing_id}}
{{location}}/{{data_exchange_id}}/{{listing_id}}
In Terraform v1.5.0 and later, use an import
block to import Listing using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}/listings/{{listing_id}}"
to = google_bigquery_analytics_hub_listing.default
}
When using the terraform import
command, Listing can be imported using one of the formats above. For example:
$ terraform import google_bigquery_analytics_hub_listing.default projects/{{project}}/locations/{{location}}/dataExchanges/{{data_exchange_id}}/listings/{{listing_id}}
$ terraform import google_bigquery_analytics_hub_listing.default {{project}}/{{location}}/{{data_exchange_id}}/{{listing_id}}
$ terraform import google_bigquery_analytics_hub_listing.default {{location}}/{{data_exchange_id}}/{{listing_id}}
This resource supports User Project Overrides.