Sample use cases
Add a community, a domain with assets representing schema, tables, columns and the relevant relations
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a community:
DBs Community.Adds a domain inside the created community:
Physical Domain.Adds the following assets to the created domain:
SCHEMA_1,TABLE_1,TABLE_2,TAB_1_COLUMN_1,TAB_1_COLUMN_2,TAB_2_COLUMN_1.Creates the relations:
SCHEMA_1 contains TABLE_1.SCHEMA_1 contains TABLE_2.TAB_1_COLUMN_1 is part of TABLE_1.TAB_1_COLUMN_2 is part of TABLE_1.TAB_2_COLUMN_1 is part of TABLE_2.
Input
[{
"resourceType": "Community",
"identifier": {
"name": "DBs Community"
}
},
{
"resourceType": "Domain",
"identifier": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
},
"type": {
"name": "Physical Data Dictionary"
}
},
{
"resourceType": "Asset",
"identifier": {
"name": "SCHEMA_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
},
"type": {
"name": "Schema"
}
},
{
"resourceType": "Asset",
"identifier": {
"name": "TABLE_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
},
"type": {
"name": "Table"
},
"relations": {
"00000000-0000-0000-0000-000000007043:SOURCE": [
{
"name": "SCHEMA_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
}
]
}
},
{
"resourceType": "Asset",
"identifier": {
"name": "TABLE_2",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
},
"type": {
"name": "Table"
},
"relations": {
"00000000-0000-0000-0000-000000007043:SOURCE": [
{
"name": "SCHEMA_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
}
]
}
},
{
"resourceType": "Asset",
"identifier": {
"name": "TAB_1_COLUMN_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
},
"type": {
"name": "Column"
},
"relations": {
"00000000-0000-0000-0000-000000007042:TARGET": [
{
"name": "TABLE_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
}
]
}
},
{
"resourceType": "Asset",
"identifier": {
"name": "TAB_1_COLUMN_2",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
},
"type": {
"name": "Column"
},
"relations": {
"00000000-0000-0000-0000-000000007042:TARGET": [
{
"name": "TABLE_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
}
]
}
},
{
"resourceType": "Asset",
"identifier": {
"name": "TAB_2_COLUMN_1",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
},
"type": {
"name": "Column"
},
"relations": {
"00000000-0000-0000-0000-000000007042:TARGET": [
{
"name": "TABLE_2",
"domain": {
"name": "Physical Domain",
"community": {
"name": "DBs Community"
}
}
}
]
}
}]Import mappings for assets
The JSON in this section creates mappings for schema, table and column assets.
The following mappings are created, in an environment where these resources do not exist yet:
(
EXT_SYSTEM,EXT_SCHEMA_1_ID) →SCHEMA_1.(
EXT_SYSTEM,EXT_TABLE_1_ID) →TABLE_1.(
EXT_SYSTEM,EXT_TABLE_2_ID) →TABLE_2.(
EXT_SYSTEM,EXT_TABLE_1_COLUMN_1_ID) →TAB_1_COLUMN_1.(
EXT_SYSTEM,EXT_TABLE_1_COLUMN_2_ID) →TAB_1_COLUMN_2.(
EXT_SYSTEM,EXT_TABLE_2_COLUMN_1_ID) →TAB_2_COLUMN_1.
Input
Import assets and create mappings implicitly
You can import assets and their mappings within the same input file.
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a community:
DBs Community.Adds a domain inside the created community:
Physical Domain.Adds the following assets to the created domain:
SCHEMA_1,TABLE_1,TABLE_2,TAB_1_COLUMN_1,TAB_1_COLUMN_2,TAB_2_COLUMN_1.Creates the relations:
SCHEMA_1 contains TABLE_1.SCHEMA_1 contains TABLE_2.TAB_1_COLUMN_1 is part of TABLE_1.TAB_1_COLUMN_2 is part of TABLE_1.TAB_2_COLUMN_1 is part of TABLE_2.
Creates the mappings:
(
EXT_SYSTEM,EXT_SCHEMA_1_ID) →SCHEMA_1.(
EXT_SYSTEM,EXT_TABLE_1_ID) →TABLE_1.(
EXT_SYSTEM,EXT_TABLE_2_ID) →TABLE_2.(
EXT_SYSTEM,EXT_TABLE_1_COLUMN_1_ID) →TAB_1_COLUMN_1.(
EXT_SYSTEM,EXT_TABLE_1_COLUMN_2_ID) →TAB_1_COLUMN_2.(
EXT_SYSTEM,EXT_TABLE_2_COLUMN_1_ID) →TAB_2_COLUMN_1.
Input
Modify an asset using the asset mapping as identification
You can update an asset using the asset mapping as identifier.
Input
Update schema, table and column assets
The JSON in this section performs the following operations:
Changes the display name of
SCHEMA_1to SCHEMA.Changes the display name of
TABLE_1to T1.Changes the display name of
TABLE_2to T2.Changes the display name of
TAB_1_COLUMN_1to C1.Changes the display name of
TAB_1_COLUMN_2to C2.Changes the display name of
TAB_2_COLUMN_1to C3.
Input
Import multiple resource attributes
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a community:
DBs Community.Adds a domain inside the created community:
Physical Domain.Adds the asset
DB_TABLEto the created domain with the following attributes:Profiling Information.
Description.
Input
Import multivalue attributes
For this example to work, you must create a new attribute type and assign it to the Table asset type in Collibra Platform.
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a community:
DBs Community.Adds a domain inside the created community:
Physical Domain.Adds the asset
DB_TABLEto the created domain with the following multivalue attribute:Indexes.
Input
Import relations
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a community:
DBs Community.Adds a domain inside the created community:
Physical Domain.Adds the asset
DB_SCHEMAwithout relations.Adds the asset
DB_TABLEwith a source relation toUSERS_SCHEMA.Adds the asset
DB_COLUMNwith a target relation toUSERS_TABLE.
You can specify relation types in multiple ways:
Using the relation type resource ID and the relation direction separated by a colon, for example:
00000000-0000-0000-0000-000000007042:TARGET.Using the relation type public ID and the relation direction separated by a colon, for example:
PUBLIC_ID:ColumnIsPartOfTable:TARGET.Using a fully qualified relation type name separated by colons and the relation direction also separated by a colon, for example:
Schema:contains:is part of:Table:SOURCE.
Input
Import tags
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a community:
DBs Community.Adds a domain inside the created community:
Physical Domain.Adds the asset
DB_SCHEMAwithout tags.Adds the asset
DB_TABLEwith the tags:TAG_1.TAG_2.
Input
Import complex relations
For this example to work, you must have the following resources:
A community named
DBs Community.A Physical Data Dictionary domain inside the community named
Physical Domain.A Mapping domain inside the community named
My Mapping Domain.The following Column assets in Physical Domain:
DB_COL_SOURCE_1,DB_COL_SOURCE_2,DB_COL_TARGET_1,DB_COL_TARGET_2.A Mapping Specification asset named
MapSpecin My Mapping Domain.
The JSON in this section performs the following operations in an environment where these resources do not exist yet:
Adds a field mapping complex relation between the assets and a description attribute.
Creates a mapping based on the external system and entity for the imported complex relation for further reference.
Input
Last updated
Was this helpful?