tdx sessions#

Inspect sessions; interactive revocation is unavailable.

List a named person's sessions with --user-id and install-wide users.read. Own-session listing and every revocation route require an interactive dashboard session and are unavailable in this bearer-only CLI; use the dashboard. Unavailable commands refuse before requests or profile reads; write dry-runs only preview the selected route.

Every command also takes the global flags and reads the environment variables that the command reference lists once.

Commands#

CommandDescriptionType
tdx sessions listList a person's sessions, or explain own-session unavailability.Read
tdx sessions revokeUnavailable: session revocation requires an interactive session.Not available yet

tdx sessions list#

List a person's sessions, or explain own-session unavailability.

Reads

With --user-id, GET /users/:userId/sessions is bearer-reachable with install-wide users.read. Without it, GET /sessions is session-only and unavailable; no request, authentication or profile read is attempted. Reads with --dry-run still perform the same authorized GET. See People and role commands.

Shell
# GET /control/v1/users/:userId/sessions
tdx sessions list [flags]

Optional flags

FlagTypeDefaultDescription
--user-idstringPerson id; requires install-wide users.read.

Output fields (inside data)

FieldTypeDescription
sessionsmasked-route-dataGateway data after mandatory CLI masking; █ marks masked values.
noticestringPresent instead of data when masking withholds the entire result.

tdx sessions revoke#

Unavailable: session revocation requires an interactive session.

Not available yet. Running it exits 7 with NOT_IMPLEMENTED.

All session revocation routes are session-only; another person's sessions also require install users.manage and step-up. This bearer-only CLI refuses without authentication, requests or profile reads. Use the dashboard. Dry-run shows the selected DELETE route only, without dispatch. See People and role commands.

Shell
# DELETE /control/v1/sessions
# DELETE /control/v1/sessions/:sessionId
# DELETE /control/v1/users/:userId/sessions
# DELETE /control/v1/users/:userId/sessions/:sessionId
tdx sessions revoke [flags]

Optional flags

FlagTypeDefaultDescription
--user-idstringPerson whose sessions would be revoked; omitted means your own.
--idstringPublic session id; never a credential.
--allbooleanfalseAll sessions of the person, or all your OTHER sessions when no user-id.

Constraints

  • Exactly one of --id, --all

Output fields (inside data)

FieldTypeDescription
previewwrite-preview|nullRequested method, path and body only, with no diff and unchecked by the gateway; null after execution.
noticestringPresent instead of data when masking withholds the entire result.