The Roles API allows administrators to define and manage roles within the NVIDIA Run:ai platform. A role represents a collection of permission sets that determine what actions can be performed across NVIDIA Run:ai resources. NVIDIA Run:ai provides a list of predefined roles that cover common operational needs, such as managing workloads, projects, or data and storage. Administrators can also use this API to create custom roles by combining specific permission sets to match their organization’s access model.
Use to retrieve a list of roles. This endpoint is deprecated and will be removed in a future release. Use GET /api/v2/authorization/roles instead.
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
[- {
- "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "custom": true,
- "effectiveEnabled": true,
- "permissions": [
- {
- "resourceType": "department",
- "displayName": "Projects",
- "groupId": "organization",
- "actions": [
- "create"
]
}
], - "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "kubernetesPermissions": {
- "predefinedRole": "12"
}
}
]Retrieve the details of a role by id. This endpoint is deprecated and will be removed in a future release. Use GET /api/v2/authorization/roles/{roleIdPath} instead.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "custom": true,
- "effectiveEnabled": true,
- "permissions": [
- {
- "resourceType": "department",
- "displayName": "Projects",
- "groupId": "organization",
- "actions": [
- "create"
]
}
], - "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "kubernetesPermissions": {
- "predefinedRole": "12"
}
}Creates a custom role with the specified permission sets.
The role to create.
Created
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "permissionSets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "test"
}
], - "kubernetesPermissions": {
- "predefinedRole": "12"
}
}{- "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "permissionSets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "test"
}
], - "kubernetesPermissions": {
- "predefinedRole": "12"
}, - "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "effectiveEnabled": true,
- "deprecated": true,
- "permissions": [
- {
- "resourceType": "department",
- "actions": [
- "create"
]
}
]
}Retrieves a list of all available roles, including both NVIDIA Run:ai predefined roles and custom roles. Use this endpoint to review role configurations, permission sets and permissions.
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "roles": [
- {
- "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "permissionSets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "test"
}
], - "kubernetesPermissions": {
- "predefinedRole": "12"
}, - "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "effectiveEnabled": true,
- "deprecated": true,
- "permissions": [
- {
- "resourceType": "department",
- "actions": [
- "create"
]
}
]
}
], - "next": 1
}Retrieves details for a specific role, including its name, description, scope, and associated permission sets.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "permissionSets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "test"
}
], - "kubernetesPermissions": {
- "predefinedRole": "12"
}, - "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "effectiveEnabled": true,
- "deprecated": true,
- "permissions": [
- {
- "resourceType": "department",
- "actions": [
- "create"
]
}
]
}Deletes a custom role. Use this endpoint to permanently remove roles that are no longer needed. NVIDIA Run:ai predefined roles cannot be deleted.
No Content.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}Updates a custom role, including its name, description, or associated permission sets. NVIDIA Run:ai predefined roles cannot be updated.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "permissionSets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "test"
}
], - "kubernetesPermissions": {
- "predefinedRole": "12"
}
}{- "name": "admin",
- "description": "can manage all resources",
- "enabled": true,
- "permissionSets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "test"
}
], - "kubernetesPermissions": {
- "predefinedRole": "12"
}, - "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdBy": "user@run.ai",
- "effectiveEnabled": true,
- "deprecated": true,
- "permissions": [
- {
- "resourceType": "department",
- "actions": [
- "create"
]
}
]
}Enables a specific role. Disabled roles cannot be assigned to users and do not grant any permissions.
No Content.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{ }{- "code": 400,
- "message": "Required parameter is missing"
}Disables a specific role. Disabled roles cannot be assigned to users and do not grant any permissions.
No Content.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{ }{- "code": 400,
- "message": "Required parameter is missing"
}