Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Create an external storage configuration

admin.organization.external_storage.create(**kwargs) -> ExternalStorageConfiguration
POST
/organization/external_storage

Register one customer-managed external storage configuration.

Parameters
project_id: str
Returns
class ExternalStorageConfiguration: …
id: str
created_at: int
formatunixtime
geography: str
object: Literal["organization.external_storage"]
project_id: str
provider: Provider
status: Literal["pending", "validated", "degraded", "unhealthy"]

Create an external storage configuration

import os
from openai import OpenAI

client = OpenAI(
    admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"),  # This is the default and can be omitted
)
external_storage_configuration = client.admin.organization.external_storage.create(
    project_id="proj_123",
    provider={
        "bucket": "bucket",
        "role_arn": "role_arn",
        "type": "aws",
    },
)
print(external_storage_configuration.id)
200 — Example
{
  "id": "id",
  "created_at": 0,
  "geography": "geography",
  "object": "organization.external_storage",
  "project_id": "project_id",
  "provider": {
    "account_id": "account_id",
    "bucket": "bucket",
    "external_id": "external_id",
    "region": "region",
    "role_arn": "role_arn",
    "type": "aws"
  },
  "status": "pending"
}
Returns Examples
200 — Example
{
  "id": "id",
  "created_at": 0,
  "geography": "geography",
  "object": "organization.external_storage",
  "project_id": "project_id",
  "provider": {
    "account_id": "account_id",
    "bucket": "bucket",
    "external_id": "external_id",
    "region": "region",
    "role_arn": "role_arn",
    "type": "aws"
  },
  "status": "pending"
}