REST interface for entity relationships.
Create a new relationship between entities.
media type | data type |
---|---|
application/json | AtlasRelationship (JSON) |
application/json | AtlasRelationship (JSON) |
media type | data type | description |
---|---|---|
application/json | AtlasRelationship (JSON) | |
application/json | AtlasRelationship (JSON) |
POST /v2/relationship
Content-Type: application/json
Accept: application/json
{
"blockedPropagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"end1" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"end2" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"guid" : "...",
"homeId" : "...",
"label" : "...",
"propagateTags" : "NONE",
"propagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"provenanceType" : 12345,
"status" : "DELETED",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"blockedPropagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"end1" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"end2" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"guid" : "...",
"homeId" : "...",
"label" : "...",
"propagateTags" : "NONE",
"propagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"provenanceType" : 12345,
"status" : "ACTIVE",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
Update an existing relationship between entities.
media type | data type |
---|---|
application/json | AtlasRelationship (JSON) |
application/json | AtlasRelationship (JSON) |
media type | data type | description |
---|---|---|
application/json | AtlasRelationship (JSON) | |
application/json | AtlasRelationship (JSON) |
PUT /v2/relationship
Content-Type: application/json
Accept: application/json
{
"blockedPropagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"end1" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"end2" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"guid" : "...",
"homeId" : "...",
"label" : "...",
"propagateTags" : "TWO_TO_ONE",
"propagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"provenanceType" : 12345,
"status" : "DELETED",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"blockedPropagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"end1" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"end2" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"guid" : "...",
"homeId" : "...",
"label" : "...",
"propagateTags" : "NONE",
"propagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
}, {
"endTime" : "...",
"startTime" : "...",
"timeZone" : "..."
} ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"provenanceType" : 12345,
"status" : "ACTIVE",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
Delete a relationship between entities using guid.
name | type | description |
---|---|---|
guid | path |
DELETE /v2/relationship/guid/{guid}
Content-Type: application/json
...
HTTP/1.1 204 No Content
Get relationship information between entities using guid.
name | type | description | default | constraints |
---|---|---|---|---|
guid | path | |||
extendedInfo | query | false | boolean |
media type | data type | description |
---|---|---|
application/json | AtlasRelationshipWithExtInfo (JSON) | |
application/json | AtlasRelationshipWithExtInfo (JSON) |
GET /v2/relationship/guid/{guid}
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"referredEntities" : {
"property1" : {
"classificationNames" : [ "...", "..." ],
"classifications" : [ {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"displayText" : "...",
"guid" : "...",
"isIncomplete" : true,
"labels" : [ "...", "..." ],
"meaningNames" : [ "...", "..." ],
"meanings" : [ {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"qualifiedName" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "OTHER",
"steward" : "...",
"termGuid" : "..."
}, {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"qualifiedName" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "PROPOSED",
"steward" : "...",
"termGuid" : "..."
} ],
"status" : "DELETED",
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
},
"property2" : {
"classificationNames" : [ "...", "..." ],
"classifications" : [ {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"displayText" : "...",
"guid" : "...",
"isIncomplete" : true,
"labels" : [ "...", "..." ],
"meaningNames" : [ "...", "..." ],
"meanings" : [ {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"qualifiedName" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "IMPORTED",
"steward" : "...",
"termGuid" : "..."
}, {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"qualifiedName" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "DEPRECATED",
"steward" : "...",
"termGuid" : "..."
} ],
"status" : "DELETED",
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
},
"relationship" : {
"blockedPropagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "PURGED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"end1" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"end2" : {
"guid" : "...",
"typeName" : "...",
"uniqueAttributes" : {
"property1" : { },
"property2" : { }
}
},
"guid" : "...",
"homeId" : "...",
"label" : "...",
"propagateTags" : "NONE",
"propagatedClassifications" : [ {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"provenanceType" : 12345,
"status" : "ACTIVE",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
}