Skip to main content
client.agent_vault.sessions.list() lists the sessions in an Agent Vault project. Admins can list every session, and members only their own.

Parameters

str
required
The ID of the Agent Vault project to list sessions from.
Union[AgentVaultSessionScope, str]
Whose sessions to list, either AgentVaultSessionScope.MINE ("mine") for your own sessions or AgentVaultSessionScope.ALL ("all") for every session if you’re an admin (defaults to AgentVaultSessionScope.MINE).
List[Union[AgentVaultSessionStatus, str]]
The statuses to include, from AgentVaultSessionStatus.ACTIVE ("active"), AgentVaultSessionStatus.REVOKED ("revoked"), and AgentVaultSessionStatus.EXPIRED ("expired") (defaults to all three).
Text to find in each session’s label, owner name, owner email, access bundle name, or the name or email of the user that the session was created on behalf of.
Dict[str, str]
Only sessions whose metadata has every one of these keys with exactly these values (up to 20).
int
The maximum number of sessions to return, from 1 to 100 (defaults to 20).
int
The number of sessions to skip (defaults to 0).

Returns

ListAgentVaultSessionsResponse
The sessions in sessions, and the total number of matching sessions in totalCount.