Template
Templates are a pre-set configuration used to quickly configure and submit workloads using existing assets.
Retrieve a list of templates.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Filter results to workload of type distributed and distributedFramework.
Filter results to workload of type distributed.
Filter results to workload of type training.
Filter results to workload of type workspace.
Request completed successfully.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/workload-template HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create a template.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
POST /api/v1/asset/workload-template HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2044
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"assets": {
"environment": "123e4567-e89b-12d3-a456-426614174000",
"compute": "text",
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
}
}
}{
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "test@run.ai",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "test@run.ai",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
},
"distributed": {
"numWorkers": 1,
"noMaster": true,
"distFramework": "MPI",
"master": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
}
}
}
}
}Retrieve the details of a template by id.
Bearer authentication
Unique identifier of the asset.
Request completed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/workload-template/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "test@run.ai",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "test@run.ai",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
},
"distributed": {
"numWorkers": 1,
"noMaster": true,
"distFramework": "MPI",
"master": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
}
}
}
}
}Use to update the details of a template by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
PUT /api/v1/asset/workload-template/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1907
{
"meta": {
"name": "my-asset"
},
"spec": {
"assets": {
"environment": "123e4567-e89b-12d3-a456-426614174000",
"compute": "text",
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
}
}
}{
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "test@run.ai",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "test@run.ai",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
},
"distributed": {
"numWorkers": 1,
"noMaster": true,
"distFramework": "MPI",
"master": {
"assets": {
"environment": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset",
"toolTypes": [
"jupyter-notebook"
]
},
"compute": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-asset"
},
"datasources": [],
"workloadVolumes": [
"text"
]
},
"specificEnv": {
"connections": [],
"annotations": [
{
"name": "billing",
"value": "my-billing-unit",
"exclude": false
}
],
"args": "-x my-script.py",
"autoDeletionTimeAfterCompletionSeconds": 15,
"backoffLimit": 3,
"category": "text",
"command": "python",
"completions": 1,
"environmentVariables": [
{
"name": "HOME",
"value": "/home/my-folder",
"credential": {
"assetId": "123e4567-e89b-12d3-a456-426614174000",
"key": "POSTGRES_PASSWORD"
},
"configMap": {
"name": "my-config-map",
"key": "MY_POSTGRES_SCHEMA"
},
"podFieldRef": {
"path": "metadata.name"
},
"exclude": false,
"description": "Home directory of the user."
}
],
"imagePullSecrets": [
{
"name": "text",
"userCredential": true,
"exclude": false
}
],
"labels": [
{
"name": "stage",
"value": "initial-research",
"exclude": false
}
],
"nodeAffinityRequired": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "text",
"operator": "In",
"values": [
"text"
]
}
]
}
]
},
"nodePools": [
"my-node-pool-a",
"my-node-pool-b"
],
"nodeType": "my-node-type",
"parallelism": 1,
"podAffinity": {
"type": "Required",
"key": "text"
},
"priorityClass": "text",
"restartPolicy": "Always",
"runAsGid": 30,
"runAsUid": 500,
"supplementalGroups": "2,3,5,8",
"terminateAfterPreemption": false,
"terminationGracePeriodSeconds": 20,
"tolerations": [
{
"name": "text",
"operator": "Equal",
"key": "text",
"value": "text",
"effect": "NoSchedule",
"seconds": 1,
"exclude": false
}
],
"allowOverQuota": true,
"autoScaling": {
"metricThresholdPercentage": 1,
"minReplicas": 1,
"maxReplicas": 1,
"initialReplicas": 1,
"activationReplicas": 1,
"concurrencyHardLimit": 1,
"scaleToZeroRetentionSeconds": 1,
"scaleDownDelaySeconds": 1,
"thresholdMetric": "http_requests_total",
"thresholdValue": 1
},
"servingPortAccess": {
"authorizationType": "public",
"authorizedUsers": [
"user.a@example.com",
"user.b@example.com"
],
"authorizedGroups": [
"group-a",
"group-b"
],
"clusterLocalAccessOnly": true
}
}
}
}
}
}Use to delete a template by id.
Bearer authentication
Unique identifier of the asset.
Accepted.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
DELETE /api/v1/asset/workload-template/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 202,
"message": "Request has been accepted."
}Last updated