aip_sdk.list_suts
aip_sdk.list_suts(project_id: str | None = None, page: int = 1, per_page: int = 100, client: APIClient | None = None, *, workspace_id: str | None = None, all_workspaces: bool = False) -> list[SutInstance]
List registered SUTs.
Reads your session's workspace unless you name one, and raises if none is set.
Pass all_workspaces=True to read across every workspace you can access.
Parameters
project_idstr | None: Scope the listing to this project, which determines its workspace. Not combinable withworkspace_id.pageint: Page number (1-based).per_pageint: Items per page (max 100).clientAPIClient | None: Optional API client.workspace_idstr | None: Return only SUTs in this workspace.all_workspacesbool: Read across every workspace you can access.
Returns
list[SutInstance]: List of SutInstance objects.
Raises
AuthError: If credentials are missing or invalid.ForbiddenError: Ifworkspace_idnames a workspace you cannot access.InvalidArgumentError: If bothworkspace_idandall_workspacesare given.NoWorkspaceSelectedError: No workspace was passed, none is configured for the session, andall_workspaceswas not set.
Examples:
suts = aip.list_suts()
suts = aip.list_suts(project_id="proj_123")