ByCloud Docs
GuidesCLIAPISDK

Get STS session

bycloud iam sts-sessions get --session_id <session_id> [flags]

Get details of a specific STS session. Requires `iam:GetSTSSession` permission.

Options

--session_id

stringrequired

STS session ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Command

bycloud iam sts-sessions get \
--session_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
ORGANIZATION_ID 550e8400-e29b-41d4-a716-446655440000
ROLE_ID 550e8400-e29b-41d4-a716-446655440000
ROLE_NAME string
PRINCIPAL_ID 550e8400-e29b-41d4-a716-446655440000
PRINCIPAL_TYPE user
PRINCIPAL_NAME string
SESSION_NAME string
CREATED_AT 2024-01-15T10:30:00Z
EXPIRES_AT 2024-01-15T10:30:00Z
LAST_USED_AT 2024-01-15T10:30:00Z
REVOKED true
REVOKED_AT 2024-01-15T10:30:00Z
REVOKED_REASON string
SOURCE_IP string
IS_ACTIVE true