Anaplan assets app
The Anaplan assets app crawls Anaplan workspaces, models, modules, and line items
and publishes them to Atlan. Build it with the Anaplan builder.
Creating an app creates a new connection
Each create mints a new connection and new assets. To re-crawl, re-run the existing workflow (see Re-run an existing app).
Anaplan supports two authentication methods: basic (username/password) and CA certificate.
Basic authentication
- Python
Anaplan crawling with basic auth
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.apps import Anaplan
client = AtlanClient()
response = (
Anaplan(client)
.basic( # (1)
username="atlan_user", # (2)
password="••••••", # (3)
)
.connection(
name="production-anaplan",
admin_roles=[client.role_cache.get_id_for_name("$admin")],
)
.include_metadata({"my_workspace": {}}) # (4)
.run(name="anaplan-prod")
)
print(response.slug, response.run_id)
- Step 1—Credential. Username/password auth; the secret is vaulted.
- Required. Username.
- Required. Password. A custom
hostis optional. - Step 3—Metadata. Workspaces/models to crawl.
CA certificate authentication
- Python
Anaplan crawling with a CA certificate
(
Anaplan(client)
.ca_cert(
username=encoded_data, # (1)
password=encoded_signed_data, # (2)
ca_certificate=ca_cert_contents, # (3)
)
.connection(name="production-anaplan", admin_roles=[...])
.run(name="anaplan-prod")
)
- Required. The encoded data.
- Required. The encoded signed data.
- Required. The CA certificate file contents. A custom
hostis optional.
Configuration options
All metadata options are optional:
- Python
Anaplan metadata configuration
(
Anaplan(client)
.basic(username="atlan_user", password="••••••")
.connection(name="production-anaplan", admin_roles=[...])
.include_metadata({"my_workspace": {}}) # (1)
.exclude_metadata({"sandbox_workspace": {}}) # (2)
.exclude_empty_modules(True) # (3)
.ingest_system_dimensions("proxy") # (4)
.run(name="anaplan-prod")
)
- Workspaces/models to include.
- Workspaces/models to exclude.
- Exclude modules that have no line items.
- How to ingest system dimensions (Time and Versions)—as a proxy, individually, or not at all.