Skip to main content

Policy Management

set_policies()

Updates the client’s default policy configuration. The provided policies are merged with the existing policy state, overriding any pre-existing configurations for the same PolicyName. Signature:
Parameters: Returns: None

get_enabled_policies()

Retrieves the currently active policies configured on the client instance. This method filters out any policies set to Action.DISABLED. Signature:
Parameters: None Returns: Policy - A dictionary containing only the enabled policies from the client’s current state.

clear_policies()

Resets the client’s policy state, effectively disabling all policies. After this call, the client will have no default policy until a new one is set via set_policies(). Signature:
Parameters: None Returns: None

Asset Management (Platform Tier Only)

These methods are only functional for clients initialized with a Platform Tier (i.e., rsk_) API key.

set_asset_id()

Sets or changes the default asset_id for the client instance. This method verifies that the provided asset_id exists and is accessible by the authenticated API key. Signature:
Parameters: Returns: NoneExceptions: ArgusNotFoundError if the asset does not exist.

get_asset_id()

Retrieves the current default asset_id configured on the client instance. Signature:
Parameters: None Returns: Optional[str] - The current default Asset ID, or None if not set.

clear_asset_id()

Removes the default asset_id from the client’s configuration state. Signature:
Parameters: None Returns: None

Session Management (Platform Tier Only)

These methods are only functional for clients initialized with a Platform Tier (i.e., rsk_) API key.

set_session_id()

Sets or changes the default session_id for the client instance. Signature:
Parameters: Returns: None

get_session_id()

Retrieves the current default session_id configured on the client instance. Signature:
Parameters: None Returns: Optional[str] - The current default Session ID, or None if not set.

clear_session_id()

Removes the default session_id from the client’s configuration state. Signature:
Parameters: None Returns: None