Skip to content
Primary navigation

Containers

resource openai_container

required Expand Collapse
name: String

Name of the container to create.

optional Expand Collapse
memory_limit?: String

Optional memory limit for the container. Defaults to “1g”.

file_ids?: List[String]

IDs of files to copy to the container.

expires_after?: Attributes

Container expiration time in seconds relative to the ‘anchor’ time.

anchor: String

Time anchor for the expiration time. Currently only ‘last_active_at’ is supported.

minutes: Int64
network_policy?: Attributes

Network access policy for the container.

type?: String

Disable outbound network access. Always disabled.

allowed_domains?: List[String]

A list of allowed domains when type is allowlist.

domain_secrets?: List[Attributes]

Optional domain-scoped secrets for allowlisted domains.

domain: String

The domain associated with the secret.

name: String

The name of the secret to inject for the domain.

value: String

The secret value to inject for the domain.

skills?: List[Attributes]

An optional list of skills referenced by id or inline data.

skill_id?: String

The ID of the referenced skill.

type?: String

References a skill created with the /v1/skills endpoint.

version?: String

Optional skill version. Use a positive integer or ‘latest’. Omit for default.

description?: String

The description of the skill.

name?: String

The name of the skill.

source?: Attributes

Inline skill payload

data: String

Base64-encoded skill zip bundle.

media_type?: String

The media type of the inline skill payload. Must be application/zip.

type?: String

The type of the inline skill source. Must be base64.

computed Expand Collapse
id: String

Unique identifier for the container.

created_at: Int64

Unix timestamp (in seconds) when the container was created.

last_active_at: Int64

Unix timestamp (in seconds) when the container was last active.

object: String

The type of this object.

status: String

Status of the container (e.g., active, deleted).

openai_container

resource "openai_container" "example_container" {
  name = "name"
  expires_after = {
    anchor = "last_active_at"
    minutes = 0
  }
  file_ids = ["string"]
  memory_limit = "1g"
  network_policy = {
    type = "disabled"
  }
  skills = [{
    skill_id = "x"
    type = "skill_reference"
    version = "version"
  }]
}

data openai_container

optional Expand Collapse
container_id?: String
find_one_by?: Attributes
name?: String

Filter results by container name.

order?: String

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

computed Expand Collapse
id: String
created_at: Int64

Unix timestamp (in seconds) when the container was created.

last_active_at: Int64

Unix timestamp (in seconds) when the container was last active.

memory_limit: String

The memory limit configured for the container.

name: String

Name of the container.

object: String

The type of this object.

status: String

Status of the container (e.g., active, deleted).

expires_after: Attributes

The container will expire after this time period. The anchor is the reference point for the expiration. The minutes is the number of minutes after the anchor before the container expires.

anchor: String

The reference point for the expiration.

minutes: Int64

The number of minutes after the anchor before the container expires.

network_policy: Attributes

Network access policy for the container.

type: String

The network policy mode.

allowed_domains: List[String]

Allowed outbound domains when type is allowlist.

openai_container

data "openai_container" "example_container" {
  container_id = "container_id"
}

data openai_containers

optional Expand Collapse
name?: String

Filter results by container name.

order?: String

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
items: List[Attributes]

The items returned by the data source

id: String

Unique identifier for the container.

created_at: Int64

Unix timestamp (in seconds) when the container was created.

name: String

Name of the container.

object: String

The type of this object.

status: String

Status of the container (e.g., active, deleted).

expires_after: Attributes

The container will expire after this time period. The anchor is the reference point for the expiration. The minutes is the number of minutes after the anchor before the container expires.

anchor: String

The reference point for the expiration.

minutes: Int64

The number of minutes after the anchor before the container expires.

last_active_at: Int64

Unix timestamp (in seconds) when the container was last active.

memory_limit: String

The memory limit configured for the container.

network_policy: Attributes

Network access policy for the container.

type: String

The network policy mode.

allowed_domains: List[String]

Allowed outbound domains when type is allowlist.

openai_containers

data "openai_containers" "example_containers" {
  name = "name"
}

ContainersFiles

resource openai_container_file

required Expand Collapse
container_id: String
optional Expand Collapse
file?: String

The File object (not file name) to be uploaded.

file_id?: String

Name of the file to create.

computed Expand Collapse
id: String

Unique identifier for the file.

bytes: Int64

Size of the file in bytes.

created_at: Int64

Unix timestamp (in seconds) when the file was created.

object: String

The type of this object (container.file).

path: String

Path of the file in the container.

source: String

Source of the file (e.g., user, assistant).

openai_container_file

resource "openai_container_file" "example_container_file" {
  container_id = "container_id"
  file = "Example data"
  file_id = "file_id"
}

data openai_container_file

required Expand Collapse
container_id: String
optional Expand Collapse
file_id?: String
find_one_by?: Attributes
order?: String

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

computed Expand Collapse
id: String
bytes: Int64

Size of the file in bytes.

created_at: Int64

Unix timestamp (in seconds) when the file was created.

object: String

The type of this object (container.file).

path: String

Path of the file in the container.

source: String

Source of the file (e.g., user, assistant).

openai_container_file

data "openai_container_file" "example_container_file" {
  container_id = "container_id"
  file_id = "file_id"
}

data openai_container_files

required Expand Collapse
container_id: String
optional Expand Collapse
order?: String

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
items: List[Attributes]

The items returned by the data source

id: String

Unique identifier for the file.

bytes: Int64

Size of the file in bytes.

container_id: String

The container this file belongs to.

created_at: Int64

Unix timestamp (in seconds) when the file was created.

object: String

The type of this object (container.file).

path: String

Path of the file in the container.

source: String

Source of the file (e.g., user, assistant).

openai_container_files

data "openai_container_files" "example_container_files" {
  container_id = "container_id"
}

ContainersFilesContent

data openai_container_file_content

required Expand Collapse
container_id: String
file_id: String
computed Expand Collapse
content: JSON

openai_container_file_content

data "openai_container_file_content" "example_container_file_content" {
  container_id = "container_id"
  file_id = "file_id"
}