Create an external storage configuration
client.admin.organization.externalStorage.create(ExternalStorageCreateParams { project_id, provider } body , RequestOptionsoptions ?): ExternalStorageConfiguration { id, created_at, geography, 4 more }
POST
/organization/external_storageCreate 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"
}