Permissions
Permissions define the actions that users can perform on specific resources within the NVIDIA Run:ai platform. Each permission consists of a resource type and an allowed action. The Permission Sets API provides a catalog of all available permission sets in the NVIDIA Run:ai platform. Each permission set is a predefined collection of permissions that represent the permissions required for a role to perform specific operations. Permission sets serve as the building blocks for roles and are used in both NVIDIA Run:ai predefined roles and custom roles defined through the Roles API.
Retrieve a list of all available permission sets. Each permission set defines a collection of permissions grouped by resource type and associated actions (such as create, read, update, or delete).
Bearer authentication
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/authorization/permission-sets HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"permissionSets": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test",
"description": "text",
"permissions": [
{
"resourceType": "department",
"actions": [
"create"
]
}
]
}
]
}Returns information about a single permission set, including its name, description, and the list of permissions it contains.
Bearer authentication
Executed successfully.
The universally unique ID (UUID) of the permission set.
The name of the permission set.
testA description of the permission set.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/authorization/permission-sets/{permissionSetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "test",
"description": "text",
"permissions": [
{
"resourceType": "department",
"actions": [
"create"
]
}
]
}Retrieve a summary of user permissions.
Bearer authentication
Executed successfully.
Resource type enum for authorization.
Note: The 'apps' resource type is DEPRECATED. Please use 'service-account' instead for managing service accounts.
ProjectsUnauthorized
unexpected error
unexpected error
GET /api/v1/authorization/permissions HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"resourceType": "department",
"displayName": "Projects",
"groupId": "organization",
"actions": [
"create"
]
}
]Use to calculate user permitted scopes for an action on a resource.
Bearer authentication
Resource type enum for authorization.
Note: The 'apps' resource type is DEPRECATED. Please use 'service-account' instead for managing service accounts.
Executed successfully.
Unauthorized
unexpected error
unexpected error
POST /api/v1/authorization/permitted-scopes HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"resourceType": "department",
"action": "create"
}{
"create": {
"system": false,
"tenants": [
"1"
],
"clusters": [
"a418ed33-9399-48c0-a890-122cadd13bfd"
],
"departments": [
"7"
],
"projects": [
"text"
]
},
"read": {
"system": false,
"tenants": [
"1"
],
"clusters": [
"a418ed33-9399-48c0-a890-122cadd13bfd"
],
"departments": [
"7"
],
"projects": [
"text"
]
},
"update": {
"system": false,
"tenants": [
"1"
],
"clusters": [
"a418ed33-9399-48c0-a890-122cadd13bfd"
],
"departments": [
"7"
],
"projects": [
"text"
]
},
"delete": {
"system": false,
"tenants": [
"1"
],
"clusters": [
"a418ed33-9399-48c0-a890-122cadd13bfd"
],
"departments": [
"7"
],
"projects": [
"text"
]
}
}Last updated