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

client.admin.organization.externalStorage.create(body, options?): ExternalStorageConfiguration { id, created_at, geography, 4 more }
POST
/organization/external_storage

Register one customer-managed external storage configuration.

Parameters
body: ExternalStorageCreateParams { project_id, provider }
project_id: string
provider: Aws { bucket, role_arn, type } | Azure { account_name, container, resource_group, 3 more } | Gcp { bucket, type, workload_identity_pool_id, 2 more } | Oci { bucket, region, tenancy_ocid, type }
Returns
ExternalStorageConfiguration { id, created_at, geography, 4 more }
id: string
created_at: number
formatunixtime
geography: string
object: "organization.external_storage"
project_id: string
provider: AwsExternalStorageProvider { account_id, bucket, external_id, 3 more } | AzureExternalStorageProvider { account_name, container, region, 4 more } | GcpExternalStorageProvider { audience, bucket, region, 4 more } | OciExternalStorageProvider { bucket, region, tenancy_ocid, type }
status: "pending" | "validated" | "degraded" | "unhealthy"

Create an external storage configuration

import OpenAI from 'openai';

const client = new OpenAI({
  adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted
});

const externalStorageConfiguration = await client.admin.organization.externalStorage.create({
  project_id: 'proj_123',
  provider: {
    bucket: 'bucket',
    role_arn: 'role_arn',
    type: 'aws',
  },
});

console.log(externalStorageConfiguration.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"
}