Create an external storage configuration
admin.organization.external_storage.create(ExternalStorageCreateParams**kwargs ) -> ExternalStorageConfiguration
POST
/organization/external_storageCreate 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"
}