2023-09-12 11:37:31 -07:00
|
|
|
---
|
|
|
|
|
layout: docs
|
|
|
|
|
page_title: sessions - Command
|
2024-12-17 14:13:18 -05:00
|
|
|
description: >-
|
|
|
|
|
The "sessions" command performs operations on Boundary session resources. A session is a set of related connections between a user and host.
|
2023-09-12 11:37:31 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# sessions
|
|
|
|
|
|
|
|
|
|
Command: `boundary sessions`
|
|
|
|
|
|
|
|
|
|
The `sessions` command lets you perform operations on Boundary session resources.
|
|
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
The following command reads the details of a session with the id `s_1234567890`:
|
|
|
|
|
|
|
|
|
|
```shell-session
|
|
|
|
|
$ boundary sessions read -id s_1234567890
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
<CodeBlockConfig hideClipboard>
|
|
|
|
|
|
|
|
|
|
```shell-session
|
|
|
|
|
Usage: boundary sessions <subcommand> [options] [args]
|
|
|
|
|
# ...
|
|
|
|
|
Subcommands:
|
|
|
|
|
cancel Cancel a session
|
|
|
|
|
list List a session
|
|
|
|
|
read Read a session
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</CodeBlockConfig>
|
|
|
|
|
|
|
|
|
|
For more information, examples, and usage, click on the name
|
|
|
|
|
of the subcommand in the sidebar or one of the links below:
|
|
|
|
|
|
|
|
|
|
- [cancel](/boundary/docs/commands/sessions/cancel)
|
|
|
|
|
- [list](/boundary/docs/commands/sessions/list)
|
|
|
|
|
- [read](/boundary/docs/commands/sessions/read)
|