Skip to main content

zones

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

Overview

Namezones
TypeResource
Idgoogle.dataplex.zones

Fields

NameDatatypeDescription
namestringOutput only. The relative resource name of the zone, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.
descriptionstringOptional. Description of the zone.
assetStatusobjectAggregated status of the underlying assets of a lake or zone.
createTimestringOutput only. The time when the zone was created.
discoverySpecobjectSettings to manage the metadata discovery and publishing in a zone.
displayNamestringOptional. User friendly display name.
labelsobjectOptional. User defined labels for the zone.
resourceSpecobjectSettings for resources attached as assets within a zone.
statestringOutput only. Current state of the zone.
typestringRequired. Immutable. The type of the zone.
uidstringOutput only. System generated globally unique ID for the zone. This ID will be different if the zone is deleted and re-created with the same name.
updateTimestringOutput only. The time when the zone was last updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_lakes_zones_getSELECTlakesId, locationsId, projectsId, zonesIdRetrieves a zone resource.
projects_locations_lakes_zones_listSELECTlakesId, locationsId, projectsIdLists zone resources in a lake.
projects_locations_lakes_zones_createINSERTlakesId, locationsId, projectsIdCreates a zone resource within a lake.
projects_locations_lakes_zones_deleteDELETElakesId, locationsId, projectsId, zonesIdDeletes a zone resource. All assets within a zone must be deleted before the zone can be deleted.
projects_locations_lakes_zones_patchUPDATElakesId, locationsId, projectsId, zonesIdUpdates a zone resource.

SELECT examples

Lists zone resources in a lake.

SELECT
name,
description,
assetStatus,
createTime,
discoverySpec,
displayName,
labels,
resourceSpec,
state,
type,
uid,
updateTime
FROM google.dataplex.zones
WHERE lakesId = '{{ lakesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new zones resource.

/*+ create */
INSERT INTO google.dataplex.zones (
lakesId,
locationsId,
projectsId,
displayName,
labels,
description,
type,
discoverySpec,
resourceSpec
)
SELECT
'{{ lakesId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ labels }}',
'{{ description }}',
'{{ type }}',
'{{ discoverySpec }}',
'{{ resourceSpec }}'
;

UPDATE example

Updates a zones resource.

/*+ update */
UPDATE google.dataplex.zones
SET
displayName = '{{ displayName }}',
labels = '{{ labels }}',
description = '{{ description }}',
type = '{{ type }}',
discoverySpec = '{{ discoverySpec }}',
resourceSpec = '{{ resourceSpec }}'
WHERE
lakesId = '{{ lakesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND zonesId = '{{ zonesId }}';

DELETE example

Deletes the specified zones resource.

/*+ delete */
DELETE FROM google.dataplex.zones
WHERE lakesId = '{{ lakesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND zonesId = '{{ zonesId }}';