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

List external storage configurations

admin.organization.external_storage.list(**kwargs) -> CursorPage<ExternalStorageConfiguration { id, created_at, geography, 4 more } >
GET
/organization/external_storage

List the organization’s customer-managed external storage configurations.

Parameters
after: String

Return external storage configurations after this ID.

limit: Integer
minimum1
maximum100
order: :asc | :desc
project_id: String
Returns
class ExternalStorageConfiguration { id, created_at, geography, 4 more }
id: String
created_at: Integer
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

List external storage configurations

require "openai"

openai = OpenAI::Client.new(admin_api_key: "My Admin API Key")

page = openai.admin.organization.external_storage.list

puts(page)
Response example
{
  "object": "list",
  "data": [
    {
      "object": "organization.external_storage",
      "id": "extstorage_abc123",
      "project_id": "proj_abc123",
      "provider": {
        "type": "aws",
        "account_id": "123456789012",
        "region": "us-east-1",
        "bucket": "customer-logs",
        "role_arn": "arn:aws:iam::123456789012:role/OpenAIExternalStorageRole",
        "external_id": "proj_abc123"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471533
    },
    {
      "object": "organization.external_storage",
      "id": "extstorage_azure123",
      "project_id": "proj_azure123",
      "provider": {
        "type": "azure",
        "tenant_id": "11111111-1111-1111-1111-111111111111",
        "subscription_id": "22222222-2222-2222-2222-222222222222",
        "resource_group": "customer-rg",
        "account_name": "customerstorage",
        "container": "openai-data",
        "region": "eastus"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471500
    },
    {
      "object": "organization.external_storage",
      "id": "extstorage_gcp123",
      "project_id": "proj_gcp123",
      "provider": {
        "type": "gcp",
        "bucket": "customer-gcp-retention",
        "workload_identity_project_number": "123456789012",
        "workload_identity_pool_id": "customer-pool",
        "workload_identity_provider_id": "customer-provider",
        "region": "us-central1",
        "audience": "proj_gcp123"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471400
    },
    {
      "object": "organization.external_storage",
      "id": "extstorage_oci123",
      "project_id": "proj_oci123",
      "provider": {
        "type": "oci",
        "tenancy_ocid": "ocid1.tenancy.oc1..example",
        "region": "us-ashburn-1",
        "bucket": "customer-oci-retention"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471300
    }
  ],
  "first_id": "extstorage_abc123",
  "last_id": "extstorage_oci123",
  "has_more": false
}
Returns Examples
Response example
{
  "object": "list",
  "data": [
    {
      "object": "organization.external_storage",
      "id": "extstorage_abc123",
      "project_id": "proj_abc123",
      "provider": {
        "type": "aws",
        "account_id": "123456789012",
        "region": "us-east-1",
        "bucket": "customer-logs",
        "role_arn": "arn:aws:iam::123456789012:role/OpenAIExternalStorageRole",
        "external_id": "proj_abc123"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471533
    },
    {
      "object": "organization.external_storage",
      "id": "extstorage_azure123",
      "project_id": "proj_azure123",
      "provider": {
        "type": "azure",
        "tenant_id": "11111111-1111-1111-1111-111111111111",
        "subscription_id": "22222222-2222-2222-2222-222222222222",
        "resource_group": "customer-rg",
        "account_name": "customerstorage",
        "container": "openai-data",
        "region": "eastus"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471500
    },
    {
      "object": "organization.external_storage",
      "id": "extstorage_gcp123",
      "project_id": "proj_gcp123",
      "provider": {
        "type": "gcp",
        "bucket": "customer-gcp-retention",
        "workload_identity_project_number": "123456789012",
        "workload_identity_pool_id": "customer-pool",
        "workload_identity_provider_id": "customer-provider",
        "region": "us-central1",
        "audience": "proj_gcp123"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471400
    },
    {
      "object": "organization.external_storage",
      "id": "extstorage_oci123",
      "project_id": "proj_oci123",
      "provider": {
        "type": "oci",
        "tenancy_ocid": "ocid1.tenancy.oc1..example",
        "region": "us-ashburn-1",
        "bucket": "customer-oci-retention"
      },
      "geography": "US",
      "status": "validated",
      "created_at": 1711471300
    }
  ],
  "first_id": "extstorage_abc123",
  "last_id": "extstorage_oci123",
  "has_more": false
}