Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.31 KB

File metadata and controls

57 lines (42 loc) · 1.31 KB
page_title openai_project Resource - terraform-provider-openai
subcategory
description Manages an OpenAI Project.

openai_project (Resource)

Manages an OpenAI Project.

Example Usage

# Create a new OpenAI project
resource "openai_project" "development" {
  name = "Development Project"
}

# Create a production project
resource "openai_project" "production" {
  name = "Production API Services"
}

# Output the project ID
output "dev_project_id" {
  value       = openai_project.development.id
  description = "The ID of the development project"
}

Schema

Required

  • name (String) The name of the project.

Read-Only

  • archived_at (String) The timestamp when the project was archived.
  • created_at (String) The timestamp when the project was created.
  • id (String) The identifier of the project.
  • status (String) The status of the project (e.g. active, archived).

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

#!/bin/bash
# Import existing OpenAI project
terraform import openai_project.example proj_abc123def456