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
productionordevelopment. -
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, oradminUsersmust 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, oradminUsersmust 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, oradminUsersmust be provided. - Actually call Atlan to create the connection. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - 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.
- You must provide a client instance.
- Provide a human-readable name for your connection, such as
productionordevelopment. -
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_usersmust 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_usersmust 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_usersmust 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 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
productionordevelopment. -
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, oradminUsersmust 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, oradminUsersmust 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, oradminUsersmust be provided. - Actually call Atlan to create the connection. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - 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
typeNamemust be exactlyConnection. - Human-readable name for your connection, such as
productionordevelopment. -
The
connectorNameshould 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
qualifiedNameshould 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
categoryshould 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, oradminUsersmust 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, oradminUsersmust 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, oradminUsersmust 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 thecubeDimensionCountdirectly on thecubeinstance. - Actually call Atlan to create the cube. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - Retrieve the created cube for use in subsequent creation calls.
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_countdirectly on theCubeinstance. - 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.)
| 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 thecubeDimensionCountdirectly on thecubeinstance. - Actually call Atlan to create the cube. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - Retrieve the created cube for use in subsequent creation calls.
| POST /api/meta/entity/bulk | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
- The
typeNamemust be exactlyCube. - Human-readable name for your cube.
- The
qualifiedNameshould 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
connectionQualifiedNamemust be the exact qualifiedName of the connection for this cube. - The
connectorNamemust be exactly as used when defining the connection. - (Optional) To ensure the UI displays the correct count of
CubeDimensions's, set thecubeDimensionCountdirectly on thecubeinstance.
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 thequalifiedNameof the cube. - (Optional) To ensure the UI displays the correct count of
CubeHierarchy's, set thecubeHierarchyCountdirectly on theCubeHierarchyinstance. - Actually call Atlan to create the dimension. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - Retrieve the created dimension for use in subsequent creation calls.
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_countdirectly on theCubeDimensioninstance. - 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.)
| 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 thequalifiedNameof the cube. - (Optional) To ensure the UI displays the correct count of
CubeHierarchy's, set thecubeHierarchyCountdirectly on theCubeHierarchyinstance. - Actually call Atlan to create the dimension. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - Retrieve the created dimension for use in subsequent creation calls.
| 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
typeNamemust be exactlyCubeDimension. - Human-readable name for your dimension.
- The
qualifiedNameshould 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
connectionQualifiedNamemust be the exact qualifiedName of the connection for this dimension. - The
connectorNamemust be exactly as used when defining the connection. - The cube in which this dimension exists is embedded in the
cubeattribute. - The
typeNamefor this embedded reference must beCube. - To complete the reference, you must include a
uniqueAttributesobject with the qualifiedName of the cube. Note: the cube must already exist in Atlan before creating the dimension. - The
cubeNameshould be the human-readable name of the cube. - The
cubeQualifiedNameshould be the qualifiedName of the cube. - (Optional) To ensure the UI displays the correct count of
CubeHierarchy's, set thecubeHierarchyCountdirectly on theCubeHierarchyinstance.
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 thequalifiedNameof the dimension. - (Optional) To ensure the UI displays the correct count of
CubeField's, set thecubeFieldCountdirectly on theCubeHierarchyinstance. - Actually call Atlan to create the hierarchy. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - Retrieve the created hierarchy for use in subsequent creation calls.
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_countdirectly on theCubeHierarchyinstance. - 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.)
| 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 thequalifiedNameof the dimension. - (Optional) To ensure the UI displays the correct count of
CubeField's, set thecubeFieldCountdirectly on theCubeHierarchyinstance. - Actually call Atlan to create the hierarchy. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant. - Retrieve the created hierarchy for use in subsequent creation calls.
| 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
typeNamemust be exactlyCubeHierarchy. - Human-readable name for your hierarchy.
- The
qualifiedNameshould 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
connectionQualifiedNamemust be the exact qualifiedName of the connection for this hierarchy. - The
connectorNamemust be exactly as used when defining the connection. - The dimension in which this hierarchy exists is embedded in the
cubeDimensionattribute. - The
typeNamefor this embedded reference must beCubeDimension. - To complete the reference, you must include a
uniqueAttributesobject with the qualifiedName of the dimension. Note: the dimension must already exist in Atlan before creating the hierarchy. - The
cubeDimensionNameshould be the human-readable name of the dimension. - The
cubeDimensionQualifiedNameshould be the qualifiedName of the dimension. - The
cubeNameshould be the human-readable name of the cube. - The
cubeQualifiedNameshould be the qualifiedName of the cube. - (Optional) To ensure the UI displays the correct count of
CubeField's, set thecubeFieldCountdirectly on theCubeHierarchyinstance.
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 thequalifiedNameof a hierarchy (orCubeField.refByQualifiedName()if this is a nested field). - Actually call Atlan to create the field. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant.
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_namecreated above. If the parent asset type wereCubeFieldyou would want to use thequalified_nameof some previously-created field. - Actually call Atlan to create the field.
| 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 thequalifiedNameof a hierarchy (orCubeField.refByQualifiedName()if this is a nested field). - Actually call Atlan to create the field. Because this operation will persist the asset in Atlan, you must provide it an
AtlanClientthrough which to connect to the tenant.
| 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
typeNamemust be exactlyCubeField. - Human-readable name for your field.
- The
qualifiedNameshould 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
connectionQualifiedNamemust be the exact qualifiedName of the connection for this field. - The
connectorNamemust be exactly as used when defining the connection. - The hierarchy in which the field exists is embedded in the
cubeHierarchyattribute. - The
typeNamefor this embedded reference must beCubeHierarchy. - To complete the reference, you must include a
uniqueAttributesobject with the qualifiedName of the hierarchy. Note: the hierarchy must already exist in Atlan before creating the field. - The
cubeHierarchyNameshould be the human-readable name of the hierarchy. - The
cubeHierarchyQualifiedNameshould be the qualifiedName of the hierarchy. - The
cubeDimensionNameshould be the human-readable name of the dimension. - The
cubeDimensionQualifiedNameshould be the qualifiedName of the dimension. - The
cubeNameshould be the human-readable name of the cube. - The
cubeQualifiedNameshould 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. ↩