Create a role.
Creates a custom role with the specified permission sets.
Authentication
AuthorizationBearer
Bearer authentication
Request
The role to create.
name
The name of the role to create. Must be unique within the given scope.
description
A description of the role.
enabled
Specifies whether the role is active. Default: true
permissionSets
The permission sets assigned to this role. Each item includes the UUID and name of the permission set.
kubernetesPermissions
Defines the Kubernetes cluster permissions associated with this role.
Response
Created
name
The name of the role to create. Must be unique within the given scope.
description
A description of the role.
id
The ID of the role.
createdAt
The timestamp for when the role was created.
updatedAt
The timestamp for the last time the role was updated.
createdBy
Identifier of the user who created the role.
effectiveEnabled
Indicates whether the role is effectively enabled in the tenant. This reflects the role’s operational state after considering tenant-level configuration or restrictions. Default: true
permissions
enabled
Specifies whether the role is active. Default: true
permissionSets
The permission sets assigned to this role. Each item includes the UUID and name of the permission set.
kubernetesPermissions
Defines the Kubernetes cluster permissions associated with this role.
deprecated
Indicates whether the role is deprecated. When set to true, the role is considered deprecated and should not be used for new assignments.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error