Skip to main content

relationship

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

Overview​

Namerelationship
TypeResource
Idazure.purview_data_map.relationship

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
referredEntitiesobjectThe referred entity header.
relationshipobjectAtlas relationship instance.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectguid, endpointextendedInfoGet relationship information between entities by its GUID.
createinsertendpointCreate a new relationship between entities.
updateupdateendpointUpdate an existing relationship between entities.
deletedeleteguid, endpointDelete a relationship between entities by its GUID.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
guidstringThe globally unique identifier of the relationship. Required.
extendedInfobooleanLimits whether includes extended information. Default value is None.

SELECT examples​

Get relationship information between entities by its GUID.

SELECT
referredEntities,
relationship
FROM azure.purview_data_map.relationship
WHERE guid = '{{ guid }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND extendedInfo = '{{ extendedInfo }}'
;

INSERT examples​

Create a new relationship between entities.

INSERT INTO azure.purview_data_map.relationship (
attributes,
typeName,
lastModifiedTS,
createTime,
createdBy,
end1,
end2,
guid,
homeId,
label,
provenanceType,
status,
updateTime,
updatedBy,
version,
endpoint
)
SELECT
'{{ attributes }}',
'{{ typeName }}',
'{{ lastModifiedTS }}',
{{ createTime }},
'{{ createdBy }}',
'{{ end1 }}',
'{{ end2 }}',
'{{ guid }}',
'{{ homeId }}',
'{{ label }}',
{{ provenanceType }},
'{{ status }}',
{{ updateTime }},
'{{ updatedBy }}',
{{ version }},
'{{ endpoint }}'
RETURNING
attributes,
createTime,
createdBy,
end1,
end2,
guid,
homeId,
label,
lastModifiedTS,
provenanceType,
status,
typeName,
updateTime,
updatedBy,
version
;

UPDATE examples​

Update an existing relationship between entities.

UPDATE azure.purview_data_map.relationship
SET
attributes = '{{ attributes }}',
typeName = '{{ typeName }}',
lastModifiedTS = '{{ lastModifiedTS }}',
createTime = {{ createTime }},
createdBy = '{{ createdBy }}',
end1 = '{{ end1 }}',
end2 = '{{ end2 }}',
guid = '{{ guid }}',
homeId = '{{ homeId }}',
label = '{{ label }}',
provenanceType = {{ provenanceType }},
status = '{{ status }}',
updateTime = {{ updateTime }},
updatedBy = '{{ updatedBy }}',
version = {{ version }}
WHERE
endpoint = '{{ endpoint }}' --required
RETURNING
attributes,
createTime,
createdBy,
end1,
end2,
guid,
homeId,
label,
lastModifiedTS,
provenanceType,
status,
typeName,
updateTime,
updatedBy,
version;

DELETE examples​

Delete a relationship between entities by its GUID.

DELETE FROM azure.purview_data_map.relationship
WHERE guid = '{{ guid }}' --required
AND endpoint = '{{ endpoint }}' --required
;