client.agent_vault.sessions.list() lists the sessions in an Agent Vault project. Admins can list every session, and members only their own.
Parameters
The ID of the Agent Vault project to list sessions from.
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).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.
Only sessions whose metadata has every one of these keys with exactly these values (up to 20).
Returns
The sessions in
sessions, and the total number of matching sessions in totalCount.