» Data Source: oci_datascience_notebook_sessions

This data source provides the list of Notebook Sessions in Oracle Cloud Infrastructure Datascience service.

Lists notebook sessions in the specified compartment.

» Example Usage

data "oci_datascience_notebook_sessions" "test_notebook_sessions" {
    #Required
    compartment_id = "${var.compartment_id}"

    #Optional
    created_by = "${var.notebook_session_created_by}"
    display_name = "${var.notebook_session_display_name}"
    id = "${var.notebook_session_id}"
    project_id = "${oci_datascience_project.test_project.id}"
    state = "${var.notebook_session_state}"
}

» Argument Reference

The following arguments are supported:

  • compartment_id - (Required) Filter results by the OCID of the compartment.
  • created_by - (Optional) Filter results by the OCID of the user who created the resource.
  • display_name - (Optional) Filter results by its user-friendly name.
  • id - (Optional) Filter results by OCID. Must be an OCID of the correct type for the resource type.
  • project_id - (Optional) Filter results by the OCID of the project.
  • state - (Optional) Filter results by the specified lifecycle state. Must be a valid state for the resource type.

» Attributes Reference

The following attributes are exported:

» NotebookSession Reference

The following attributes are exported:

  • compartment_id - The OCID of the notebook session's compartment.
  • created_by - The OCID of the user who created the notebook session.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
  • display_name - A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example: My NotebookSession
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the notebook session.
  • lifecycle_details - Details about the state of the notebook session.
  • notebook_session_configuration_details -
    • block_storage_size_in_gbs - A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.
    • shape - The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved from the ListNotebookSessionShapes endpoint.
    • subnet_id - A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.
  • notebook_session_url - The URL to interact with the notebook session.
  • project_id - The OCID of the project associated with the notebook session.
  • state - The state of the notebook session.
  • time_created - The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z