Skip to content

Access additional API response properties

In certain cases our strongly-typed model might not (yet) include a property you need to access. In these cases, you can directly access the properties returned in the API response.

Access model extra field

2.0.4

For example, when retrieving workflow credentials the response object does not include extra details that are connector-specific. However, developers can still access these extra properties:

Coming soon

Access model extra field
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.search_log import SearchLogRequest

client = AtlanClient()

# Snowflake workflow credential
response = client.credentials.get(
    guid="e3d74922-e2e8-4dbe-a7ed-3937e5153a51"
)

response.__atlan_extra__ # (1)
  1. Use __atlan_extra__ dict field for any response model to access extra API response properties. For this credential example __atlan_extra__ looks like: { "username": "atlan-user", "extra": { "role": "ADMIN", "warehouse": "DEV" } }

Coming soon