The NVIDIA Run:ai Control-Plane API reference is a guide that provides an easy-to-use programming interface for adding various tasks to your application, including workload submission, resource management, and administrative operations.
NVIDIA Run:ai APIs are accessed using bearer tokens. To obtain a token, you need to create an Application through the NVIDIA Run:ai user interface.
To create an application, in your UI, go to Settings & Tools
, Application
and create a new Application.
After you have created a new application, you will need to assign it access rules. To assign access rules to the application, see Create access rules. Make sure you assign the correct rules to your application. Use the Roles to assign the correct access rules.
To get your access token, follow the instructions in Request a token.
Retrieve a list of tenants and their details.
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
[- {
- "id": 1,
- "name": "example",
- "displayName": "Example",
- "status": "Ready",
- "tenantId": 123,
- "createdAt": "2020-01-01T00:00:00Z",
- "updatedAt": "2020-01-02T00:00:00Z",
- "deletedAt": null
}
]
The tenant to create.
Created
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
{- "name": "name",
- "email": "first@run.ai",
- "password": "string",
- "contractType": "normal",
- "role": "System administrator",
- "metricStore": {
- "read": {
- "auth": {
- "basic": {
- "username": "string",
- "password": "string"
}
}, - "headers": {
- "X-Scope-OrgID": "id"
}
}, - "write": {
- "auth": {
- "basic": {
- "username": "string",
- "password": "string"
}
}, - "headers": {
- "X-Scope-OrgID": "id"
}
}
}
}
{- "tenant": {
- "id": 1,
- "name": "example",
- "displayName": "Example",
- "status": "Ready",
- "tenantId": 123,
- "eulaSigningUser": {
- "email": "user@tenant",
- "date": "2020-01-01T00:00:00Z",
- "ip": "192.168.10.210",
- "contract_type": "normal"
}, - "created_at": "2020-01-01T00:00:00Z",
- "updated_at": "2020-01-02T00:00:00Z",
- "deleted_at": null
}, - "additionalData": {
- "tenantDomain": "tenant.test.run.ai",
- "testUser": {
- "tenant-test@run.ai": "Abc!23"
}, - "customerUser": {
- "user@tenant": "Abc!23"
}
}
}
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "id": 1,
- "name": "example",
- "displayName": "Example",
- "status": "Ready",
- "tenantId": 123,
- "createdAt": "2020-01-01T00:00:00Z",
- "updatedAt": "2020-01-02T00:00:00Z",
- "deletedAt": null
}
tenant uid that was deleted.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "uid": "string"
}
Retrieve the details of an application by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "name": "app123",
- "createdBy": "test@run.ai",
- "createdAt": "2020-01-01T00:00:00Z",
- "updatedAt": "2020-01-01T00:00:00Z",
- "enabled": true,
- "tenantId": 1234567890,
- "lastLogin": "2020-01-01T00:00:00Z",
- "id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
- "clientId": "app123"
}
Use to update the details of an application by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "enabled": true
}
{- "code": 400,
- "message": "Required parameter is missing"
}
Use to delete an application by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Use to regenerate the application secret by id.
Regenerated successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "secret": "189ej2ijd92fj092k049fk0"
}
Use tokens to facilitate authentication to the NVIDIA Run:ai API. The API server must be configured to use the NVIDIA Run:ai identity service to validate authentication tokens.
Create tokens using the grant_type
parameter.
Executed successfully.
Bad request.
unexpected error
unexpected error
Obtain the clientID and the clientSecret using applications or user applications endpoints
{- "grantType": "client_credentials",
- "clientID": "clientID",
- "clientSecret": "clientSecret"
}
{- "accessToken": "string",
- "idToken": "string",
- "refreshToken": "string",
- "externalToken": "string"
}
Retrieve a list of platform users.
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
[- {
- "id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
- "username": "test@run.ai",
- "createdBy": "devops@run.ai",
- "createdAt": "2020-01-01T00:00:00Z",
- "updatedAt": "2022-01-01T00:00:00Z",
- "lastLogin": "2023-02-01T00:00:00Z",
- "isLocal": true,
- "groups": [
- "groupA",
- "groupB"
]
}
]
Use to create a local platform user.
Created successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
unexpected error
{- "email": "test@run.ai",
- "resetPassword": false
}
{- "id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
- "username": "test@run.ai",
- "tempPassword": "asdasidjn9d"
}
count users
ok
Bad request.
Unauthorized
Forbidden
unexpected error
{- "count": 1
}
Use to force a user to logout.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Use to to reset a user's password.
Regenerated successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "tempPassword": "asdasidjn9d"
}
Retrieve a user's details by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
- "username": "test@run.ai",
- "createdBy": "devops@run.ai",
- "createdAt": "2020-01-01T00:00:00Z",
- "updatedAt": "2022-01-01T00:00:00Z",
- "lastLogin": "2023-02-01T00:00:00Z",
- "isLocal": true,
- "groups": [
- "groupA",
- "groupB"
]
}
Use to delete a user by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Password changed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "currentPassword": "Abcd!234",
- "newPassword": "Zxcv!567"
}
{- "tempPassword": "Abcd!234"
}
Retrieve a list of the users applications.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
[- {
- "name": "my-user-app",
- "id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
- "clientId": "3434c-12323ab-4ce2ea6",
- "createdAt": "2019-01-01T00:00:00Z",
- "lastLogin": "2020-01-01T00:00:00Z"
}
]
Used to create a user application.
Application object to create
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
unexpected error
{- "name": "app-name"
}
{- "id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
- "clientId": "5e7b3b7b4b7b4b7b",
- "name": "app123",
- "secret": "this-is-the-app-secret",
- "createdAt": "2020-01-01T00:00:00Z"
}
Retrieve the details of a user's application by app id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "name": "my-user-app",
- "id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
- "clientId": "3434c-12323ab-4ce2ea6",
- "createdAt": "2019-01-01T00:00:00Z",
- "lastLogin": "2020-01-01T00:00:00Z"
}
Use to user a user application by id.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Use to regenerate the user application secret by id.
Regenerated successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "secret": "this-is-my-secret"
}
Retrieve a list of all users applications.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
[- {
- "name": "my-user-app",
- "id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
- "clientId": "1434c-123233ab-4ce2ea6-b44fc-db344d",
- "createdBy": "test@run.ai",
- "createdAt": "2020-01-01T00:00:00Z",
- "lastLogin": "2020-01-01T00:00:00Z"
}
]
Use to delete a user application by id for adminstrations.
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 400,
- "message": "Required parameter is missing"
}
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
[- {
- "alias": "saml",
- "type": "saml",
- "samlData": {
- "signingCertificate": "signingCertificateExample",
- "entityId": "example.run.ai/runai",
- "serviceProviderMetadataUrl": "https://example.runai.com/auth/realms/runai/broker/saml/endpoint/descriptor"
}, - "mappers": {
- "gid": "GID",
- "groups": "GROUPS",
- "supplementaryGroups": "SUPPLEMENTARYGROUPS",
- "uid": "UID",
- "email": "email"
}
}
]
Idp configuration
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource already exists
unexpected error
unexpected error
{- "type": "saml",
- "mappers": {
- "gid": "GID",
- "groups": "GROUPS",
- "supplementaryGroups": "SUPPLEMENTARYGROUPS",
- "uid": "UID",
- "email": "email"
}
}
{- "alias": "oidc"
}
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "alias": "saml",
- "type": "saml",
- "samlData": {
- "signingCertificate": "signingCertificateExample",
- "entityId": "example.run.ai/runai",
- "serviceProviderMetadataUrl": "https://example.runai.com/auth/realms/runai/broker/saml/endpoint/descriptor"
}, - "mappers": {
- "gid": "GID",
- "groups": "GROUPS",
- "supplementaryGroups": "SUPPLEMENTARYGROUPS",
- "uid": "UID",
- "email": "email"
}
}
Idp successfully deleted
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Updated idp object
Idp successfully updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "type": "saml",
- "mappers": {
- "gid": "GID",
- "groups": "GROUPS",
- "supplementaryGroups": "SUPPLEMENTARYGROUPS",
- "uid": "UID",
- "email": "email"
}
}
{- "code": 400,
- "message": "Required parameter is missing"
}
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "gid": "string",
- "uid": "string",
- "groups": "string",
- "supplementaryGroups": "string",
- "email": "string"
}
Map of our mappers and their source in the external idp
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "gid": "string",
- "uid": "string",
- "groups": "string",
- "supplementaryGroups": "string",
- "email": "string"
}
{- "code": 400,
- "message": "Required parameter is missing"
}
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "autoRedirectSSO": {
- "enabled": false,
- "idpAlias": "oidc"
}, - "browserSessionTimeout": {
- "idleTimeout": 60
},
}
Setting successfully updated
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "enabled": false,
- "idpAlias": "oidc"
}
{- "code": 400,
- "message": "Required parameter is missing"
}
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "enabled": false,
- "idpAlias": "oidc"
}
The audit log provides audit trail information for user activity, changes to business objects and other important information. For more information, see Audit log.
Get audit logs based on query params filter
Executed successfully
Unauthorized
Forbidden
unexpected error
unexpected error
{- "total": 2000,
- "next": 100,
- "audit_logs": [
- {
- "id": "0000-000000-00000-00000",
- "timestamp": "2022-01-01T03:49:52.531Z",
- "tenant_id": 12345,
- "subject": "researcher@run.ai",
- "subject_type": "User",
- "source_ip": "192.168.0.1",
- "action": "create",
- "http_method": "GET",
- "entity_type": "project",
- "entity_name": "project-1",
- "entity_id": "1234",
- "result": "Succeeded",
- "http_status_code": 200,
- "cluster_name": "my favorite cluster",
- "cluster_id": "d3d1bfdf-67c4-41fa-b065-858242731616",
- "request_id": "bb0c4742-e52f-4d5e-bfee-2c4ff57c339c",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}
Download audit logs as a file, based on query params filter
File downloaded
Unauthorized
Forbidden
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}