| page_title | subcategory | description |
|---|---|---|
openai_batch Data Source - terraform-provider-openai |
# Fetch a specific batch job by ID
data "openai_batch" "embeddings_batch" {
batch_id = "batch_abc123"
}
# Output batch job details
output "batch_status" {
value = data.openai_batch.embeddings_batch.status
}batch_id(String) The ID of the batch job to retrieve
project_id(String) The ID of the project associated with the batch job. If not specified, the API key's default project will be used.
completed_at(Number) The timestamp when the batch job completedcompletion_window(String) The time window specified for batch completioncreated_at(Number) The timestamp when the batch job was createdendpoint(String) The endpoint used for the batch request (e.g., '/v1/chat/completions')error(String) Information about errors that occurred during processingerror_file_id(String) The ID of the error file (if available)expires_at(Number) The timestamp when the batch job expiresid(String) The ID of this resource.in_progress_at(Number) The timestamp when the batch job began processinginput_file_id(String) The ID of the input file used for the batchmetadata(Map of String) Custom metadata attached to the batch joboutput_file_id(String) The ID of the output file (if available)request_counts(Map of Number) Statistics about request processingstatus(String) The current status of the batch job