OpenAI 列出工作负载身份提供商

2026-11-19 17:50 更新

列出工作负载身份提供商

get /organization/workload_identity_providers

列出管理员 API 密钥所属组织中的 OIDC 提供商。

查询参数

  • after: optional string

minLength: 1

  • limit: optional integer

minimum: 1, maximum: 100

  • order: optional "asc" or "desc"

  • "asc" or "desc"

  • "asc"

  • "desc"

返回值

  • data: array of WorkloadIdentityProvider

  • id: string

  • attribute_transformations: array of object { attribute, expression }

  • attribute: string

  • expression: string

  • audience: string

  • created_at: integer

  • description: string or null

  • enabled: boolean

  • issuer: string

  • name: string

  • object: "organization.workload_identity_provider" (default: "organization.workload_identity_provider")

  • "organization.workload_identity_provider"

  • type: "oidc" (default: "oidc")

  • "oidc"

  • updated_at: integer

  • verification: DiscoveryVerification { discovery_url, type } or UploadedJwksVerification { jwks, type }

  • DiscoveryVerification object { discovery_url, type }

  • discovery_url: string or null

  • type: "discovery" (default: "discovery")

  • "discovery"

  • UploadedJwksVerification object { jwks, type }

  • jwks: map[unknown]

  • type: "uploaded_jwks" (default: "uploaded_jwks")

  • "uploaded_jwks"

  • first_id: string or null

  • has_more: boolean

  • last_id: string or null

  • object: "list" (default: "list")

  • "list"

示例

## 从环境变量读取管理员密钥。读取资源列表(身份提供商)
curl -X GET "https://api.openai.com/v1/organization/workload_identity_providers?limit=20&order=asc" \
  -H "Authorization: Bearer $OPENAI_ADMIN_KEY"

响应示例

{
  "object": "list",
  "data": [
    {
      "object": "organization.workload_identity_provider",
      "id": "wip_example",
      "type": "oidc",
      "name": "CI provider",
      "issuer": "https://issuer.example.com",
      "audience": "openai",
      "verification": {
        "type": "discovery",
        "discovery_url": null
      },
      "description": null,
      "attribute_transformations": [],
      "enabled": true,
      "created_at": 1793664000,
      "updated_at": 1793664000
    }
  ],
  "first_id": "wip_example",
  "last_id": "wip_example",
  "has_more": false
}
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号