Other instance administration

In the following examples, client is an AgentManagementClient created as described in The main AgentManagementClient class. Administrative operations require the corresponding instance privileges.

Retrieving instance information

info = client.get_instance_info()
licensing_status = client.get_licensing_status()
print(licensing_status)

Instance information uses the shared DSSInstanceInfo handle. set_license() is also available to update the instance license from its full contents.

Reading logs

See Accessing logs to read instance logs with the client and access the dedicated platform, agent, alerting, and AI analysis logs.

Writing a custom audit event

client.log_custom_audit(
    "agent-inventory-export",
    custom_params={"integration": "inventory-report"},
)

Inspecting authentication providers

Use the dedicated settings handles to inspect configured authentication providers.

sso = client.get_sso_settings()
print("SSO enabled:", sso.get_sso_enabled())

ldap = client.get_ldap_settings()
print("LDAP enabled:", ldap.get_enabled())

azure_ad = client.get_azure_ad_settings()
print("Microsoft Entra ID enabled:", azure_ad.get_enabled())

These handles also expose setters and save methods for provider administration: sso.save(), ldap.save(), and azure_ad.save(). For user and group administration, see Users and groups and the client reference.

Inspecting generic background tasks

Some instance APIs return a DSSFuture object to track a background task. These tasks use a different API from platform and agent operations.

for item in client.list_futures():
    print(item["jobId"])

future = client.get_future("job-id")
print(future.get_state())

Use list_operations() for platform scans, data fetches, uptime tests, and remote activation. See Asynchronous operations.

Reference documentation

Classes

dataikuapi.dss.future.DSSFuture(client, job_id)

A future represents a long-running task on a DSS instance.

Functions

get_azure_ad_settings()

Get the Azure Active Directory (aka Microsoft Entra ID) settings

get_enabled()

Get whether LDAP is enabled.

get_enabled()

Get whether Azure AD integration is enabled.

get_future(job_id)

Get a handle to interact with a specific long task (a.k.a future).

get_instance_info()

Get global information about the Agent Management instance

get_ldap_settings()

Get the LDAP settings

get_licensing_status()

Returns a dictionary with information about licensing status of this Agent Management instance

get_sso_enabled()

Get whether SSO is enabled.

get_sso_settings()

Get the Single Sign-On (SSO) settings

get_state()

Queries the state of the future, and fetches the result if it's ready.

list_futures([as_objects, all_users])

List the currently-running generic long tasks (a.k.a futures).

list_operations([agent_filter, ...])

Lists readable Agent Management operations matching the supplied filters.

log_custom_audit(custom_type[, custom_params])

Log a custom entry to the audit trail

set_license(license)

Sets a new licence for the Agent Management instance.