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
Path parameters
- refRequiredstring
Project ref
Body
- roleRequiredstring
- rhostRequiredstring
Response codes
- 200
- 401
- 403
- 429
- 500
Response (200)
1{2 "user_id": "fbdf5a53-161e-4460-98ad-0e39408d8689",3 "user_role": {4 "role": "lorem",5 "expires_at": 42,6 "allowed_networks": {7 "allowed_cidrs": [8 {9 "cidr": "lorem"10 }11 ],12 "allowed_cidrs_v6": [13 {14 "cidr": "lorem"15 }16 ]17 },18 "branches_only": true19 }20}