OpenAI 获取工作负载身份提供商

2026-11-19 17:50 更新

获取工作负载身份提供商

get /organization/workload_identity_providers/{workload_identity_provider_id}

获取当前认证组织中的 OIDC 提供商。

路径参数

  • workload_identity_provider_id: string

minLength: 1

返回值

  • WorkloadIdentityProvider object { id, attribute_transformations, audience, 9 more }

  • 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"

示例

## 从环境变量读取管理员密钥。核对要查询的资源 ID(身份提供商)
curl -X GET "https://api.openai.com/v1/organization/workload_identity_providers/wip_example" \
  -H "Authorization: Bearer $OPENAI_ADMIN_KEY"

响应示例

{
  "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
}
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号