Manage cube assets¶
You can represent most multidimensional cube objects through a common set of multidimensional dataset assets. You can use this structure to create assets for any cube-oriented system you like:
erDiagram
Connection ||--o{ Cube : contains
Cube ||--o{ CubeDimension : cubeDimensions
CubeDimension ||--o{ CubeHierarchy : cubeHierarchies
CubeHierarchy ||--o{ CubeField : cubeFields
CubeField ||--o{ CubeField : cubeNestedFields
In general, these should be:
- Created in top-down order (connection, then cube, then dimension, and so on)
- Deleted in bottom-up order (fields, then hierarchies, then dimensions, then cubes, 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 API-first types like essbase
, for example.
However, note that in all cases the same structure (and types) as illustrated above are used — there are no differences in types between these multidimensional dataset 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 cube 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 cube 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.)
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 asessbase
.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 cube store. This should bedatabase
. - 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.
Cube¶
A cube requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the cube.
Create a cube | |
---|---|
11 12 13 14 15 16 17 |
|
- Build up the minimum request to create a cube.
- Provide a human-readable name for your cube.
- Provide the qualifiedName of the connection for this cube.
- (Optional) To ensure the UI displays the correct count of
CubeDimensions
's, set thecubeDimensionCount
directly on thecube
instance. - Actually call Atlan to create the cube.
- Retrieve the created cube for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Coming soon
Create a cube | |
---|---|
16 17 18 19 20 21 22 |
|
- Build up the minimum request to create a cube.
- Provide a human-readable name for your cube.
- Provide the qualified_name of the connection for this cube.
- (Optional) To ensure the UI displays the correct count of
CubeDimensions
's, set thecube_dimension_count
directly on theCube
instance. - Actually call Atlan to create the cube.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks first.)
POST /api/meta/entity/bulk | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
- The
typeName
must be exactlyCube
. - Human-readable name for your cube.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<name>
, wheredefault/<connectorName>/<epoch>
is the qualifiedName of the connection for this cube and<name>
is the name of this cube. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this cube. - The
connectorName
must be exactly as used when defining the connection. - (Optional) To ensure the UI displays the correct count of
CubeDimensions
's, set thecubeDimensionCount
directly on thecube
instance.
CubeDimension¶
A dimension requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the dimension, and the names and qualifiedNames of the dimension's ancestors.
Create a cube dimension | |
---|---|
18 19 20 21 22 23 24 |
|
- Build up the minimum request to create a dimension.
- Provide a human-readable name for your dimension.
- Provide the cube for this dimension. If you did not already have the object, you could also use
Cube.refByGuid()
with the GUID of the cube, orCube.refByQualifiedName()
with thequalifiedName
of the cube. - (Optional) To ensure the UI displays the correct count of
CubeHierarchy
's, set thecubeHierarchyCount
directly on theCubeHierarchy
instance. - Actually call Atlan to create the dimension.
- Retrieve the created dimension for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Coming soon
Create a cube dimension | |
---|---|
23 24 25 26 27 28 29 |
|
- Build up the minimum request to create a dimension.
- Provide a human-readable name for your dimension.
- Provide the qualified_name of the cube for this dimension.
- (Optional) To ensure the UI displays the correct count of
CubeHierarchy
's, set thecube_hierarchy_count
directly on theCubeDimension
instance. - Actually call Atlan to create the dimension.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks 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 exactlyCubeDimension
. - Human-readable name for your dimension.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<cube_name>/<name>
, wheredefault/<connectorName>/<epoch>/<cube_name>
is the qualifiedName of the cube for this dimension, and<name>
is the name of the dimension. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this dimension. - The
connectorName
must be exactly as used when defining the connection. - The cube in which this dimension exists is embedded in the
cube
attribute. - The
typeName
for this embedded reference must beCube
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the cube. Note: the cube must already exist in Atlan before creating the dimension. - The
cubeName
should be the human-readable name of the cube. - The
cubeQualifiedName
should be the qualifiedName of the cube. - (Optional) To ensure the UI displays the correct count of
CubeHierarchy
's, set thecubeHierarchyCount
directly on theCubeHierarchy
instance.
CubeHierarchy¶
A hierarchy requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the hierarchy, and the names and qualifiedNames of the hierarchy's ancestors.
Create a cube hierarchy | |
---|---|
25 26 27 28 29 30 31 |
|
- Build up the minimum request to create a hierarchy.
- Provide a human-readable name for your hierarchy.
- Provide the dimension for this hierarchy. If you did not already have the object, you could also use
CubeDimension.refByGuid()
with the GUID of the dimension, orCubeDimension.refByQualifiedName()
with thequalifiedName
of the dimension. - (Optional) To ensure the UI displays the correct count of
CubeField
's, set thecubeFieldCount
directly on theCubeHierarchy
instance. - Actually call Atlan to create the hierarchy.
- Retrieve the created hierarchy for use in subsequent creation calls. (You'd probably want to do some null checking first.)
Coming soon
Create a cube hierarchy | |
---|---|
30 31 32 33 34 35 36 |
|
- Build up the minimum request to create a hierarchy.
- Provide a human-readable name for your hierarchy.
- Provide the qualified_name of the dimension for this hierarchy.
- (Optional) To ensure the UI displays the correct count of
CubeField
's, set thecube_field_count
directly on theCubeHierarchy
instance. - Actually call Atlan to create the hierarchy.
- Retrieve the qualified_name for use in subsequent creation calls. (You'd probably want to do some checks 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 exactlyCubeHierarchy
. - Human-readable name for your hierarchy.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<cube_name>/<dimension_name>/<name>
, wheredefault/<connectorName>/<epoch>/<cube_name>/<dimension_name>
is the qualifiedName of the dimension for this hierarchy, and<name>
is the name of the hierarchy. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this hierarchy. - The
connectorName
must be exactly as used when defining the connection. - The dimension in which this hierarchy exists is embedded in the
cubeDimension
attribute. - The
typeName
for this embedded reference must beCubeDimension
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the dimension. Note: the dimension must already exist in Atlan before creating the hierarchy. - The
cubeDimensionName
should be the human-readable name of the dimension. - The
cubeDimensionQualifiedName
should be the qualifiedName of the dimension. - The
cubeName
should be the human-readable name of the cube. - The
cubeQualifiedName
should be the qualifiedName of the cube. - (Optional) To ensure the UI displays the correct count of
CubeField
's, set thecubeFieldCount
directly on theCubeHierarchy
instance.
CubeField¶
A field requires a name
and a qualifiedName
. For creation, you also need to specify the connectionQualifiedName
of the connection for the field, and the names and qualifiedNames of the fields's ancestors.
Create a cube field | |
---|---|
32 33 34 35 36 |
|
- Build up the minimum request to create a field.
- Provide a human-readable name for your field.
- Provide the parent for this field. If you did not already have the object, you could also use
CubeHierarchy.refByGuid()
with the GUID of a hierarchy (orCubeField.refByGuid()
if this is a nested field), orCubeHierarchy.refByQualifiedName()
with thequalifiedName
of a hierarchy (orCubeField.refByQualifiedName()
if this is a nested field). - Actually call Atlan to create the field.
Coming soon
Create a cube field | |
---|---|
37 38 39 40 41 42 |
|
- Build up the minimum request to create a field.
- Provide a human-readable name for your field.
- Specify the type of the parent asset for the field (hierarchy or field).
- Provide the qualified_name of the parent asset for this field. In this example you're defining a field in a hierarchy, so you can use the
hierarchy_qualified_name
created above. If the parent asset type wereCubeField
you would want to use thequalified_name
of some previously-created field. - Actually call Atlan to create the field.
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 |
|
- The
typeName
must be exactlyCubeField
. - Human-readable name for your field.
- The
qualifiedName
should follow the pattern:default/<connectorName>/<epoch>/<cube_name>/<dimension_name>/<hierarchy_name>/<name>
, wheredefault/<connectorName>/<epoch>/<cube_name>/<dimension_name>/<hierarchy_name>
is the qualifiedName of the parent hierarchy for this field, and<name>
is the name of the field. - The
connectionQualifiedName
must be the exact qualifiedName of the connection for this field. - The
connectorName
must be exactly as used when defining the connection. - The hierarchy in which the field exists is embedded in the
cubeHierarchy
attribute. - The
typeName
for this embedded reference must beCubeHierarchy
. - To complete the reference, you must include a
uniqueAttributes
object with the qualifiedName of the hierarchy. Note: the hierarchy must already exist in Atlan before creating the field. - The
cubeHierarchyName
should be the human-readable name of the hierarchy. - The
cubeHierarchyQualifiedName
should be the qualifiedName of the hierarchy. - The
cubeDimensionName
should be the human-readable name of the dimension. - The
cubeDimensionQualifiedName
should be the qualifiedName of the dimension. - The
cubeName
should be the human-readable name of the cube. - The
cubeQualifiedName
should be the qualifiedName of the cube.
Available relationships¶
Every level of the cube structure is 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.
-
Although if you want to delete everything in a connection, your better avenue is the packaged connection delete utility in the UI. ↩