OpenAI 删除工作负载身份联邦规则
2026-11-18 13:49 更新
删除工作负载身份联邦规则
delete /organization/workload_identity_providers/{workload_identity_provider_id}/federation_rules/{workload_identity_federation_rule_id}
删除关联到项目服务账户的联邦规则。
路径参数
workload_identity_provider_id: string
minLength: 1
workload_identity_federation_rule_id: string
minLength: 1
返回值
FederationRuleDeleted object { id, deleted, object }
id: string
deleted: boolean
object: "organization.workload_identity_federation_rule.deleted" (default: "organization.workload_identity_federation_rule.deleted")
"organization.workload_identity_federation_rule.deleted"
示例
## 从环境变量读取管理员密钥。核对要删除的资源 ID(身份联邦规则)
curl "https://api.openai.com/v1/organization/workload_identity_providers/$WORKLOAD_IDENTITY_PROVIDER_ID/federation_rules/$WORKLOAD_IDENTITY_FEDERATION_RULE_ID" \
-X DELETE \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY"
200 — 通用响应示例
{
"id": "id",
"deleted": true,
"object": "organization.workload_identity_federation_rule.deleted"
}
示例
## 从环境变量读取管理员密钥。核对要删除的资源 ID(身份联邦规则)
curl -X DELETE "https://api.openai.com/v1/organization/workload_identity_providers/wip_example/federation_rules/wifr_example" \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY"
响应示例
{
"object": "organization.workload_identity_federation_rule.deleted",
"id": "wifr_example",
"deleted": true
}以上内容是否对您有帮助:

TRAE-AI编程


更多建议: