Authorize user-id to role mappings for JIT access
post
/v1/projects/{ref}/database/jitAuthorizes the request to assume a role in the project database
OAuth scopes
- database:read
The fine-grained token must include the following permissions to access this endpoint:
- database_jit_read
Path parameters
- refRequiredstring
Project ref
Body
- roleRequiredstring
- rhostRequiredany of the following options
Response codes
- 200
- 401
- 403
- 429
- 500
Response (200)
1{2 "user_id": "00000000-0000-0000-0000-000000000000",3 "act": "lorem",4 "user_role": {5 "role": "lorem",6 "expires_at": 42,7 "allowed_networks": {8 "allowed_cidrs": [9 {10 "cidr": "144.144.144.144/14"11 }12 ],13 "allowed_cidrs_v6": [14 {15 "cidr": "::/104"16 }17 ]18 },19 "branches_only": true20 }21}