Skip to main content
Community Hub
TL;DR

Retrieve custom metadata structures programmatically using the Atlan Python SDK (pyatlan). Use CustomMetadataDef to access metadata definitions and attributes.

Your AI can read this via Docs MCPInstall MCP →Connect

CustomMetadataDef: retrieve custom metadata

Use CustomMetadataDef in the Atlan Python SDK to programmatically retrieve custom metadata type definitions and their attributes.

You can retrieve an existing custom metadata structure:

Retrieve existing custom metadata structure
CustomMetadataDef existing = client
.getCustomMetadataCache()
.getCustomMetadataDef("RACI"); // (1)
  1. You can retrieve the current custom metadata definition using the custom metadata cache from any client. In most cases you can simply use the default client (Atlan.getDefaultClient()). Pass the human-readable name of the custom metadata structure to the cache.
Was this page helpful?