Create Federation Rule
Requires an OAuth access token with the org:admin scope, from ant auth login --scope org:admin or a workload identity federation rule; Admin API keys are not accepted. See Manage WIF with the Admin API.
Create a federation rule owned by your organization.
The referenced issuer and the target service account must already exist in the same organization; invalid references are rejected with a 400 error. The workspace reference is validated. Membership is not checked at rule creation: token exchange resolves a single enabled workspace per call and is rejected unless the target service account is a member of that workspace (it is implicitly a member of the default workspace). Rules on well-known shared issuers (GitHub Actions, GitLab, Buildkite, Terraform Cloud, Google) must constrain tenant identity via an identity-bearing claim, a tenant-pinning subject prefix (such as repo:YOUR_ORG/...), or a CEL condition referencing one of those identity claims (e.g. claims.repository_owner). OAuth callers may only manage rules whose oauth_scope is workspace:developer or workspace:inference; other scopes require a Console session.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Request body
Example request
{
"target": {
"service_account_id": "svac_01SDCCSbTxrXDpWc1phhtcfK"
}
}Response
Successful Response
Example response
{
"created_at": "2024-10-30T23:58:27.427722Z",
"id": "fdrl_01SDCCSbTxrXDpWc1phhtcfK",
"name": "prod-deploy-pipeline",
"target": {
"service_account_id": "svac_01SDCCSbTxrXDpWc1phhtcfK"
},
"updated_at": "2024-10-30T23:58:27.427722Z"
}Changes
Changed in 1 of the 68 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○