v1

latestOpenAPI 3.0.2Apache 2.02026-07-136548173.9 KB
Admin

Create a new role mapping

Creates a new mapping between a user/principal and a role.

This operation can fail for the following reasons:

  • A server error occurred (HTTP error 500)
post/admin/roleMappings

Request body

principalIdstring required
role'READ_ONLY' | 'DEVELOPER' | 'ADMIN' required
principalNamestring

A friendly name for the principal.

Example request

{
  "principalId": "svc_account_84874587_123484",
  "principalName": "famartin-svc-account",
  "role": "READ_ONLY"
}

Response

Returned when the role mapping was successfully created.