Skip to main content

bindings

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

Overview

Namebindings
TypeResource
Idgoogle.dataplex.bindings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The relative resource name of the DataDomainBinding. Format: projects/{project_id_or_number}/locations/{location}/dataDomains/{data_domain_id}/bindings/{binding_id}
createTimestring (google-datetime)Output only. The time at which the DataDomainBinding was created.
resourcestringRequired. Immutable. The full resource name of the Google Cloud resource to be bound (i.e. included together with its contents) to the DataDomain.Format: IAM Full resource name (https://docs.cloud.google.com/iam/docs/full-resource-names) Examples: - GCP Project: //cloudresourcemanager.googleapis.com/projects/{project-id} - BigQuery Dataset: //bigquery.googleapis.com/projects/{project-id}/datasets/{dataset-id} - BigQuery Table: //bigquery.googleapis.com/projects/{project-id}/datasets/{dataset-id}/tables/{table-id} - Dataplex Data Product: //dataplex.googleapis.com/projects/{project-number}/locations/{location}/dataProducts/{data-product-id}Authorization: the resource to be bound must first grant an IAM role with the resource-specific setIamPolicy permission to the DataDomain. Example: - resource: //bigquery.googleapis.com/projects/{project-id}/datasets/{dataset-id} - IAM role: with bigquery.datasets.setIamPolicy permission (e.g. roles/owner) - IAM member: principal://dataplex.googleapis.com/projects/{project-number}/name/locations/{location}/dataDomains/{data-domain-id}
uidstringOutput only. System-generated unique ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_data_domains_bindings_getselectprojectsId, locationsId, dataDomainsId, bindingsIdRetrieves a DataDomainBinding resource.
projects_locations_data_domains_bindings_listselectprojectsId, locationsId, dataDomainsIdfilter, pageSize, orderBy, pageTokenLists DataDomainBinding resources under a DataDomain.
projects_locations_data_domains_bindings_createinsertprojectsId, locationsId, dataDomainsIddataDomainBindingId, validateOnlyCreates a DataDomainBinding resource.
projects_locations_data_domains_bindings_deletedeleteprojectsId, locationsId, dataDomainsId, bindingsIdDeletes a DataDomainBinding resource.

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
bindingsIdstring
dataDomainsIdstring
locationsIdstring
projectsIdstring
dataDomainBindingIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
validateOnlyboolean

SELECT examples

Retrieves a DataDomainBinding resource.

SELECT
name,
createTime,
resource,
uid
FROM google.dataplex.bindings
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dataDomainsId = '{{ dataDomainsId }}' -- required
AND bindingsId = '{{ bindingsId }}' -- required
;

INSERT examples

Creates a DataDomainBinding resource.

INSERT INTO google.dataplex.bindings (
data__resource,
data__name,
projectsId,
locationsId,
dataDomainsId,
dataDomainBindingId,
validateOnly
)
SELECT
'{{ resource }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dataDomainsId }}',
'{{ dataDomainBindingId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a DataDomainBinding resource.

DELETE FROM google.dataplex.bindings
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataDomainsId = '{{ dataDomainsId }}' --required
AND bindingsId = '{{ bindingsId }}' --required
;