Revisions
Revisions are associated with an inference workload and represent a snapshot of its configuration. A revision is created on each change to the inference workload.
Retrieve the details of inference workload revisions by workload id. Supported for clusters v2.21+.
Bearer authentication
The Universally Unique Identifier (UUID) of the workload.
Return only deleted resources when true.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/workloads/inferences/{workloadId}/revisions HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"revisions": [
{
"type": "runai-revision",
"name": "very-important-job",
"id": "123e4567-e89b-12d3-a456-426614174000",
"workloadId": "123e4567-e89b-12d3-a456-426614174000",
"tenantId": 1001,
"clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
"projectId": 1,
"departmentId": 2,
"createdAt": "2022-01-01T03:49:52.531Z",
"deletedAt": "2022-08-12T19:28:24.131Z",
"revisionRequestedResources": {
"gpuRequestType": "portion",
"gpu": {
"limit": 1.5,
"request": 1
},
"gpuMemory": {
"limit": "2G",
"request": "200M"
},
"cpu": {
"limit": 1.5,
"request": 1
},
"cpuMemory": {
"limit": "2G",
"request": "200M"
},
"extendedResources": [
{
"resource": "hardware-vendor.example/foo",
"quantity": 2,
"exclude": false
}
]
},
"podsRequestedResources": {
"gpuRequestType": "portion",
"gpu": {
"limit": 1.5,
"request": 1
},
"gpuMemory": {
"limit": "2G",
"request": "200M"
},
"cpu": {
"limit": 1.5,
"request": 1
},
"cpuMemory": {
"limit": "2G",
"request": "200M"
},
"extendedResources": [
{
"resource": "hardware-vendor.example/foo",
"quantity": 2,
"exclude": false
}
]
},
"requestedPods": {
"number": 1,
"min": 2,
"max": 5,
"parallelism": 3,
"completions": 5
},
"requestedNodePools": [
"default"
],
"allocatedResources": {
"gpu": 1.5,
"gpuMemory": "200Mi",
"cpu": 0.5,
"cpuMemory": "0B",
"extendedResources": [
{
"resource": "hardware-vendor.example/foo",
"quantity": 2,
"exclude": false
}
]
},
"currentNodePools": [
"default"
],
"runningPods": 1,
"images": [
"alpine:latest"
],
"environmentVariables": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"command": "sleep",
"arguments": "1000",
"conditions": [
{
"type": "Ready",
"status": "False",
"message": "Resource validation failed: ...",
"reason": "ErrorConfig",
"lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
],
"phase": "Creating",
"phaseMessage": "Not enough resources in the requested nodepool",
"phaseUpdatedAt": "2022-06-08T11:28:24.131Z",
"additionalFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}Retrieve the number of an inference workload revisions from a cluster. Supported for clusters v2.21+.
Bearer authentication
The Universally Unique Identifier (UUID) of the workload.
Return only deleted resources when true.
Executed successfully.
1Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/workloads/inferences/{workloadId}/revisions/count HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1
}Retrieve revision details using a revision id. Supported for clusters v2.21+.
Bearer authentication
The Universally Unique Identifier (UUID) of the revision.
Executed successfully.
runai-revisionvery-important-jobThe id of the tenant.
1001The id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210The id of the project.
1Pattern: .*The id of the department.
2Pattern: .*2022-01-01T03:49:52.531Z2022-08-12T19:28:24.131Zdefaultdefault1alpine:latestsleep1000Not enough resources in the requested nodepool2022-06-08T11:28:24.131ZUnauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/workloads/inferences/revisions/{revisionId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"type": "runai-revision",
"name": "very-important-job",
"id": "123e4567-e89b-12d3-a456-426614174000",
"workloadId": "123e4567-e89b-12d3-a456-426614174000",
"tenantId": 1001,
"clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
"projectId": 1,
"departmentId": 2,
"createdAt": "2022-01-01T03:49:52.531Z",
"deletedAt": "2022-08-12T19:28:24.131Z",
"revisionRequestedResources": {
"gpuRequestType": "portion",
"gpu": {
"limit": 1.5,
"request": 1
},
"gpuMemory": {
"limit": "2G",
"request": "200M"
},
"cpu": {
"limit": 1.5,
"request": 1
},
"cpuMemory": {
"limit": "2G",
"request": "200M"
},
"extendedResources": [
{
"resource": "hardware-vendor.example/foo",
"quantity": 2,
"exclude": false
}
]
},
"podsRequestedResources": {
"gpuRequestType": "portion",
"gpu": {
"limit": 1.5,
"request": 1
},
"gpuMemory": {
"limit": "2G",
"request": "200M"
},
"cpu": {
"limit": 1.5,
"request": 1
},
"cpuMemory": {
"limit": "2G",
"request": "200M"
},
"extendedResources": [
{
"resource": "hardware-vendor.example/foo",
"quantity": 2,
"exclude": false
}
]
},
"requestedPods": {
"number": 1,
"min": 2,
"max": 5,
"parallelism": 3,
"completions": 5
},
"requestedNodePools": [
"default"
],
"allocatedResources": {
"gpu": 1.5,
"gpuMemory": "200Mi",
"cpu": 0.5,
"cpuMemory": "0B",
"extendedResources": [
{
"resource": "hardware-vendor.example/foo",
"quantity": 2,
"exclude": false
}
]
},
"currentNodePools": [
"default"
],
"runningPods": 1,
"images": [
"alpine:latest"
],
"environmentVariables": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"command": "sleep",
"arguments": "1000",
"conditions": [
{
"type": "Ready",
"status": "False",
"message": "Resource validation failed: ...",
"reason": "ErrorConfig",
"lastTransitionTime": "2022-01-01T03:49:52.531Z"
}
],
"phase": "Creating",
"phaseMessage": "Not enough resources in the requested nodepool",
"phaseUpdatedAt": "2022-06-08T11:28:24.131Z",
"additionalFields": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Last updated