ArgusClient.create()
This class method is the designated constructor for creating an ArgusClient instance. It authenticates the API key and configures the client’s default state.
Signature:
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | (none) | Required. Your Argus API key. The key’s prefix determines the available feature set. |
asset_id | Optional[str] | None | Platform Tier Only. The default Asset ID to associate with all scans. An Asset is a logical container for policies and analytics in the Argus Platform. This parameter is ignored for non-platform keys. |
session_id | Optional[str] | None | Platform Tier Only. The default Session ID to associate with all scans. A Session groups related interactions for contextual analysis. This parameter is ignored for non-platform keys. |
policy | Optional[Policy] | None | The default Policy object configuration to apply to all scans. This is the primary method for defining rules for non-platform users. |
save | bool | False | Platform Tier Only. If True, all scan results are persisted in the Argus platform for analytics and log review. An asset_id must be provided to enable saving. This parameter is ignored for non-platform keys. |
strict | bool | True | If True, invalid client-side policy configurations (e.g., an empty list for a required parameter) will raise an ArgusValueError. If False, a UserWarning will be issued instead, and the scan may proceed. |
url | Optional[str] | None | Platform Tier Only. The Base URL that can be used to perform scan in a self hosted argus environment. |
ArgusClient instance.
Exceptions:
ArgusValueError: If theapi_keyhas an invalid format.ArgusAuthenticationError: If theapi_keyis invalid or expired.ArgusNotFoundError: If a providedasset_iddoes not exist.

