Manage relational assets¶
You can represent most relational database and data warehousing objects through a common set of relational assets. You can use this structure to create assets for any relational system you like:
erDiagram
Connection ||--o{ Database : contains
Database ||--o{ Schema : schemas
Schema ||--o{ Table : tables
Schema ||--o{ View : views
Schema ||--o{ MaterialisedView : materialisedViews
Table |o--o{ TablePartition : partitions
Table }o--o{ Query : queries
Table |o--o{ Column : columns
Table }o--o{ DbtModel : dbtModels
View }o--o{ Query : queries
View |o--o{ Column : columns
View }o--o{ DbtModel : dbtModels
MaterialisedView |o--o{ Column : columns
TablePartition |o--o{ Column : columns
Column }o--o{ Query : queries
Column }o--o{ DbtMetric : dbtMetrics
Column |o--o{ Metric : dataQualityMetricDimensions
Column |o--o{ DbtModelColumn : dbtModelColumns
In general, these should be:
- Created in top-down order (connection, then database, then schema, and so on)
- Deleted in bottom-up order (columns, then tables, then schema, then database, then connection)1
Where do the icons come from?
Atlan will display icons for these assets based on the type of connector you define in the Connection. You can use out-of-the-box types like athena
, or API-first types like netsuite
and vertica
.
However, note that in all cases the same structure (and types) as illustrated above are used — there are no differences in types between these relational assets across different systems.
Asset structure¶
Connection¶
A connection requires a name
and qualifiedName
. As noted above, a specific setting is also required to determine the icons to use for assets in the connection. In addition, at least one of adminRoles
, adminGroups
, or adminUsers
must be provided.
Create a relational connection | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
- Retrieve the GUID for the admin role, to use later for defining the roles that can administer the connection.
- Build up the minimum request to create a connection.
- Provide a human-readable name for your connection, such as
production
ordevelopment
. -
Set the type of connection.
Determines the icon
This determines the icon that Atlan will use for all the assets in the connection.
-
List the workspace roles that should be able to administer the connection (or null if none). All users with that workspace role (current and future) will be administrators of the connection. Note that the values here need to be the GUID(s) of the workspace role(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - List the group names that can administer this connection (or null if none). All users within that group (current and future) will be administrators of the connection. Note that the values here are the name(s) of the group(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - List the user names that can administer this connection (or null if none). Note that the values here are the username(s) of the user(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - Actually call Atlan to create the connection.
- Retrieve the qualifiedName for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Create a relational connection | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
- Retrieve the GUID for the admin role, to use later for defining the roles that can administer the connection.
- Build up the minimum request to create a connection.
- Provide a human-readable name for your connection, such as
production
ordevelopment
. -
Set the type of connection.
Determines the icon
This determines the icon that Atlan will use for all the assets in the connection.
-
List the workspace roles that should be able to administer the connection (if any, defaults to
None
). All users with that workspace role (current and future) will be administrators of the connection. Note that the values here need to be the GUID(s) of the workspace role(s). At least one ofadmin_roles
,admin_groups
, oradmin_users
must be provided. - List the group names that can administer this connection (if any, defaults to
None
). All users within that group (current and future) will be administrators of the connection. Note that the values here are the name(s) of the group(s). At least one ofadmin_roles
,admin_groups
, oradmin_users
must be provided. - List the user names that can administer this connection (if any, defaults to
None
). Note that the values here are the username(s) of the user(s). At least one ofadmin_roles
,admin_groups
, oradmin_users
must be provided. - Actually call Atlan to create the connection.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
Create a relational connection | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
- Retrieve the GUID for the admin role, to use later for defining the roles that can administer the connection.
- Build up the minimum request to create a connection.
- Provide a human-readable name for your connection, such as
production
ordevelopment
. -
Set the type of connection.
Determines the icon
This determines the icon that Atlan will use for all the assets in the connection.
-
List the workspace roles that should be able to administer the connection (or null if none). All users with that workspace role (current and future) will be administrators of the connection. Note that the values here need to be the GUID(s) of the workspace role(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - List the group names that can administer this connection (or null if none). All users within that group (current and future) will be administrators of the connection. Note that the values here are the name(s) of the group(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - List the user names that can administer this connection (or null if none). Note that the values here are the username(s) of the user(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - Actually call Atlan to create the connection.
- Retrieve the qualifiedName for use in subsequent creation calls. (You'd probably want to do some null checking first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
- The
typeName
must be exactlyConnection
. - Human-readable name for your connection, such as
production
ordevelopment
. -
The
connectorName
should be a known value, such asvertica
.Determines the icon
This determines the icon that Atlan will use for all the assets in the connection. If you use a value that is not a known value, you will have a default gear icon instead.
-
The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>
, where<epoch>
is the time in milliseconds at which the connection is being created, and<connectorName>
exactly matches the value used forconnectorName
(above). - The
category
should also be a known value, that defines the kind of relational store. This could for example bewarehouse
orrdbms
. - List any workspace roles that can administer this connection. All users with that workspace role (current and future) will be administrators of the connection. Note that the values here need to be the GUID(s) of the workspace role(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - List any groups that can administer this connection. All users within that group (current and future) will be administrators of the connection. Note that the values here are the name(s) of the group(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided. - List any users that can administer this connection. Note that the values here are the username(s) of the user(s). At least one of
adminRoles
,adminGroups
, oradminUsers
must be provided.
Access policies
Atlan creates the policies that grant access to a connection, including the ability to retrieve the connection and to create assets within it, asynchronously. It can take several seconds (even up to approximately 30 seconds) before these are in place after creating the connection.
You may therefore need to wait before you'll be able to create the assets below within the connection.
To confirm access, retrieve the connection after it has been created. The SDKs' retry loops will automatically retry until the connection can be successfully retrieved. At that point, your API token has permission to create the other assets.
Note: if you are reusing an existing connection rather than creating one via your API token, you must give your API token a persona that has access to that connection. Otherwise all attempts to create, read, update, or delete assets within that connection will fail due to a lack of permissions.
Database¶
A database requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the database.
Create a relational database | |
---|---|
11 12 13 14 15 16 17 |
|
- Build up the minimum request to create a database.
- Provide a human-readable name for your database.
- Provide the qualifiedName of the connection for this database.
- (Optional) To ensure the UI displays the correct count of
Schema
's, set theschemaCount
directly on theDatabase
instance. - Actually call Atlan to create the database.
- Retrieve the created database for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Create a relational database | |
---|---|
17 18 19 20 21 22 23 |
|
- Build up the minimum request to create a database.
- Provide a human-readable name for your database.
- Provide the qualified_name of the connection for this database.
- (Optional) To ensure the UI displays the correct count of
Schema
's, set theschema_count
directly on theDatabase
instance. - Actually call Atlan to create the database.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
Create a relational database | |
---|---|
11 12 13 14 15 16 17 |
|
- Build up the minimum request to create a database.
- Provide a human-readable name for your database.
- Provide the qualifiedName of the connection for this database.
- (Optional) To ensure the UI displays the correct count of
Schema
's, set theschemaCount
directly on theDatabase
instance. - Actually call Atlan to create the database.
- Retrieve the created database for use in subsequent creation calls. (You'd probably want to do some null checking first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
- The
typeName
must be exactlyDatabase
. - Human-readable name for your database.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<db_name>
, wheredefault/<connectorName>/<epoch>
is the qualifiedName of the connection for this database and<db_name>
is the name of this database. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this database. - The
connectorName
must be exactly as used when defining the connection. - (Optional) To ensure the UI displays the correct count of
Schema
's, set theschemaCount
directly on theDatabase
instance.
Schema¶
A schema requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the schema, and the names and qualifiedNames of the schema's ancestors.
Create a relational schema | |
---|---|
18 19 20 21 22 23 24 25 |
|
- Build up the minimum request to create a schema.
- Provide a human-readable name for your schema.
- Provide the database for this schema. If you did not already have the object, you could also use
Database.refByGuid()
with the GUID of the database, orDatabase.refByQualifiedName()
with thequalifiedName
of the database. - (Optional) To ensure the UI displays the correct count of
Table
's, set thetableCount
directly on theSchema
instance. - (Optional) To ensure the UI displays the correct count of
View
's, set theviewCount
directly on theSchema
instance. - Actually call Atlan to create the schema.
- Retrieve the created schema for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Create a relational schema | |
---|---|
24 25 26 27 28 29 30 31 |
|
- Build up the minimum request to create a schema.
- Provide a human-readable name for your schema.
- Provide the qualified_name of the database for this schema.
- (Optional) To ensure the UI displays the correct count of
Table
's, set thetable_count
directly on theSchema
instance. - (Optional) To ensure the UI displays the correct count of
View
's, set theviews_count
directly on theSchema
instance. - Actually call Atlan to create the schema.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
Create a relational schema | |
---|---|
18 19 20 21 22 23 24 25 |
|
- Build up the minimum request to create a schema.
- Provide a human-readable name for your schema.
- Provide the database for this schema. If you did not already have the object, you could also use
Database.refByGuid()
with the GUID of the database, orDatabase.refByQualifiedName()
with thequalifiedName
of the database. - (Optional) To ensure the UI displays the correct count of
Table
's, set thetableCount
directly on theSchema
instance. - (Optional) To ensure the UI displays the correct count of
View
's, set theviewCount
directly on theSchema
instance. - Actually call Atlan to create the schema.
- Retrieve the created schema for use in subsequent creation calls. (You'd probably want to do some null checking first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
- The
typeName
must be exactlySchema
. - Human-readable name for your schema.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<db_name>/<schema_name>
, wheredefault/<connectorName>/<epoch>/<db_name>
is the qualifiedName of the database for this schema, and<schema_name>
is the name of the schema. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this schema. - The
connectorName
must be exactly as used when defining the connection. - The database in which this schema exists is embedded in the
database
attribute. - The
typeName
for this embedded reference must beDatabase
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the database. Note: the database must already exist in Atlan before creating the schema. - The
databaseName
should be the human-readable name of the database. - The
databaseQualifiedName
should be the qualifiedName of the database. - (Optional) To ensure the UI displays the correct count of
View
's, set theviewCount
directly on theSchema
instance.
Table¶
A table requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the table, and the names and qualifiedNames of the table's ancestors.
Create a relational table | |
---|---|
26 27 28 29 30 31 32 |
|
- Build up the minimum request to create a table.
- Provide a human-readable name for your table.
- Provide the schema for this table. If you did not already have the object, you could also use
Schema.refByGuid()
with the GUID of the schema, orSchema.refByQualifiedName()
with thequalifiedName
of the schema. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theTable
instance. - Actually call Atlan to create the table.
- Retrieve the created table for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Create a relational table | |
---|---|
32 33 34 35 36 37 38 |
|
- Build up the minimum request to create a table.
- Provide a human-readable name for your table.
- Provide the qualified_name of the schema for this table.
- (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumn_count
directly on theTable
instance. - Actually call Atlan to create the table.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
Create a relational table | |
---|---|
26 27 28 29 30 31 32 |
|
- Build up the minimum request to create a table.
- Provide a human-readable name for your table.
- Provide the schema for this table. If you did not already have the object, you could also use
Schema.refByGuid()
with the GUID of the schema, orSchema.refByQualifiedName()
with thequalifiedName
of the schema. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theTable
instance. - Actually call Atlan to create the table.
- Retrieve the created table for use in subsequent creation calls. (You'd probably want to do some null checking first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
- The
typeName
must be exactlyTable
. - Human-readable name for your table.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<db_name>/<schema_name>/<table_name>
, wheredefault/<connectorName>/<epoch>/<db_name>/<schema_name>
is the qualifiedName of the schema for this table, and<table_name>
is the name of the table. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this table. - The
connectorName
must be exactly as used when defining the connection. - The schema in which this table exists is embedded in the
atlanSchema
attribute. - The
typeName
for this embedded reference must beSchema
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the schema. Note: the schema must already exist in Atlan before creating the table. - The
schemaName
should be the human-readable name of the schema. - The
schemaQualifiedName
should be the qualifiedName of the schema. - The
databaseName
should be the human-readable name of the database. - The
databaseQualifiedName
should be the qualifiedName of the database. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theTable
instance.
View¶
A view requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the view, and the names and qualifiedNames of the view's ancestors.
Create a relational view | |
---|---|
26 27 28 29 30 31 32 |
|
- Build up the minimum request to create a view.
- Provide a human-readable name for your view.
- Provide the schema for this table. If you did not already have the object, you could also use
Schema.refByGuid()
with the GUID of the schema, orSchema.refByQualifiedName()
with thequalifiedName
of the schema. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theView
instance. - Actually call Atlan to create the view.
- Retrieve the created view for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Create a relational view | |
---|---|
32 33 34 35 36 37 38 |
|
- Build up the minimum request to create a view.
- Provide a human-readable name for your view.
- Provide the qualified_name of the schema for this view.
- (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumn_count
directly on theView
instance. - Actually call Atlan to create the view.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
Create a relational view | |
---|---|
26 27 28 29 30 31 32 |
|
- Build up the minimum request to create a view.
- Provide a human-readable name for your view.
- Provide the schema for this table. If you did not already have the object, you could also use
Schema.refByGuid()
with the GUID of the schema, orSchema.refByQualifiedName()
with thequalifiedName
of the schema. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theView
instance. - Actually call Atlan to create the view.
- Retrieve the created view for use in subsequent creation calls. (You'd probably want to do some null checking first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
- The
typeName
must be exactlyView
. - Human-readable name for your view.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<db_name>/<schema_name>/<view_name>
, wheredefault/<connectorName>/<epoch>/<db_name>/<schema_name>
is the qualifiedName of the schema for this view, and<view_name>
is the name of the view. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this view. - The
connectorName
must be exactly as used when defining the connection. - The schema in which this view exists is embedded in the
atlanSchema
attribute. - The
typeName
for this embedded reference must beSchema
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the schema. Note: the schema must already exist in Atlan before creating the view. - The
schemaName
should be the human-readable name of the schema. - The
schemaQualifiedName
should be the qualifiedName of the schema. - The
databaseName
should be the human-readable name of the database. - The
databaseQualifiedName
should be the qualifiedName of the database. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theView
instance.
MaterialisedView¶
A materialized view requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the materialized view, and the names and qualifiedNames of the materialized view's ancestors.
Create a relational materialized view | |
---|---|
26 27 28 29 30 31 32 |
|
- Build up the minimum request to create a materialized view.
- Provide a human-readable name for your materialized view.
- Provide the schema for this table. If you did not already have the object, you could also use
Schema.refByGuid()
with the GUID of the schema, orSchema.refByQualifiedName()
with thequalifiedName
of the schema. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theMaterializedView
instance. - Actually call Atlan to create the materialized view.
- Retrieve the created materialized view for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Create a relational materialized view | |
---|---|
32 33 34 35 36 37 38 |
|
- Build up the minimum request to create a materialized view.
- Provide a human-readable name for your materialized view.
- Provide the qualified_name of the schema for this materialized view.
- (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumn_count
directly on theMaterializedView
instance. - Actually call Atlan to create the materialized view.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
Create a relational materialized view | |
---|---|
26 27 28 29 30 31 32 |
|
- Build up the minimum request to create a materialized view.
- Provide a human-readable name for your materialized view.
- Provide the schema for this table. If you did not already have the object, you could also use
Schema.refByGuid()
with the GUID of the schema, orSchema.refByQualifiedName()
with thequalifiedName
of the schema. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theMaterializedView
instance. - Actually call Atlan to create the materialized view.
- Retrieve the created materialized view for use in subsequent creation calls. (You'd probably want to do some null checking first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
- The
typeName
must be exactlyMaterialisedView
. (Yes, the spelling, with ans
not az
.) - Human-readable name for your materialized view.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<db_name>/<schema_name>/<view_name>
, wheredefault/<connectorName>/<epoch>/<db_name>/<schema_name>
is the qualifiedName of the schema for this materialized view, and<view_name>
is the name of the materialized view. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this materialized view. - The
connectorName
must be exactly as used when defining the connection. - The schema in which this materialized view exists is embedded in the
atlanSchema
attribute. - The
typeName
for this embedded reference must beSchema
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the schema. Note: the schema must already exist in Atlan before creating the materialized view. - The
schemaName
should be the human-readable name of the schema. - The
schemaQualifiedName
should be the qualifiedName of the schema. - The
databaseName
should be the human-readable name of the database. - The
databaseQualifiedName
should be the qualifiedName of the database. - (Optional) To ensure the UI displays the correct count of
Column
's, set thecolumnCount
directly on theMaterializedView
instance.
TablePartition¶
Coming soon
Column¶
A column requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the column, the column's order
(position) within its parent, and the names and qualifiedNames of the column's ancestors.
Create a relational column | |
---|---|
33 34 35 36 37 38 |
|
- Build up the minimum request to create a column.
- Provide a human-readable name for your column.
- Provide the parent container for this column. If you did not already have the object, you could also use
Table.refByGuid()
with the GUID of a table (orView.refByGuid()
, etc), orTable.refByQualifiedName()
with thequalifiedName
of a table (orView.refByQualifiedName()
, etc). - The order (position) of the column within the table.
- Actually call Atlan to create the column.
Create a relational column | |
---|---|
39 40 41 42 43 44 45 |
|
- Build up the minimum request to create a column.
- Provide a human-readable name for your column.
- Specify the type of the parent asset for the column (table, view, or materialized view).
- Provide the qualified_name of the parent asset for this column. In this example you're defining a column in a table, so you can use the
table_qualified_name
created above. If the parent asset type wereView
you would want to use theview_qualified_name
created above. - The order (position) of the column within the table.
- Actually call Atlan to create the column.
Create a relational column | |
---|---|
33 34 35 36 37 38 |
|
- Build up the minimum request to create a column.
- Provide a human-readable name for your column.
- Provide the parent container for this column. If you did not already have the object, you could also use
Table.refByGuid()
with the GUID of a table (orView.refByGuid()
, etc), orTable.refByQualifiedName()
with thequalifiedName
of a table (orView.refByQualifiedName()
, etc). - The order (position) of the column within the table.
- Actually call Atlan to create the column.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
- The
typeName
must be exactlyColumn
. - Human-readable name for your column.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<db_name>/<schema_name>/<parent_name>/<column_name>
, wheredefault/<connectorName>/<epoch>/<db_name>/<schema_name>/<parent_name>
is the qualifiedName of the parent container (table, view, materialized view) for this column, and<column_name>
is the name of the column. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this column. - The
connectorName
must be exactly as used when defining the connection. - If the column exists in a table, the table in which it exists is embedded in the
table
attribute. - The
typeName
for this embedded reference must beTable
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the table. Note: the table must already exist in Atlan before creating the column. - If the column exists in a view, the view in which it exists is embedded in the
view
attribute. - The
typeName
for this embedded reference must beView
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the view. Note: the view must already exist in Atlan before creating the column. - If the column exists in a materialized view, the materialized view in which it exists is embedded in the
materialisedView
attribute. - The
typeName
for this embedded reference must beMaterialisedView
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the materialized view. Note: the materialized view must already exist in Atlan before creating the column. - If the column exists in a table, the
tableName
should be the human-readable name of the table. - If the column exists in a table, the
tableQualifiedName
should be the qualifiedName of the table. - If the column exists in either a view or materialized view, the
viewName
should be the human-readable name of the (materialized) view. - If the column exists in either a view or materialized view, the
viewQualifiedName
should be the qualifiedName of the (materialized) view. - The
schemaName
should be the human-readable name of the schema. - The
schemaQualifiedName
should be the qualifiedName of the schema. - The
databaseName
should be the human-readable name of the database. - The
databaseQualifiedName
should be the qualifiedName of the database. - The order (position) of the column within the table.
Available relationships¶
Every level of the relational structure is also an Asset
, and can therefore be related to the following other assets.
erDiagram
Asset }o--o{ AtlasGlossaryTerm : meanings
Asset ||--o{ Link : links
Asset ||--o| Readme : readme
Asset }o--o{ Process : inputToProcesses
Asset }o--o{ Process : outputFromProcesses
AtlasGlossaryTerm¶
A glossary term provides meaning to an asset. The link terms to assets snippet provides more detail on setting this relationship.
Link¶
A link provides additional context to an asset, by providing a URL to additional information.
Readme¶
A README provides rich documentation for an asset. The add asset READMEs snippet provides more detail on setting this relationship.
Process¶
A process provides lineage information for an asset. An asset can be both an input and an output for one or more processes. The lineage snippets provide more detail on creating and working with lineage.
Primary keys¶
You can define a column as a primary key by setting the isPrimary
attribute to true
:
Create a primary key column | |
---|---|
33 34 35 36 37 38 39 |
|
Create a primary key column | |
---|---|
39 40 41 42 43 44 45 46 |
|
Create a primary key column | |
---|---|
33 34 35 36 37 38 39 |
|
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
Foreign keys¶
You can link one column to another, as a foreign key, by setting the isForeign
attribute to true
and creating a relationship to another column through the foreignKeyFrom
attribute:
Create a foreign key relationship | |
---|---|
33 34 35 36 37 38 39 40 |
|
- Mark the column that whose values are foreign keys pointing to another column.
- Use the
foreignKeyFrom
attribute to specify the other column that this column's values point to.
Create a foreign key relationship | |
---|---|
39 40 41 42 43 44 45 46 47 |
|
- Mark the column that whose values are foreign keys pointing to another column.
- Use the
foreign_key_from
attribute to specify the other column that this column's values point to.
Create a foreign key relationship | |
---|---|
33 34 35 36 37 38 39 40 |
|
- Mark the column that whose values are foreign keys pointing to another column.
- Use the
foreignKeyFrom
attribute to specify the other column that this column's values point to.
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
- Mark the column that whose values are foreign keys pointing to another column.
- Use the
foreignKeyFrom
attribute to specify the other column that this column's values point to.
-
Although if you want to delete everything in a connection, your better avenue is the packaged connection delete utility in the UI. ↩