UpdateProjectGatewayProject
PATCH/admin/v1/project-gateways/:id/projects/:project_id
Update a project's membership of a project gateway. The one mutable field is accepted_credentials, which says whether an Agent Router API key, a verified IdP token, or either one authenticates a caller of this project on this gateway (ADR 050, fraser#9834). A new attachment starts at ACCEPTED_CREDENTIALS_API_KEY, which is what every project did before the field existed.
TOKEN and BOTH declare that the project accepts a credential verified at this gateway, so both are refused with FAILED_PRECONDITION while the project holds no enabled jwt gateway auth policy for this gateway, and disabling or deleting the project's last such policy is refused while the membership declares either one. Both are Enterprise-only, refused with FAILED_PRECONDITION on SaaS the way a jwt gateway auth policy is.
TOKEN is refused with FAILED_PRECONDITION until the data plane enforces it (fraser#5329). Until then a token-only declaration would leave API keys working on a project whose operator believes they are switched off.
Returns NOT_FOUND when the project is not attached to this gateway.
Request
Responses
- 200
Success