| page_title | openai_project Resource - terraform-provider-openai |
|---|---|
| subcategory | |
| description | Manages an OpenAI Project. |
Manages an OpenAI Project.
# 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"
}name(String) The name of the project.
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 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