Skip to main content

data_domains

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

Overview

Namedata_domains
TypeResource
Idgoogle.dataplex.data_domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The relative resource name of the DataDomain, of the form: projects/{project_id_or_number}/locations/{location_id}/dataDomains/{data_domain_id}
contactsobjectRequired. Contact info for the Data Domains. (id: GoogleCloudDataplexV1Contacts)
createTimestring (google-datetime)Output only. The time at which the DataDomain was created.
descriptionstringOptional. User-provided description of the DataDomain.
displayNamestringRequired. User-friendly display name.
labelsobjectOptional. User-defined labels for the DataDomain.
parentDataDomainstringOptional. Immutable. The resource name of the parent DataDomain. Empty if this is a top-level DataDomain. Format: projects/{project_id_or_number}/locations/{location}/dataDomains/{parent_data_domain_id} This field is immutable after creation.
policyMemberobjectOutput only. Output-only policy member strings of this resource. (id: GoogleIamV1ResourcePolicyMember)
uidstringOutput only. System-generated globally unique ID for the DataDomain.
updateTimestring (google-datetime)Output only. The time at which the DataDomain was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_data_domains_getselectprojectsId, locationsId, dataDomainsIdRetrieves a DataDomain resource.
projects_locations_data_domains_listselectprojectsId, locationsIdpageToken, pageSize, orderBy, filterLists DataDomain resources in a project and location.
projects_locations_data_domains_createinsertprojectsId, locationsIddataDomainId, validateOnlyCreates a DataDomain resource.
projects_locations_data_domains_patchupdateprojectsId, locationsId, dataDomainsIdupdateMask, validateOnlyUpdates a DataDomain resource.
projects_locations_data_domains_deletedeleteprojectsId, locationsId, dataDomainsIdDeletes a DataDomain resource (allowed only when there are no bindings).

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
dataDomainsIdstring
locationsIdstring
projectsIdstring
dataDomainIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Retrieves a DataDomain resource.

SELECT
name,
contacts,
createTime,
description,
displayName,
labels,
parentDataDomain,
policyMember,
uid,
updateTime
FROM google.dataplex.data_domains
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dataDomainsId = '{{ dataDomainsId }}' -- required
;

INSERT examples

Creates a DataDomain resource.

INSERT INTO google.dataplex.data_domains (
data__labels,
data__contacts,
data__displayName,
data__parentDataDomain,
data__name,
data__description,
projectsId,
locationsId,
dataDomainId,
validateOnly
)
SELECT
'{{ labels }}',
'{{ contacts }}',
'{{ displayName }}',
'{{ parentDataDomain }}',
'{{ name }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ dataDomainId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a DataDomain resource.

UPDATE google.dataplex.data_domains
SET
data__labels = '{{ labels }}',
data__contacts = '{{ contacts }}',
data__displayName = '{{ displayName }}',
data__parentDataDomain = '{{ parentDataDomain }}',
data__name = '{{ name }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND dataDomainsId = '{{ dataDomainsId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a DataDomain resource (allowed only when there are no bindings).

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