Workload properties define the behavioral and scheduling characteristics of a workload submitted to the NVIDIA Run:ai platform. These properties such as type, category, and priority determine how workloads are classified, monitored, and scheduled.
Retrieves a list of workload categories. These categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.
List of categories retrieved successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
{- "categories": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string"
}
]
}
Retrieves a specific workload category by its ID. Workload categories are used to classify and monitor different types of workloads within the NVIDIA Run:ai platform.
Category retrieved successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string"
}
Retrieves a list of workload types with their configurations - their corresponding workload categories and priorities.
List of types retrieved successfully
Bad request.
Unauthorized
Forbidden
unexpected error
{- "types": [
- {
- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "priorityId": "a57eab25-838b-40cc-a576-57e4056f1d6c",
- "name": "Deployment",
- "group": "apps",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "categoryName": "Build",
- "priorityName": "medium",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "resourceInterfaces": [
- {
- "version": "v1",
- "resourceInterface": {
- "spec": {
- "structureDefinition": {
- "rootComponent": {
- "kind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
}
}
}
}
}
], - "clusterStatuses": [
- {
- "phase": "Ready",
- "conditions": [
- {
- "type": "Ready",
- "status": "False",
- "message": "Resource validation failed: ...",
- "reason": "ErrorConfig",
- "lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
], - "version": "v1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Create a new workload type in the system by providing its identification details and configuration, making it available for use and management within the platform.
Workload type to create.
Created
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
{- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "priorityId": "a57eab25-838b-40cc-a576-57e4056f1d6c",
- "name": "Deployment",
- "group": "apps",
- "resourceInterfaces": [
- {
- "spec": {
- "structureDefinition": {
- "rootComponent": {
- "kind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
}
}
}
}
]
}
{- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "priorityId": "a57eab25-838b-40cc-a576-57e4056f1d6c",
- "name": "Deployment",
- "group": "apps",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "categoryName": "Build",
- "priorityName": "medium",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "resourceInterfaces": [
- {
- "version": "v1",
- "resourceInterface": {
- "spec": {
- "structureDefinition": {
- "rootComponent": {
- "kind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
}
}
}
}
}
], - "clusterStatuses": [
- {
- "phase": "Ready",
- "conditions": [
- {
- "type": "Ready",
- "status": "False",
- "message": "Resource validation failed: ...",
- "reason": "ErrorConfig",
- "lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
], - "version": "v1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Retrieves a specific workload type by its ID.
Type retrieved successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "priorityId": "a57eab25-838b-40cc-a576-57e4056f1d6c",
- "name": "Deployment",
- "group": "apps",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "categoryName": "Build",
- "priorityName": "medium",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "resourceInterfaces": [
- {
- "version": "v1",
- "resourceInterface": {
- "spec": {
- "structureDefinition": {
- "rootComponent": {
- "kind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
}
}
}
}
}
], - "clusterStatuses": [
- {
- "phase": "Ready",
- "conditions": [
- {
- "type": "Ready",
- "status": "False",
- "message": "Resource validation failed: ...",
- "reason": "ErrorConfig",
- "lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
], - "version": "v1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Update the default category or priority assigned to a workload type.
Workload type to update.
Updated successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "priorityId": "a57eab25-838b-40cc-a576-57e4056f1d6c",
- "resourceInterfaces": [
- {
- "spec": {
- "structureDefinition": {
- "rootComponent": {
- "kind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
}
}
}
}
]
}
{- "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",
- "priorityId": "a57eab25-838b-40cc-a576-57e4056f1d6c",
- "name": "Deployment",
- "group": "apps",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "categoryName": "Build",
- "priorityName": "medium",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "resourceInterfaces": [
- {
- "version": "v1",
- "resourceInterface": {
- "spec": {
- "structureDefinition": {
- "rootComponent": {
- "kind": {
- "group": "apps",
- "version": "v1",
- "kind": "Deployment"
}
}
}
}
}
}
], - "clusterStatuses": [
- {
- "phase": "Ready",
- "conditions": [
- {
- "type": "Ready",
- "status": "False",
- "message": "Resource validation failed: ...",
- "reason": "ErrorConfig",
- "lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
], - "version": "v1",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
Deletes a specific workload type by its ID.
No Content.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Retrieve the list of all workload priorities available in the system
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "priorities": [
- {
- "aggregatedPhase": "Ready",
- "status": [
- {
- "clusterId": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "phase": "Ready"
}
], - "scopeType": "tenant",
- "scopeId": "1",
- "id": "d73a738f-fab3-430a-8fa3-5241493d7128",
- "source": "Run:ai",
- "name": "medium",
- "value": 50,
- "createdAt": "2022-01-01T03:49:52.531Z",
- "updatedAt": "2022-06-08T11:28:24.131Z"
}
]
}