Roles

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.

Deprecated

Get a list of roles.

get

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.

Authorizations
AuthorizationstringRequired

Bearer authentication

Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v1/authorization/roles
Deprecated

Get a role by id.

get

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.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
roleIdPathinteger · int32Required

The ID of the role

Example: 32
Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v1/authorization/roles/{roleIdPath}

Get a list of roles.

get

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.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 50
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
sortBystring · enumOptional

Sort results by a parameter.

Possible values:
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-access-rule-name","createdAt>=2023-01-01T00:00:00Z"]
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v2/authorization/roles

Create a role.

post

Creates a custom role with the specified permission sets.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
Responses
post
/api/v2/authorization/roles

Get a role by id.

get

Retrieves details for a specific role, including its name, description, scope, and associated permission sets.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
roleIdPathinteger · int32Required

The ID of the role

Example: 32
Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v2/authorization/roles/{roleIdPath}

Update a role by id.

put

Updates a custom role, including its name, description, or associated permission sets. NVIDIA Run:ai predefined roles cannot be updated.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
roleIdPathinteger · int32Required

The ID of the role

Example: 32
Body
Responses
chevron-right
200

Executed successfully.

application/json
put
/api/v2/authorization/roles/{roleIdPath}

Delete a role by id.

delete

Deletes a custom role. Use this endpoint to permanently remove roles that are no longer needed. NVIDIA Run:ai predefined roles cannot be deleted.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
roleIdPathinteger · int32Required

The ID of the role

Example: 32
Responses
delete
/api/v2/authorization/roles/{roleIdPath}

No content

Enable a role by id.

post

Enables a specific role. Disabled roles cannot be assigned to users and do not grant any permissions.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
roleIdPathinteger · int32Required

The ID of the role

Example: 32
Body
objectOptional
Responses
post
/api/v2/authorization/roles/{roleIdPath}/enable

No content

Disable a role by id.

post

Disables a specific role. Disabled roles cannot be assigned to users and do not grant any permissions.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
roleIdPathinteger · int32Required

The ID of the role

Example: 32
Body
objectOptional
Responses
post
/api/v2/authorization/roles/{roleIdPath}/disable

No content

Last updated