Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.88 KB

File metadata and controls

62 lines (44 loc) · 1.88 KB
page_title subcategory description
opal_sessions Data Source - terraform-provider-opal
Sessions DataSource

opal_sessions (Data Source)

Sessions DataSource

Example Usage

data "opal_sessions" "my_sessions" {
  resource_id = "1b978423-db0a-4037-a4cf-f79c60cb67b3"
  user_id     = "32acc112-21ff-4669-91c2-21e27683eaa1"
}

Schema

Required

  • resource_id (String) The ID of the resource.

Optional

  • user_id (String) The ID of the user you wish to query sessions for.

Read-Only

  • next (String) The cursor with which to continue pagination if additional result pages exist.
  • previous (String) The cursor used to obtain the current result page.
  • results (Attributes List) (see below for nested schema)

Nested Schema for results

Read-Only:

  • access_level (Attributes) # Access Level Object

Description

The AccessLevel object is used to represent the level of access that a principal has. The "default" access level is a AccessLevel object whose fields are all empty strings.

Usage Example

View the AccessLevel of a resource/user or resource/group pair to see the level of access granted to the resource. (see below for nested schema)

  • connection_id (String) The ID of the connection.
  • expiration_date (String) The day and time the user's access will expire.
  • resource_id (String) The ID of the resource.
  • user_id (String) The ID of the user.

Nested Schema for results.access_level

Read-Only:

  • access_level_name (String) The human-readable name of the access level.
  • access_level_remote_id (String) The machine-readable identifier of the access level.