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

Validate an external storage configuration

client.Admin.Organization.ExternalStorage.Validate(ctx, externalStorageID) (*ExternalStorageConfiguration, error)
POST
/organization/external_storage/{external_storage_id}/validate

Validate one customer-managed external storage configuration.

Parameters
externalStorageID string
Returns
type ExternalStorageConfiguration struct{…}
ID string
CreatedAt int64
formatunixtime
Geography string
Object OrganizationExternalStorage
ProjectID string
Provider ExternalStorageConfigurationProviderUnion
Status ExternalStorageConfigurationStatus

Validate an external storage configuration

package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAdminAPIKey("My Admin API Key"),
  )
  externalStorageConfiguration, err := client.Admin.Organization.ExternalStorage.Validate(context.TODO(), "extstorage_123")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", externalStorageConfiguration.ID)
}
Response example
{
  "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": 1711471533
}
Returns Examples
Response example
{
  "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": 1711471533
}