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:
| Parameter | Type | Description |
|---|---|---|
policies_to_set | Policy | Required. A Policy object containing the rules to set. |
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:
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:
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:
| Parameter | Type | Description |
|---|---|---|
asset_id | str | Required. The Asset ID to set as the default. |
NoneExceptions: ArgusNotFoundError if the asset does not exist.
get_asset_id()
Retrieves the current default asset_id configured on the client instance.
Signature:
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:
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:
| Parameter | Type | Description |
|---|---|---|
session_id | str | Required. The Session ID to set as the default. |
None
get_session_id()
Retrieves the current default session_id configured on the client instance.
Signature:
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:
None
