Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.97 KB

File metadata and controls

86 lines (62 loc) · 2.97 KB
page_title subcategory description
opal_requests Data Source - terraform-provider-opal
Requests DataSource

opal_requests (Data Source)

Requests DataSource

Example Usage

data "opal_requests" "my_requests" {
  cursor            = "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw"
  page_size         = 200
  show_pending_only = false
}

Schema

Optional

  • cursor (String) The pagination cursor value.
  • page_size (Number) Number of results to return per page. Default is 200.
  • show_pending_only (Boolean) Boolean toggle for if it should only show pending requests.

Read-Only

Nested Schema for requests

Read-Only:

  • created_at (String) The date and time the request was created.
  • custom_fields_responses (Attributes List) The responses given to the custom fields associated to the request (see below for nested schema)
  • duration_minutes (Number) The duration of the request in minutes.
  • id (String) The unique identifier of the request.
  • reason (String) The reason for the request.
  • requested_items_list (Attributes List) The list of targets for the request. (see below for nested schema)
  • requester_id (String) The unique identifier of the user who created the request.
  • status (String) # Request Status

Description

The RequestStatus enum is used to represent the status of a request.

Usage Example

Returned from the GET Requests endpoint.

  • target_group_id (String) The unique identifier of the group who is the target of the request.
  • target_user_id (String) The unique identifier of the user who is the target of the request.
  • updated_at (String) The date and time the request was last updated.

Nested Schema for requests.custom_fields_responses

Read-Only:

  • field_name (String)
  • field_type (String) The type of the custom request field.
  • field_value (Attributes) (see below for nested schema)

Nested Schema for requests.custom_fields_responses.field_value

Read-Only:

  • boolean (Boolean)
  • str (String)

Nested Schema for requests.requested_items_list

Read-Only:

  • access_level_name (String) The name of the access level requested.
  • access_level_remote_id (String) The ID of the access level requested on the remote system.
  • group_id (String) The ID of the group requested.
  • name (String) The name of the target.
  • resource_id (String) The ID of the resource requested.