aip_sdk.list_judge_connections
aip_sdk.list_judge_connections(*, project_id: str | None = None, workspace_id: str | None = None, page: int = 1, per_page: int = 100, client: APIClient | None = None, all_workspaces: bool = False) -> list[JudgeConnection]
List registered judge connections visible to the caller.
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 the workspace. Pass this orworkspace_id, not both.workspace_idstr | None: Restrict the listing to this workspace.pageint: 1-based page number.per_pageint: Page size.clientAPIClient | None: Optional pre-configured API client.all_workspacesbool: Read across every workspace you can access.
Returns
list[JudgeConnection]: list[JudgeConnection]: the connections on the requested page (keys masked).
Raises
AuthError: If credentials are missing or invalid.InvalidArgumentError: If bothworkspace_idandall_workspacesare given.ForbiddenError: Ifworkspace_idnames a workspace you cannot access.NoWorkspaceSelectedError: No workspace was passed, none is configured for the session, andall_workspaceswas not set.
Example:
for judge in aip.list_judge_connections(workspace_id="ws-abc123"):
print(judge.name, judge.model)