OpenAI 获取外部存储配置
2026-11-13 15:39 更新
获取外部存储配置
get /organization/external_storage/{external_storage_id}
获取一个由客户管理的外部存储配置。
路径参数
external_storage_id: string
返回值
ExternalStorageConfiguration object { id, created_at, geography, 4 more }
id: string
created_at: integer
format: unixtime
geography: string
object: "organization.external_storage" (default: "organization.external_storage")
"organization.external_storage"
project_id: string
provider: AwsExternalStorageProvider or AzureExternalStorageProvider or GcpExternalStorageProvider or OciExternalStorageProvider
AwsExternalStorageProvider object { account_id, bucket, external_id, 3 more }
account_id: string
bucket: string
external_id: string
region: string
role_arn: string
type: "aws" (default: "aws")
"aws"
AzureExternalStorageProvider object { account_name, container, region, 4 more }
account_name: string
container: string
region: string
resource_group: string
subscription_id: string
tenant_id: string
type: "azure" (default: "azure")
"azure"
GcpExternalStorageProvider object { audience, bucket, region, 4 more }
audience: string
bucket: string
region: string
type: "gcp" (default: "gcp")
"gcp"
workload_identity_pool_id: string
workload_identity_project_number: string
workload_identity_provider_id: string
OciExternalStorageProvider object { bucket, region, tenancy_ocid, type }
bucket: string
region: string
tenancy_ocid: string
type: "oci" (default: "oci")
"oci"
status: "pending" or "validated" or "degraded" or "unhealthy"
"pending"
"validated"
"degraded"
"unhealthy"
示例
## 从环境变量读取组织管理员密钥;存储配置ID和云资源示例值需替换为实际值
curl https://api.openai.com/v1/organization/external_storage/$EXTERNAL_STORAGE_ID \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY"
200 — 示例
以下 JSON 示例展示接口返回字段。字段名、资源标识符和状态值按原文保留。
{
"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"
}
示例
## 从环境变量读取组织管理员密钥;存储配置ID和云资源示例值需替换为实际值
curl https://api.openai.com/v1/organization/external_storage/extstorage_azure123 \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json"
响应示例
{
"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
}以上内容是否对您有帮助:

TRAE-AI编程


更多建议: