YugabyteDB RBAC management API

The RBAC management API from YugabyteDB — 5 operation(s) for rbac management.

Documentation

Specifications

Other Resources

🔗
CLI
https://github.com/yugabyte/ybm-cli
🔗
Integrations
https://github.com/yugabyte/terraform-provider-ybm
🔗
TermsOfService
https://www.yugabyte.com/yugabytedb-managed-service-terms/
🔗
SDKs
https://github.com/yugabyte/platform-go-client
🔗
Integrations
https://github.com/yugabyte/terraform-provider-yba
🔗
Integrations
https://github.com/yugabyte/yugabyte-k8s-operator
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-ybuniverse.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-backup.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-backup-schedule.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-restore-job.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-storage-config.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-dr-config.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-pitr-config.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-release.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-support-bundle.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-ybcertificate.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-ybprovider.yaml
🔗
KubernetesCRD
https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/crd/yugabytedb-ybplatform.yaml

OpenAPI Specification

yugabytedb-rbac-management-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: YugabyteDB Aeon REST Access Keys RBAC management API
  description: The YugabyteDB Aeon REST API provides programmatic access to YugabyteDB's fully managed cloud database service. Developers and operators can use it to deploy and manage database clusters, configure read replicas, schedule and execute on-demand backups and restores, manage IP allow lists, and set up monitoring and alerts. Authentication is performed using API keys passed as bearer tokens in the Authorization header. All paths are scoped to an account and project, which can be obtained from the YugabyteDB Aeon UI profile page.
  version: v1
  contact:
    name: Yugabyte Support
    url: https://support.yugabyte.com
  termsOfService: https://www.yugabyte.com/yugabytedb-managed-service-terms/
  x-generated-from: documentation
  x-source-url: https://api-docs.yugabyte.com/docs/managed-apis/
  x-last-validated: '2026-05-03'
servers:
- url: https://cloud.yugabyte.com/api/public/v1
  description: YugabyteDB Aeon Production Server
security:
- bearerAuth: []
tags:
- name: RBAC management
paths:
  /api/v1/customers/{cUUID}/rbac/permissions:
    get:
      description: 'WARNING: This is a preview API that could change.'
      operationId: listPermissions
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - description: Optional resource type to filter permission list
        in: query
        name: resourceType
        schema:
          default: 'null'
          type: string
        example: 'null'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PermissionInfo'
                type: array
              examples:
                ListPermissions200Example:
                  summary: Default listPermissions 200 response
                  x-microcks-default: true
                  value:
                  - permissionValidOnResource: true
                    prerequisitePermissions:
                    - action: CREATE
                      resourceType: UNIVERSE
                    - action: CREATE
                      resourceType: UNIVERSE
                    name: name
                    action: CREATE
                    description: description
                    resourceType: UNIVERSE
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere List All the Permissions Available
      tags:
      - RBAC management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/v1/customers/{cUUID}/rbac/role:
    get:
      description: 'WARNING: This is a preview API that could change.'
      operationId: listRoles
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - description: Optional role type to filter roles list
        in: query
        name: roleType
        schema:
          default: 'null'
          type: string
        example: 'null'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Role'
                type: array
              examples:
                ListRoles200Example:
                  summary: Default listRoles 200 response
                  x-microcks-default: true
                  value:
                  - customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    permissionDetails:
                      permissionList:
                      - action: CREATE
                        resourceType: UNIVERSE
                      - action: CREATE
                        resourceType: UNIVERSE
                    name: name
                    description: description
                    updatedOn: 2022-12-12 13:07:18+00:00
                    roleType: System
                    createdOn: 2022-12-12 13:07:18+00:00
                    roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere List All the Roles Available
      tags:
      - RBAC management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      description: 'WARNING: This is a preview API that could change.'
      operationId: createRole
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: query
        name: request
        schema: {}
        example: example-request
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleFormData'
            examples:
              CreateRoleRequestExample:
                summary: Default createRole request
                x-microcks-default: true
                value:
                  name: name
                  description: description
                  permissionList:
                  - action: CREATE
                    resourceType: UNIVERSE
                  - action: CREATE
                    resourceType: UNIVERSE
        description: create role form data
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
              examples:
                CreateRole200Example:
                  summary: Default createRole 200 response
                  x-microcks-default: true
                  value:
                    customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    permissionDetails:
                      permissionList:
                      - action: CREATE
                        resourceType: UNIVERSE
                      - action: CREATE
                        resourceType: UNIVERSE
                    name: name
                    description: description
                    updatedOn: 2022-12-12 13:07:18+00:00
                    roleType: System
                    createdOn: 2022-12-12 13:07:18+00:00
                    roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere Create a Custom Role
      tags:
      - RBAC management
      x-codegen-request-body-name: RoleFormData
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/v1/customers/{cUUID}/rbac/role/{rUUID}:
    delete:
      description: 'WARNING: This is a preview API that could change.'
      operationId: deleteRole
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: path
        name: rUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: query
        name: request
        schema: {}
        example: example-request
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/YBPSuccess'
              examples:
                DeleteRole200Example:
                  summary: Default deleteRole 200 response
                  x-microcks-default: true
                  value:
                    success: true
                    message: message
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere Delete a Custom Role
      tags:
      - RBAC management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    get:
      description: 'WARNING: This is a preview API that could change.'
      operationId: getRole
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: path
        name: rUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
              examples:
                GetRole200Example:
                  summary: Default getRole 200 response
                  x-microcks-default: true
                  value:
                    customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    permissionDetails:
                      permissionList:
                      - action: CREATE
                        resourceType: UNIVERSE
                      - action: CREATE
                        resourceType: UNIVERSE
                    name: name
                    description: description
                    updatedOn: 2022-12-12 13:07:18+00:00
                    roleType: System
                    createdOn: 2022-12-12 13:07:18+00:00
                    roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere Get a Role's Information
      tags:
      - RBAC management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      description: 'WARNING: This is a preview API that could change.'
      operationId: editRole
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: path
        name: rUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: query
        name: request
        schema: {}
        example: example-request
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleFormData'
            examples:
              EditRoleRequestExample:
                summary: Default editRole request
                x-microcks-default: true
                value:
                  name: name
                  description: description
                  permissionList:
                  - action: CREATE
                    resourceType: UNIVERSE
                  - action: CREATE
                    resourceType: UNIVERSE
        description: edit role form data
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
              examples:
                EditRole200Example:
                  summary: Default editRole 200 response
                  x-microcks-default: true
                  value:
                    customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    permissionDetails:
                      permissionList:
                      - action: CREATE
                        resourceType: UNIVERSE
                      - action: CREATE
                        resourceType: UNIVERSE
                    name: name
                    description: description
                    updatedOn: 2022-12-12 13:07:18+00:00
                    roleType: System
                    createdOn: 2022-12-12 13:07:18+00:00
                    roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere Edit a Custom Role
      tags:
      - RBAC management
      x-codegen-request-body-name: RoleFormData
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/v1/customers/{cUUID}/rbac/role_binding:
    get:
      description: 'WARNING: This is a preview API that could change.'
      operationId: getRoleBindings
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - description: Optional user UUID to filter role binding map
        in: query
        name: userUUID
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties:
                  $ref: '#/components/schemas/RoleBinding'
                type: object
              examples:
                GetRoleBindings200Example:
                  summary: Default getRoleBindings 200 response
                  x-microcks-default: true
                  value: {}
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere Get All the Role Bindings Available
      tags:
      - RBAC management
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /api/v1/customers/{cUUID}/rbac/role_binding/{userUUID}:
    post:
      description: 'WARNING: This is a preview API that could change.'
      operationId: setRoleBinding
      parameters:
      - in: path
        name: cUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: path
        name: userUUID
        required: true
        schema:
          format: uuid
          type: string
        example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      - in: query
        name: request
        schema: {}
        example: example-request
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleBindingFormData'
            examples:
              SetRoleBindingRequestExample:
                summary: Default setRoleBinding request
                x-microcks-default: true
                value:
                  roleResourceDefinitions:
                  - resourceGroup:
                      resourceDefinitionSet:
                      - allowAll: true
                        resourceUUIDSet:
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        resourceType: UNIVERSE
                      - allowAll: true
                        resourceUUIDSet:
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        resourceType: UNIVERSE
                    roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                  - resourceGroup:
                      resourceDefinitionSet:
                      - allowAll: true
                        resourceUUIDSet:
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        resourceType: UNIVERSE
                      - allowAll: true
                        resourceUUIDSet:
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        resourceType: UNIVERSE
                    roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        description: set role bindings form data
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/RoleBinding'
                type: array
              examples:
                SetRoleBinding200Example:
                  summary: Default setRoleBinding 200 response
                  x-microcks-default: true
                  value:
                  - principal:
                      groupUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      userUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      type: USER
                      uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    resourceGroup:
                      resourceDefinitionSet:
                      - allowAll: true
                        resourceUUIDSet:
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        resourceType: UNIVERSE
                      - allowAll: true
                        resourceUUIDSet:
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                        resourceType: UNIVERSE
                    role:
                      customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      permissionDetails:
                        permissionList:
                        - action: CREATE
                          resourceType: UNIVERSE
                        - action: CREATE
                          resourceType: UNIVERSE
                      name: name
                      description: description
                      updatedOn: 2022-12-12 13:07:18+00:00
                      roleType: System
                      createdOn: 2022-12-12 13:07:18+00:00
                      roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    createTime: 2022-12-12 13:07:18+00:00
                    updateTime: 2022-12-12 13:07:18+00:00
                    groupInfo:
                      groupUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      identifier: identifier
                      customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      creationDate: 2022-12-12 13:07:18+00:00
                      type: LDAP
                      roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                    type: System
                    user:
                      ldapSpecifiedRole: true
                      customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      role: Admin
                      authTokenIssueDate: 2021-06-17 15:00:05+00:00
                      timezone: timezone
                      oidcJwtAuthToken: oidcJwtAuthToken
                      groupMemberships:
                      - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      userType: local
                      creationDate: 2022-12-12 13:07:18+00:00
                      uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                      email: username1@example.com
                      primary: true
                    uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          description: successful operation
      security:
      - apiKeyAuth: []
      summary: YugabyteDB Anywhere Set the Role Bindings of a User
      tags:
      - RBAC management
      x-codegen-request-body-name: RoleBindingFormData
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    Permission:
      example:
        action: CREATE
        resourceType: UNIVERSE
      properties:
        action:
          enum:
          - CREATE
          - READ
          - UPDATE
          - DELETE
          - PAUSE_RESUME
          - BACKUP_RESTORE
          - UPDATE_ROLE_BINDINGS
          - UPDATE_PROFILE
          - SUPER_ADMIN_ACTIONS
          - XCLUSTER
          - DEBUG
          - TROUBLESHOOT
          type: string
          example: CREATE
        resourceType:
          enum:
          - UNIVERSE
          - ROLE
          - USER
          - OTHER
          type: string
          example: UNIVERSE
      type: object
    GroupMappingInfo:
      example:
        groupUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        identifier: identifier
        customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        creationDate: 2022-12-12 13:07:18+00:00
        type: LDAP
        roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      properties:
        creationDate:
          description: Group mapping creation time
          example: 2022-12-12 13:07:18+00:00
          format: date-time
          type: string
        customerUUID:
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        groupUUID:
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        identifier:
          type: string
          example: example-identifier
        roleUUID:
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        type:
          enum:
          - LDAP
          - OIDC
          type: string
          example: LDAP
      required:
      - customerUUID
      - groupUUID
      - identifier
      - roleUUID
      - type
      type: object
    Principal:
      example:
        groupUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        userUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        type: USER
        uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      properties:
        groupUUID:
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        type:
          enum:
          - USER
          - LDAP_GROUP
          - OIDC_GROUP
          type: string
          example: USER
        userUUID:
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        uuid:
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      required:
      - groupUUID
      - type
      - userUUID
      - uuid
      type: object
    Role:
      example:
        customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        permissionDetails:
          permissionList:
          - action: CREATE
            resourceType: UNIVERSE
          - action: CREATE
            resourceType: UNIVERSE
        name: name
        description: description
        updatedOn: 2022-12-12 13:07:18+00:00
        roleType: System
        createdOn: 2022-12-12 13:07:18+00:00
        roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      properties:
        createdOn:
          description: Role create time
          example: 2022-12-12 13:07:18+00:00
          format: date-time
          type: string
        customerUUID:
          description: Customer UUID
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        description:
          description: Role description
          type: string
          example: Example description
        name:
          description: Role name
          type: string
          example: example-name
        permissionDetails:
          $ref: '#/components/schemas/PermissionDetails'
        roleType:
          description: Type of the role
          enum:
          - System
          - Custom
          type: string
          example: System
        roleUUID:
          description: Role UUID
          format: uuid
          readOnly: true
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        updatedOn:
          description: Role last updated time
          example: 2022-12-12 13:07:18+00:00
          format: date-time
          type: string
      type: object
    PermissionDetails:
      example:
        permissionList:
        - action: CREATE
          resourceType: UNIVERSE
        - action: CREATE
          resourceType: UNIVERSE
      properties:
        permissionList:
          description: Set of permissions
          items:
            $ref: '#/components/schemas/Permission'
          type: array
          uniqueItems: true
          example:
          - action: CREATE
            resourceType: UNIVERSE
      type: object
    PermissionInfo:
      example:
        permissionValidOnResource: true
        prerequisitePermissions:
        - action: CREATE
          resourceType: UNIVERSE
        - action: CREATE
          resourceType: UNIVERSE
        name: name
        action: CREATE
        description: description
        resourceType: UNIVERSE
      properties:
        action:
          enum:
          - CREATE
          - READ
          - UPDATE
          - DELETE
          - PAUSE_RESUME
          - BACKUP_RESTORE
          - UPDATE_ROLE_BINDINGS
          - UPDATE_PROFILE
          - SUPER_ADMIN_ACTIONS
          - XCLUSTER
          - DEBUG
          - TROUBLESHOOT
          type: string
          example: CREATE
        description:
          type: string
          example: Example description
        name:
          type: string
          example: example-name
        permissionValidOnResource:
          type: boolean
          example: true
        prerequisitePermissions:
          items:
            $ref: '#/components/schemas/Permission'
          type: array
          uniqueItems: true
          example:
          - action: CREATE
            resourceType: UNIVERSE
        resourceType:
          enum:
          - UNIVERSE
          - ROLE
          - USER
          - OTHER
          type: string
          example: UNIVERSE
      type: object
    RoleBindingFormData:
      description: Role Binding form metadata
      example:
        roleResourceDefinitions:
        - resourceGroup:
            resourceDefinitionSet:
            - allowAll: true
              resourceUUIDSet:
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              resourceType: UNIVERSE
            - allowAll: true
              resourceUUIDSet:
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              resourceType: UNIVERSE
          roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        - resourceGroup:
            resourceDefinitionSet:
            - allowAll: true
              resourceUUIDSet:
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              resourceType: UNIVERSE
            - allowAll: true
              resourceUUIDSet:
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
              resourceType: UNIVERSE
          roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      properties:
        roleResourceDefinitions:
          description: List of roles and resource groups defined.
          items:
            $ref: '#/components/schemas/RoleResourceDefinition'
          type: array
          example:
          - resourceGroup:
              resourceDefinitionSet:
              - allowAll: true
                resourceUUIDSet:
                - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                resourceType: UNIVERSE
              - allowAll: true
                resourceUUIDSet:
                - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
                resourceType: UNIVERSE
            roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      required:
      - roleResourceDefinitions
      type: object
    RoleFormData:
      description: Role form metadata
      example:
        name: name
        description: description
        permissionList:
        - action: CREATE
          resourceType: UNIVERSE
        - action: CREATE
          resourceType: UNIVERSE
      properties:
        description:
          description: Description of the role to be created
          type: string
          example: Example description
        name:
          description: Name of the role to be created
          type: string
          example: example-name
        permissionList:
          description: List of permissions given to the role
          items:
            $ref: '#/components/schemas/Permission'
          type: array
          uniqueItems: true
          example:
          - action: CREATE
            resourceType: UNIVERSE
      required:
      - description
      - name
      - permissionList
      type: object
    YBPSuccess:
      example:
        success: true
        message: message
      properties:
        message:
          description: API response message.
          readOnly: true
          type: string
          example: Example message
        success:
          description: API operation status. A value of true indicates the operation was successful.
          readOnly: true
          type: boolean
          example: true
      type: object
    ResourceGroup:
      example:
        resourceDefinitionSet:
        - allowAll: true
          resourceUUIDSet:
          - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          resourceType: UNIVERSE
        - allowAll: true
          resourceUUIDSet:
          - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          resourceType: UNIVERSE
      properties:
        resourceDefinitionSet:
          items:
            $ref: '#/components/schemas/ResourceDefinition'
          type: array
          uniqueItems: true
          example:
          - allowAll: true
            resourceUUIDSet:
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            resourceType: UNIVERSE
      required:
      - resourceDefinitionSet
      type: object
    RoleResourceDefinition:
      description: Defines the association of Role to Resource Groups.
      example:
        resourceGroup:
          resourceDefinitionSet:
          - allowAll: true
            resourceUUIDSet:
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            resourceType: UNIVERSE
          - allowAll: true
            resourceUUIDSet:
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            resourceType: UNIVERSE
        roleUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      properties:
        resourceGroup:
          $ref: '#/components/schemas/ResourceGroup'
        roleUUID:
          description: UUID of the role to attach resource group to.
          format: uuid
          type: string
          example: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      required:
      - roleUUID
      type: object
    ResourceDefinition:
      example:
        allowAll: true
        resourceUUIDSet:
        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        resourceType: UNIVERSE
      properties:
        allowAll:
          description: Select all resources (including future resources)
          type: boolean
          example: true
        resourceType:
          description: Resource Type
          enum:
          - UNIVERSE
          - ROLE
          - USER
          - OTHER
          type: string
          example: UNIVERSE
        resourceUUIDSet:
          description: Set of resource uuids
          items:
            format: uuid
            type: string
          type: array
          uniqueItems: true
          example:
          - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
      type: object
    RoleBinding:
      example:
        principal:
          groupUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          userUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          type: USER
          uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
        resourceGroup:
          resourceDefinitionSet:
          - allowAll: true
            resourceUUIDSet:
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            resourceType: UNIVERSE
          - allowAll: true
            resourceUUIDSet:
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            - 046b6c7f-0b8a-43b9-b35d-6489e6daee91
            resourceType: UNIVERSE
        role:
          customerUUID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
          permissionDetails:
            permissionList:
            - action: CREATE
              resourceType: UNIVERSE
            - action: CREATE
              resourceType: UNIVERSE
          name: name
          description: description
          upd

# --- truncated at 32 KB (52 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/yugabytedb/refs/heads/main/openapi/yugabytedb-rbac-management-api-openapi.yml