Chelabase
ManagementBranches

Exempt a login role from a branch's guard

PUT
/v1/databases/{id}/branches/{branch_id}/guard-exemptions/{role}

Adds role, by name, to the branch's guard exemptions (idempotent). The role need not exist: a role dropped and made again in SQL keeps its exemption, a renamed one loses it. Reconciles the branch's guard.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Database id

Formatuuid
branch_id*string

Branch id

Formatuuid
role*string

The role's name

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/guard-exemptions/string"
{  "exemptions": [    "string"  ]}