Retrieve custom metadata¶
You can retrieve an existing custom metadata structure:
| Retrieve existing custom metadata structure | |
|---|---|
1 2 3 | |
- 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.
| Retrieve existing custom metadata structure | |
|---|---|
1 2 3 4 | |
- You can retrieve the current custom metadata definition using the
client.custom_metadata_cache.get_custom_metadata_def()method and passing the client and human-readable name of the custom metadata structure.
| Retrieve existing custom metadata structure | |
|---|---|
1 2 3 | |
- 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.
| GET /api/meta/types/typedefs?type=BUSINESS_METADATA | |
|---|---|
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 46 | |
- Each custom metadata structure will be wrapped in the top-level
businessMetadataDefsarray. - Each custom metadata structure object will have a
categoryofBUSINESS_METADATA. - The
nameof a custom metadata structure is a unique hashed-string, but is not human-readable. This is how the custom metadata is uniquely referred to through the raw APIs. - The
displayNameof a custom metadata structure is the human-readable name you see in the UI. - Each property defined within the custom metadata structure is nested within an
attributeDefsarray. - As with the overall custom metadata structure, each attribute has a unique hashed-string
namethat is not human-readable. This is how the custom metadata property is uniquely referred to through the raw APIs. - As with the overall custom metadata structure, each attribute also has a
displayNamethat is the human-readable name you see in the UI. - The type of the custom metadata property is its simple type, but does not include custom types like SQL, users, groups and so on.
- For the precise type, you also need to look at the
customTypewithin theoptions, within the attribute definition.