Skip to main content

data_exchanges_subscriptions

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

Overview

Namedata_exchanges_subscriptions
TypeResource
Idgoogle.analyticshub.data_exchanges_subscriptions

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the subscription. e.g. projects/myproject/locations/US/subscriptions/123.
creationTimestringOutput only. Timestamp when the subscription was created.
dataExchangestringOutput only. Resource name of the source Data Exchange. e.g. projects/123/locations/US/dataExchanges/456
lastModifyTimestringOutput only. Timestamp when the subscription was last modified.
linkedDatasetMapobjectOutput only. Map of listing resource names to associated linked resource, e.g. projects/123/locations/US/dataExchanges/456/listings/789 -> projects/123/datasets/my_dataset For listing-level subscriptions, this is a map of size 1. Only contains values if state == STATE_ACTIVE.
linkedResourcesarrayOutput only. Linked resources created in the subscription. Only contains values if state = STATE_ACTIVE.
listingstringOutput only. Resource name of the source Listing. e.g. projects/123/locations/US/dataExchanges/456/listings/789
organizationDisplayNamestringOutput only. Display name of the project of this subscription.
organizationIdstringOutput only. Organization of the project this subscription belongs to.
resourceTypestringOutput only. Listing shared asset type.
statestringOutput only. Current state of the subscription.
subscriberContactstringOutput only. Email of the subscriber.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_data_exchanges_list_subscriptionsSELECTdataExchangesId, locationsId, projectsIdLists all subscriptions on a given Data Exchange or Listing.

SELECT examples

Lists all subscriptions on a given Data Exchange or Listing.

SELECT
name,
creationTime,
dataExchange,
lastModifyTime,
linkedDatasetMap,
linkedResources,
listing,
organizationDisplayName,
organizationId,
resourceType,
state,
subscriberContact
FROM google.analyticshub.data_exchanges_subscriptions
WHERE dataExchangesId = '{{ dataExchangesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';