curl --request POST \
--url https://api.coreweave.com/v1/sandbox/managedRunners \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"identity": {
"runnerId": "<string>",
"runnerGroupId": "<string>",
"zone": "<string>",
"clusterId": "<string>"
},
"policy": {
"displayName": "<string>",
"base": {},
"constraints": {
"resources": {
"maxCpu": "<string>",
"maxMemory": "<string>",
"minCpu": "<string>",
"minMemory": "<string>",
"defaultCpu": "<string>",
"defaultMemory": "<string>",
"maxGpuCount": "<string>",
"cpuCeiling": "<string>",
"memoryCeiling": "<string>",
"requireLimits": true
},
"image": {
"allowedRegistries": [
"<string>"
],
"allowedImages": [
"<string>"
]
},
"network": {
"allowedEgress": [
{
"httpsHostname": "<string>",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"defaultEgress": [
{
"httpsHostname": "<string>",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"denyHttpsHostnameRules": true,
"allowedIngress": [
{
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"defaultIngress": [
{
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
]
},
"security": {
"allowPrivileged": true,
"allowedCapabilities": [
"<string>"
],
"allowedSeccompProfiles": [
"<string>"
],
"allowedRuntimeClasses": [
"<string>"
],
"defaultCpuRuntimeClass": "<string>",
"defaultGpuRuntimeClass": "<string>",
"runtimeClassMappings": [
{
"kubernetesRuntimeClassName": "<string>",
"nodeDefault": true
}
]
},
"instance": {
"allowedInstanceTypes": [
"<string>"
]
},
"lifecycle": {
"defaultLifetimeSeconds": 123
},
"metadata": {
"deniedAnnotationPrefixes": [
"<string>"
],
"maxAnnotationCount": 123
},
"volumes": {
"allowedMedia": [],
"maxSize": "<string>"
}
},
"controlPlaneAccess": {
"sourceIpAllowlist": {
"cidrs": [
"<string>"
]
}
}
},
"displayName": "<string>",
"spec": {
"maintenancePolicy": {
"windows": [
{
"cron": "<string>",
"durationSeconds": 123
}
],
"exclusions": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
]
},
"overrides": {
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"annotations": {},
"labels": {},
"env": {},
"args": [
"<string>"
],
"scaling": {
"replicas": 123,
"autoscalingEnabled": true,
"minReplicas": 123,
"maxReplicas": 123
},
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"affinity": {}
},
"allowPrivilegedProfileAnnotations": true,
"enforceResourceLimits": true,
"volumes": {
"enabled": true,
"csiDriverAllowlist": [
"<string>"
]
},
"tenantMetrics": {
"enabled": true,
"image": "<string>"
},
"dataPlane": {
"disabled": {},
"clusterIp": {
"annotations": {}
},
"loadBalancer": {
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": [
"<string>"
],
"hostname": "<string>"
}
},
"imagePull": {}
},
"profileBindings": [
{
"profileTemplateId": "<string>",
"profileName": "<string>",
"isDefault": true,
"overrides": {
"containerImage": "<string>",
"runtimeClass": "<string>",
"resourceDefaults": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"instanceTypes": [
"<string>"
],
"nodeSelector": {},
"tags": [
"<string>"
],
"namespace": {
"staticNamespace": "<string>",
"namespacePrefix": "<string>",
"autoCreate": true,
"labels": {},
"annotations": {}
},
"network": {
"egress": {
"defaultMode": "<string>",
"modes": {}
},
"ingress": {}
},
"podTemplate": {}
}
}
],
"etag": "<string>"
}
'import requests
url = "https://api.coreweave.com/v1/sandbox/managedRunners"
payload = {
"identity": {
"runnerId": "<string>",
"runnerGroupId": "<string>",
"zone": "<string>",
"clusterId": "<string>"
},
"policy": {
"displayName": "<string>",
"base": {},
"constraints": {
"resources": {
"maxCpu": "<string>",
"maxMemory": "<string>",
"minCpu": "<string>",
"minMemory": "<string>",
"defaultCpu": "<string>",
"defaultMemory": "<string>",
"maxGpuCount": "<string>",
"cpuCeiling": "<string>",
"memoryCeiling": "<string>",
"requireLimits": True
},
"image": {
"allowedRegistries": ["<string>"],
"allowedImages": ["<string>"]
},
"network": {
"allowedEgress": [
{
"httpsHostname": "<string>",
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": ["<string>"]
}
],
"defaultEgress": [
{
"httpsHostname": "<string>",
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": ["<string>"]
}
],
"denyHttpsHostnameRules": True,
"allowedIngress": [
{
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"defaultIngress": [
{
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
]
},
"security": {
"allowPrivileged": True,
"allowedCapabilities": ["<string>"],
"allowedSeccompProfiles": ["<string>"],
"allowedRuntimeClasses": ["<string>"],
"defaultCpuRuntimeClass": "<string>",
"defaultGpuRuntimeClass": "<string>",
"runtimeClassMappings": [
{
"kubernetesRuntimeClassName": "<string>",
"nodeDefault": True
}
]
},
"instance": { "allowedInstanceTypes": ["<string>"] },
"lifecycle": { "defaultLifetimeSeconds": 123 },
"metadata": {
"deniedAnnotationPrefixes": ["<string>"],
"maxAnnotationCount": 123
},
"volumes": {
"allowedMedia": [],
"maxSize": "<string>"
}
},
"controlPlaneAccess": { "sourceIpAllowlist": { "cidrs": ["<string>"] } }
},
"displayName": "<string>",
"spec": {
"maintenancePolicy": {
"windows": [
{
"cron": "<string>",
"durationSeconds": 123
}
],
"exclusions": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
]
},
"overrides": {
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"annotations": {},
"labels": {},
"env": {},
"args": ["<string>"],
"scaling": {
"replicas": 123,
"autoscalingEnabled": True,
"minReplicas": 123,
"maxReplicas": 123
},
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"affinity": {}
},
"allowPrivilegedProfileAnnotations": True,
"enforceResourceLimits": True,
"volumes": {
"enabled": True,
"csiDriverAllowlist": ["<string>"]
},
"tenantMetrics": {
"enabled": True,
"image": "<string>"
},
"dataPlane": {
"disabled": {},
"clusterIp": { "annotations": {} },
"loadBalancer": {
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": ["<string>"],
"hostname": "<string>"
}
},
"imagePull": {}
},
"profileBindings": [
{
"profileTemplateId": "<string>",
"profileName": "<string>",
"isDefault": True,
"overrides": {
"containerImage": "<string>",
"runtimeClass": "<string>",
"resourceDefaults": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"instanceTypes": ["<string>"],
"nodeSelector": {},
"tags": ["<string>"],
"namespace": {
"staticNamespace": "<string>",
"namespacePrefix": "<string>",
"autoCreate": True,
"labels": {},
"annotations": {}
},
"network": {
"egress": {
"defaultMode": "<string>",
"modes": {}
},
"ingress": {}
},
"podTemplate": {}
}
}
],
"etag": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identity: {
runnerId: '<string>',
runnerGroupId: '<string>',
zone: '<string>',
clusterId: '<string>'
},
policy: {
displayName: '<string>',
base: {},
constraints: {
resources: {
maxCpu: '<string>',
maxMemory: '<string>',
minCpu: '<string>',
minMemory: '<string>',
defaultCpu: '<string>',
defaultMemory: '<string>',
maxGpuCount: '<string>',
cpuCeiling: '<string>',
memoryCeiling: '<string>',
requireLimits: true
},
image: {allowedRegistries: ['<string>'], allowedImages: ['<string>']},
network: {
allowedEgress: [
{
httpsHostname: '<string>',
any: true,
ports: [{port: 123, protocol: '<string>', endPort: 123}],
httpsHostnameExcept: ['<string>']
}
],
defaultEgress: [
{
httpsHostname: '<string>',
any: true,
ports: [{port: 123, protocol: '<string>', endPort: 123}],
httpsHostnameExcept: ['<string>']
}
],
denyHttpsHostnameRules: true,
allowedIngress: [{any: true, ports: [{port: 123, protocol: '<string>', endPort: 123}]}],
defaultIngress: [{any: true, ports: [{port: 123, protocol: '<string>', endPort: 123}]}]
},
security: {
allowPrivileged: true,
allowedCapabilities: ['<string>'],
allowedSeccompProfiles: ['<string>'],
allowedRuntimeClasses: ['<string>'],
defaultCpuRuntimeClass: '<string>',
defaultGpuRuntimeClass: '<string>',
runtimeClassMappings: [{kubernetesRuntimeClassName: '<string>', nodeDefault: true}]
},
instance: {allowedInstanceTypes: ['<string>']},
lifecycle: {defaultLifetimeSeconds: 123},
metadata: {deniedAnnotationPrefixes: ['<string>'], maxAnnotationCount: 123},
volumes: {allowedMedia: [], maxSize: '<string>'}
},
controlPlaneAccess: {sourceIpAllowlist: {cidrs: ['<string>']}}
},
displayName: '<string>',
spec: {
maintenancePolicy: {
windows: [{cron: '<string>', durationSeconds: 123}],
exclusions: [
{
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z',
reason: '<string>'
}
]
},
overrides: {
nodeSelector: {},
tolerations: [{key: '<string>', operator: '<string>', value: '<string>', effect: '<string>'}],
resources: {
cpuRequest: '<string>',
memoryRequest: '<string>',
cpuLimit: '<string>',
memoryLimit: '<string>'
},
annotations: {},
labels: {},
env: {},
args: ['<string>'],
scaling: {replicas: 123, autoscalingEnabled: true, minReplicas: 123, maxReplicas: 123},
cpuRuntimeClass: '<string>',
gpuRuntimeClass: '<string>',
affinity: {}
},
allowPrivilegedProfileAnnotations: true,
enforceResourceLimits: true,
volumes: {enabled: true, csiDriverAllowlist: ['<string>']},
tenantMetrics: {enabled: true, image: '<string>'},
dataPlane: {
disabled: {},
clusterIp: {annotations: {}},
loadBalancer: {
loadBalancerClass: '<string>',
annotations: {},
sourceRanges: ['<string>'],
hostname: '<string>'
}
},
imagePull: {}
},
profileBindings: [
{
profileTemplateId: '<string>',
profileName: '<string>',
isDefault: true,
overrides: {
containerImage: '<string>',
runtimeClass: '<string>',
resourceDefaults: {
cpuRequest: '<string>',
memoryRequest: '<string>',
cpuLimit: '<string>',
memoryLimit: '<string>'
},
instanceTypes: ['<string>'],
nodeSelector: {},
tags: ['<string>'],
namespace: {
staticNamespace: '<string>',
namespacePrefix: '<string>',
autoCreate: true,
labels: {},
annotations: {}
},
network: {egress: {defaultMode: '<string>', modes: {}}, ingress: {}},
podTemplate: {}
}
}
],
etag: '<string>'
})
};
fetch('https://api.coreweave.com/v1/sandbox/managedRunners', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coreweave.com/v1/sandbox/managedRunners",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identity' => [
'runnerId' => '<string>',
'runnerGroupId' => '<string>',
'zone' => '<string>',
'clusterId' => '<string>'
],
'policy' => [
'displayName' => '<string>',
'base' => [
],
'constraints' => [
'resources' => [
'maxCpu' => '<string>',
'maxMemory' => '<string>',
'minCpu' => '<string>',
'minMemory' => '<string>',
'defaultCpu' => '<string>',
'defaultMemory' => '<string>',
'maxGpuCount' => '<string>',
'cpuCeiling' => '<string>',
'memoryCeiling' => '<string>',
'requireLimits' => true
],
'image' => [
'allowedRegistries' => [
'<string>'
],
'allowedImages' => [
'<string>'
]
],
'network' => [
'allowedEgress' => [
[
'httpsHostname' => '<string>',
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
],
'httpsHostnameExcept' => [
'<string>'
]
]
],
'defaultEgress' => [
[
'httpsHostname' => '<string>',
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
],
'httpsHostnameExcept' => [
'<string>'
]
]
],
'denyHttpsHostnameRules' => true,
'allowedIngress' => [
[
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
]
]
],
'defaultIngress' => [
[
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
]
]
]
],
'security' => [
'allowPrivileged' => true,
'allowedCapabilities' => [
'<string>'
],
'allowedSeccompProfiles' => [
'<string>'
],
'allowedRuntimeClasses' => [
'<string>'
],
'defaultCpuRuntimeClass' => '<string>',
'defaultGpuRuntimeClass' => '<string>',
'runtimeClassMappings' => [
[
'kubernetesRuntimeClassName' => '<string>',
'nodeDefault' => true
]
]
],
'instance' => [
'allowedInstanceTypes' => [
'<string>'
]
],
'lifecycle' => [
'defaultLifetimeSeconds' => 123
],
'metadata' => [
'deniedAnnotationPrefixes' => [
'<string>'
],
'maxAnnotationCount' => 123
],
'volumes' => [
'allowedMedia' => [
],
'maxSize' => '<string>'
]
],
'controlPlaneAccess' => [
'sourceIpAllowlist' => [
'cidrs' => [
'<string>'
]
]
]
],
'displayName' => '<string>',
'spec' => [
'maintenancePolicy' => [
'windows' => [
[
'cron' => '<string>',
'durationSeconds' => 123
]
],
'exclusions' => [
[
'startTime' => '2023-11-07T05:31:56Z',
'endTime' => '2023-11-07T05:31:56Z',
'reason' => '<string>'
]
]
],
'overrides' => [
'nodeSelector' => [
],
'tolerations' => [
[
'key' => '<string>',
'operator' => '<string>',
'value' => '<string>',
'effect' => '<string>'
]
],
'resources' => [
'cpuRequest' => '<string>',
'memoryRequest' => '<string>',
'cpuLimit' => '<string>',
'memoryLimit' => '<string>'
],
'annotations' => [
],
'labels' => [
],
'env' => [
],
'args' => [
'<string>'
],
'scaling' => [
'replicas' => 123,
'autoscalingEnabled' => true,
'minReplicas' => 123,
'maxReplicas' => 123
],
'cpuRuntimeClass' => '<string>',
'gpuRuntimeClass' => '<string>',
'affinity' => [
]
],
'allowPrivilegedProfileAnnotations' => true,
'enforceResourceLimits' => true,
'volumes' => [
'enabled' => true,
'csiDriverAllowlist' => [
'<string>'
]
],
'tenantMetrics' => [
'enabled' => true,
'image' => '<string>'
],
'dataPlane' => [
'disabled' => [
],
'clusterIp' => [
'annotations' => [
]
],
'loadBalancer' => [
'loadBalancerClass' => '<string>',
'annotations' => [
],
'sourceRanges' => [
'<string>'
],
'hostname' => '<string>'
]
],
'imagePull' => [
]
],
'profileBindings' => [
[
'profileTemplateId' => '<string>',
'profileName' => '<string>',
'isDefault' => true,
'overrides' => [
'containerImage' => '<string>',
'runtimeClass' => '<string>',
'resourceDefaults' => [
'cpuRequest' => '<string>',
'memoryRequest' => '<string>',
'cpuLimit' => '<string>',
'memoryLimit' => '<string>'
],
'instanceTypes' => [
'<string>'
],
'nodeSelector' => [
],
'tags' => [
'<string>'
],
'namespace' => [
'staticNamespace' => '<string>',
'namespacePrefix' => '<string>',
'autoCreate' => true,
'labels' => [
],
'annotations' => [
]
],
'network' => [
'egress' => [
'defaultMode' => '<string>',
'modes' => [
]
],
'ingress' => [
]
],
'podTemplate' => [
]
]
]
],
'etag' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coreweave.com/v1/sandbox/managedRunners"
payload := strings.NewReader("{\n \"identity\": {\n \"runnerId\": \"<string>\",\n \"runnerGroupId\": \"<string>\",\n \"zone\": \"<string>\",\n \"clusterId\": \"<string>\"\n },\n \"policy\": {\n \"displayName\": \"<string>\",\n \"base\": {},\n \"constraints\": {\n \"resources\": {\n \"maxCpu\": \"<string>\",\n \"maxMemory\": \"<string>\",\n \"minCpu\": \"<string>\",\n \"minMemory\": \"<string>\",\n \"defaultCpu\": \"<string>\",\n \"defaultMemory\": \"<string>\",\n \"maxGpuCount\": \"<string>\",\n \"cpuCeiling\": \"<string>\",\n \"memoryCeiling\": \"<string>\",\n \"requireLimits\": true\n },\n \"image\": {\n \"allowedRegistries\": [\n \"<string>\"\n ],\n \"allowedImages\": [\n \"<string>\"\n ]\n },\n \"network\": {\n \"allowedEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"defaultEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"denyHttpsHostnameRules\": true,\n \"allowedIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ],\n \"defaultIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ]\n },\n \"security\": {\n \"allowPrivileged\": true,\n \"allowedCapabilities\": [\n \"<string>\"\n ],\n \"allowedSeccompProfiles\": [\n \"<string>\"\n ],\n \"allowedRuntimeClasses\": [\n \"<string>\"\n ],\n \"defaultCpuRuntimeClass\": \"<string>\",\n \"defaultGpuRuntimeClass\": \"<string>\",\n \"runtimeClassMappings\": [\n {\n \"kubernetesRuntimeClassName\": \"<string>\",\n \"nodeDefault\": true\n }\n ]\n },\n \"instance\": {\n \"allowedInstanceTypes\": [\n \"<string>\"\n ]\n },\n \"lifecycle\": {\n \"defaultLifetimeSeconds\": 123\n },\n \"metadata\": {\n \"deniedAnnotationPrefixes\": [\n \"<string>\"\n ],\n \"maxAnnotationCount\": 123\n },\n \"volumes\": {\n \"allowedMedia\": [],\n \"maxSize\": \"<string>\"\n }\n },\n \"controlPlaneAccess\": {\n \"sourceIpAllowlist\": {\n \"cidrs\": [\n \"<string>\"\n ]\n }\n }\n },\n \"displayName\": \"<string>\",\n \"spec\": {\n \"maintenancePolicy\": {\n \"windows\": [\n {\n \"cron\": \"<string>\",\n \"durationSeconds\": 123\n }\n ],\n \"exclusions\": [\n {\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"reason\": \"<string>\"\n }\n ]\n },\n \"overrides\": {\n \"nodeSelector\": {},\n \"tolerations\": [\n {\n \"key\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": \"<string>\",\n \"effect\": \"<string>\"\n }\n ],\n \"resources\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"annotations\": {},\n \"labels\": {},\n \"env\": {},\n \"args\": [\n \"<string>\"\n ],\n \"scaling\": {\n \"replicas\": 123,\n \"autoscalingEnabled\": true,\n \"minReplicas\": 123,\n \"maxReplicas\": 123\n },\n \"cpuRuntimeClass\": \"<string>\",\n \"gpuRuntimeClass\": \"<string>\",\n \"affinity\": {}\n },\n \"allowPrivilegedProfileAnnotations\": true,\n \"enforceResourceLimits\": true,\n \"volumes\": {\n \"enabled\": true,\n \"csiDriverAllowlist\": [\n \"<string>\"\n ]\n },\n \"tenantMetrics\": {\n \"enabled\": true,\n \"image\": \"<string>\"\n },\n \"dataPlane\": {\n \"disabled\": {},\n \"clusterIp\": {\n \"annotations\": {}\n },\n \"loadBalancer\": {\n \"loadBalancerClass\": \"<string>\",\n \"annotations\": {},\n \"sourceRanges\": [\n \"<string>\"\n ],\n \"hostname\": \"<string>\"\n }\n },\n \"imagePull\": {}\n },\n \"profileBindings\": [\n {\n \"profileTemplateId\": \"<string>\",\n \"profileName\": \"<string>\",\n \"isDefault\": true,\n \"overrides\": {\n \"containerImage\": \"<string>\",\n \"runtimeClass\": \"<string>\",\n \"resourceDefaults\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"instanceTypes\": [\n \"<string>\"\n ],\n \"nodeSelector\": {},\n \"tags\": [\n \"<string>\"\n ],\n \"namespace\": {\n \"staticNamespace\": \"<string>\",\n \"namespacePrefix\": \"<string>\",\n \"autoCreate\": true,\n \"labels\": {},\n \"annotations\": {}\n },\n \"network\": {\n \"egress\": {\n \"defaultMode\": \"<string>\",\n \"modes\": {}\n },\n \"ingress\": {}\n },\n \"podTemplate\": {}\n }\n }\n ],\n \"etag\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coreweave.com/v1/sandbox/managedRunners")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"identity\": {\n \"runnerId\": \"<string>\",\n \"runnerGroupId\": \"<string>\",\n \"zone\": \"<string>\",\n \"clusterId\": \"<string>\"\n },\n \"policy\": {\n \"displayName\": \"<string>\",\n \"base\": {},\n \"constraints\": {\n \"resources\": {\n \"maxCpu\": \"<string>\",\n \"maxMemory\": \"<string>\",\n \"minCpu\": \"<string>\",\n \"minMemory\": \"<string>\",\n \"defaultCpu\": \"<string>\",\n \"defaultMemory\": \"<string>\",\n \"maxGpuCount\": \"<string>\",\n \"cpuCeiling\": \"<string>\",\n \"memoryCeiling\": \"<string>\",\n \"requireLimits\": true\n },\n \"image\": {\n \"allowedRegistries\": [\n \"<string>\"\n ],\n \"allowedImages\": [\n \"<string>\"\n ]\n },\n \"network\": {\n \"allowedEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"defaultEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"denyHttpsHostnameRules\": true,\n \"allowedIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ],\n \"defaultIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ]\n },\n \"security\": {\n \"allowPrivileged\": true,\n \"allowedCapabilities\": [\n \"<string>\"\n ],\n \"allowedSeccompProfiles\": [\n \"<string>\"\n ],\n \"allowedRuntimeClasses\": [\n \"<string>\"\n ],\n \"defaultCpuRuntimeClass\": \"<string>\",\n \"defaultGpuRuntimeClass\": \"<string>\",\n \"runtimeClassMappings\": [\n {\n \"kubernetesRuntimeClassName\": \"<string>\",\n \"nodeDefault\": true\n }\n ]\n },\n \"instance\": {\n \"allowedInstanceTypes\": [\n \"<string>\"\n ]\n },\n \"lifecycle\": {\n \"defaultLifetimeSeconds\": 123\n },\n \"metadata\": {\n \"deniedAnnotationPrefixes\": [\n \"<string>\"\n ],\n \"maxAnnotationCount\": 123\n },\n \"volumes\": {\n \"allowedMedia\": [],\n \"maxSize\": \"<string>\"\n }\n },\n \"controlPlaneAccess\": {\n \"sourceIpAllowlist\": {\n \"cidrs\": [\n \"<string>\"\n ]\n }\n }\n },\n \"displayName\": \"<string>\",\n \"spec\": {\n \"maintenancePolicy\": {\n \"windows\": [\n {\n \"cron\": \"<string>\",\n \"durationSeconds\": 123\n }\n ],\n \"exclusions\": [\n {\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"reason\": \"<string>\"\n }\n ]\n },\n \"overrides\": {\n \"nodeSelector\": {},\n \"tolerations\": [\n {\n \"key\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": \"<string>\",\n \"effect\": \"<string>\"\n }\n ],\n \"resources\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"annotations\": {},\n \"labels\": {},\n \"env\": {},\n \"args\": [\n \"<string>\"\n ],\n \"scaling\": {\n \"replicas\": 123,\n \"autoscalingEnabled\": true,\n \"minReplicas\": 123,\n \"maxReplicas\": 123\n },\n \"cpuRuntimeClass\": \"<string>\",\n \"gpuRuntimeClass\": \"<string>\",\n \"affinity\": {}\n },\n \"allowPrivilegedProfileAnnotations\": true,\n \"enforceResourceLimits\": true,\n \"volumes\": {\n \"enabled\": true,\n \"csiDriverAllowlist\": [\n \"<string>\"\n ]\n },\n \"tenantMetrics\": {\n \"enabled\": true,\n \"image\": \"<string>\"\n },\n \"dataPlane\": {\n \"disabled\": {},\n \"clusterIp\": {\n \"annotations\": {}\n },\n \"loadBalancer\": {\n \"loadBalancerClass\": \"<string>\",\n \"annotations\": {},\n \"sourceRanges\": [\n \"<string>\"\n ],\n \"hostname\": \"<string>\"\n }\n },\n \"imagePull\": {}\n },\n \"profileBindings\": [\n {\n \"profileTemplateId\": \"<string>\",\n \"profileName\": \"<string>\",\n \"isDefault\": true,\n \"overrides\": {\n \"containerImage\": \"<string>\",\n \"runtimeClass\": \"<string>\",\n \"resourceDefaults\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"instanceTypes\": [\n \"<string>\"\n ],\n \"nodeSelector\": {},\n \"tags\": [\n \"<string>\"\n ],\n \"namespace\": {\n \"staticNamespace\": \"<string>\",\n \"namespacePrefix\": \"<string>\",\n \"autoCreate\": true,\n \"labels\": {},\n \"annotations\": {}\n },\n \"network\": {\n \"egress\": {\n \"defaultMode\": \"<string>\",\n \"modes\": {}\n },\n \"ingress\": {}\n },\n \"podTemplate\": {}\n }\n }\n ],\n \"etag\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coreweave.com/v1/sandbox/managedRunners")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identity\": {\n \"runnerId\": \"<string>\",\n \"runnerGroupId\": \"<string>\",\n \"zone\": \"<string>\",\n \"clusterId\": \"<string>\"\n },\n \"policy\": {\n \"displayName\": \"<string>\",\n \"base\": {},\n \"constraints\": {\n \"resources\": {\n \"maxCpu\": \"<string>\",\n \"maxMemory\": \"<string>\",\n \"minCpu\": \"<string>\",\n \"minMemory\": \"<string>\",\n \"defaultCpu\": \"<string>\",\n \"defaultMemory\": \"<string>\",\n \"maxGpuCount\": \"<string>\",\n \"cpuCeiling\": \"<string>\",\n \"memoryCeiling\": \"<string>\",\n \"requireLimits\": true\n },\n \"image\": {\n \"allowedRegistries\": [\n \"<string>\"\n ],\n \"allowedImages\": [\n \"<string>\"\n ]\n },\n \"network\": {\n \"allowedEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"defaultEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"denyHttpsHostnameRules\": true,\n \"allowedIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ],\n \"defaultIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ]\n },\n \"security\": {\n \"allowPrivileged\": true,\n \"allowedCapabilities\": [\n \"<string>\"\n ],\n \"allowedSeccompProfiles\": [\n \"<string>\"\n ],\n \"allowedRuntimeClasses\": [\n \"<string>\"\n ],\n \"defaultCpuRuntimeClass\": \"<string>\",\n \"defaultGpuRuntimeClass\": \"<string>\",\n \"runtimeClassMappings\": [\n {\n \"kubernetesRuntimeClassName\": \"<string>\",\n \"nodeDefault\": true\n }\n ]\n },\n \"instance\": {\n \"allowedInstanceTypes\": [\n \"<string>\"\n ]\n },\n \"lifecycle\": {\n \"defaultLifetimeSeconds\": 123\n },\n \"metadata\": {\n \"deniedAnnotationPrefixes\": [\n \"<string>\"\n ],\n \"maxAnnotationCount\": 123\n },\n \"volumes\": {\n \"allowedMedia\": [],\n \"maxSize\": \"<string>\"\n }\n },\n \"controlPlaneAccess\": {\n \"sourceIpAllowlist\": {\n \"cidrs\": [\n \"<string>\"\n ]\n }\n }\n },\n \"displayName\": \"<string>\",\n \"spec\": {\n \"maintenancePolicy\": {\n \"windows\": [\n {\n \"cron\": \"<string>\",\n \"durationSeconds\": 123\n }\n ],\n \"exclusions\": [\n {\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"reason\": \"<string>\"\n }\n ]\n },\n \"overrides\": {\n \"nodeSelector\": {},\n \"tolerations\": [\n {\n \"key\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": \"<string>\",\n \"effect\": \"<string>\"\n }\n ],\n \"resources\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"annotations\": {},\n \"labels\": {},\n \"env\": {},\n \"args\": [\n \"<string>\"\n ],\n \"scaling\": {\n \"replicas\": 123,\n \"autoscalingEnabled\": true,\n \"minReplicas\": 123,\n \"maxReplicas\": 123\n },\n \"cpuRuntimeClass\": \"<string>\",\n \"gpuRuntimeClass\": \"<string>\",\n \"affinity\": {}\n },\n \"allowPrivilegedProfileAnnotations\": true,\n \"enforceResourceLimits\": true,\n \"volumes\": {\n \"enabled\": true,\n \"csiDriverAllowlist\": [\n \"<string>\"\n ]\n },\n \"tenantMetrics\": {\n \"enabled\": true,\n \"image\": \"<string>\"\n },\n \"dataPlane\": {\n \"disabled\": {},\n \"clusterIp\": {\n \"annotations\": {}\n },\n \"loadBalancer\": {\n \"loadBalancerClass\": \"<string>\",\n \"annotations\": {},\n \"sourceRanges\": [\n \"<string>\"\n ],\n \"hostname\": \"<string>\"\n }\n },\n \"imagePull\": {}\n },\n \"profileBindings\": [\n {\n \"profileTemplateId\": \"<string>\",\n \"profileName\": \"<string>\",\n \"isDefault\": true,\n \"overrides\": {\n \"containerImage\": \"<string>\",\n \"runtimeClass\": \"<string>\",\n \"resourceDefaults\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"instanceTypes\": [\n \"<string>\"\n ],\n \"nodeSelector\": {},\n \"tags\": [\n \"<string>\"\n ],\n \"namespace\": {\n \"staticNamespace\": \"<string>\",\n \"namespacePrefix\": \"<string>\",\n \"autoCreate\": true,\n \"labels\": {},\n \"annotations\": {}\n },\n \"network\": {\n \"egress\": {\n \"defaultMode\": \"<string>\",\n \"modes\": {}\n },\n \"ingress\": {}\n },\n \"podTemplate\": {}\n }\n }\n ],\n \"etag\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"identity": {
"runnerId": "<string>",
"runnerGroupId": "<string>",
"zone": "<string>",
"clusterId": "<string>",
"clusterName": "<string>"
},
"policy": {
"displayName": "<string>",
"base": {},
"constraints": {
"resources": {
"maxCpu": "<string>",
"maxMemory": "<string>",
"minCpu": "<string>",
"minMemory": "<string>",
"defaultCpu": "<string>",
"defaultMemory": "<string>",
"maxGpuCount": "<string>",
"cpuCeiling": "<string>",
"memoryCeiling": "<string>",
"requireLimits": true
},
"image": {
"allowedRegistries": [
"<string>"
],
"allowedImages": [
"<string>"
]
},
"network": {
"allowedEgress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"httpsHostname": "<string>",
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"selector": {
"podLabels": {},
"namespaceLabels": {}
},
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"defaultEgress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"httpsHostname": "<string>",
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"selector": {
"podLabels": {},
"namespaceLabels": {}
},
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"denyHttpsHostnameRules": true,
"allowedIngress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"defaultIngress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"dnsEgress": "DNS_EGRESS_MODE_UNSPECIFIED"
},
"security": {
"allowPrivileged": true,
"allowedCapabilities": [
"<string>"
],
"allowedSeccompProfiles": [
"<string>"
],
"allowedRuntimeClasses": [
"<string>"
],
"defaultCpuRuntimeClass": "<string>",
"defaultGpuRuntimeClass": "<string>",
"runtimeClassMappings": [
{
"runtimeClass": "RUNTIME_CLASS_UNSPECIFIED",
"kubernetesRuntimeClassName": "<string>",
"nodeDefault": true
}
]
},
"instance": {
"allowedInstanceTypes": [
"<string>"
]
},
"lifecycle": {
"defaultLifetimeSeconds": 123
},
"metadata": {
"deniedAnnotationPrefixes": [
"<string>"
],
"maxAnnotationCount": 123
},
"volumes": {
"allowedMedia": [
"STORAGE_MEDIUM_UNSPECIFIED"
],
"maxSize": "<string>"
}
},
"controlPlaneAccess": {
"sourceIpAllowlist": {
"cidrs": [
"<string>"
]
}
}
},
"displayName": "<string>",
"spec": {
"releaseChannel": "RELEASE_CHANNEL_UNSPECIFIED",
"maintenancePolicy": {
"windows": [
{
"cron": "<string>",
"durationSeconds": 123
}
],
"exclusions": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
]
},
"overrides": {
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"annotations": {},
"labels": {},
"env": {},
"args": [
"<string>"
],
"scaling": {
"replicas": 123,
"autoscalingEnabled": true,
"minReplicas": 123,
"maxReplicas": 123
},
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"affinity": {}
},
"allowPrivilegedProfileAnnotations": true,
"enforceResourceLimits": true,
"volumes": {
"enabled": true,
"csiDriverAllowlist": [
"<string>"
]
},
"tenantMetrics": {
"enabled": true,
"image": "<string>"
},
"dataPlane": {
"disabled": {},
"clusterIp": {
"annotations": {}
},
"loadBalancer": {
"scope": "RUNNER_DATA_PLANE_SERVICE_SCOPE_UNSPECIFIED",
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": [
"<string>"
],
"externalTrafficPolicy": "RUNNER_DATA_PLANE_EXTERNAL_TRAFFIC_POLICY_UNSPECIFIED",
"hostname": "<string>"
},
"custom": {
"advertisedUri": "<string>",
"serviceAnnotations": {}
}
},
"imagePull": {
"policy": "SANDBOX_IMAGE_PULL_POLICY_UNSPECIFIED"
}
},
"installStatus": "RUNNER_INSTALL_STATUS_UNSPECIFIED",
"connectionStatus": "RUNNER_CONNECTION_STATUS_UNSPECIFIED",
"activeConfigVersion": "<string>",
"activeProfileSpecVersion": "<string>",
"activeRevision": 123,
"targetRevision": 123,
"deploymentSpec": {
"image": "<string>",
"env": {},
"args": [
"<string>"
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"scaling": {
"replicas": 123,
"autoscalingEnabled": true,
"minReplicas": 123,
"maxReplicas": 123
},
"annotations": {},
"labels": {},
"serviceAccount": "<string>",
"extraVolumes": [
{
"mountPath": "<string>",
"name": "<string>",
"readOnly": true,
"subPath": "<string>",
"configMapName": "<string>",
"secretName": "<string>",
"emptyDir": true
}
],
"readinessProbe": {
"path": "<string>",
"port": 123,
"initialDelaySeconds": 123,
"periodSeconds": 123,
"failureThreshold": 123,
"timeoutSeconds": 123
},
"livenessProbe": {
"path": "<string>",
"port": 123,
"initialDelaySeconds": 123,
"periodSeconds": 123,
"failureThreshold": 123,
"timeoutSeconds": 123
},
"initResources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"imagePullPolicy": "<string>",
"gatewayServer": "<string>",
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"endpointRoutes": {
"https": {
"enabled": true,
"gateway": {
"name": "<string>",
"namespace": "<string>",
"listener": "<string>"
},
"provider": "<string>"
},
"tlsPassthrough": {
"enabled": true,
"gateway": {
"name": "<string>",
"namespace": "<string>",
"listener": "<string>"
},
"provider": "<string>"
}
},
"dataPlane": {
"disabled": {},
"clusterIp": {
"annotations": {}
},
"loadBalancer": {
"scope": "RUNNER_DATA_PLANE_SERVICE_SCOPE_UNSPECIFIED",
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": [
"<string>"
],
"externalTrafficPolicy": "RUNNER_DATA_PLANE_EXTERNAL_TRAFFIC_POLICY_UNSPECIFIED",
"hostname": "<string>"
},
"custom": {
"advertisedUri": "<string>",
"serviceAnnotations": {}
}
},
"affinity": {}
},
"updateAvailable": true,
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"lastHeartbeatTime": "2023-11-07T05:31:56Z",
"profileBindings": [
{
"profileTemplateId": "<string>",
"runnerProfileBindingId": "<string>",
"profileName": "<string>",
"isDefault": true,
"overrides": {
"containerImage": "<string>",
"runtimeClass": "<string>",
"resourceDefaults": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"instanceTypes": [
"<string>"
],
"nodeSelector": {},
"tags": [
"<string>"
],
"namespace": {
"strategy": "PROFILE_NAMESPACE_STRATEGY_UNSPECIFIED",
"staticNamespace": "<string>",
"namespacePrefix": "<string>",
"autoCreate": true,
"labels": {},
"annotations": {}
},
"network": {
"egress": {
"defaultMode": "<string>",
"modes": {}
},
"ingress": {}
},
"podTemplate": {}
},
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z"
}
],
"installError": {
"reason": "RUNNER_INSTALL_FAILURE_REASON_UNSPECIFIED",
"message": "<string>",
"diagnosticDetail": "<string>",
"remediationHints": [
"<string>"
],
"occurredTime": "2023-11-07T05:31:56Z"
},
"rolloutInProgress": true,
"etag": "<string>",
"dataPlaneStatus": {
"state": "RUNNER_DATA_PLANE_STATE_UNSPECIFIED",
"endpointId": "<string>",
"advertisedUri": "<string>",
"protocols": [
"<string>"
],
"serverCertificateExpiresAt": "2023-11-07T05:31:56Z",
"message": "<string>",
"lastTransitionTime": "2023-11-07T05:31:56Z"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Create managed runner
Register a platform-managed runner with a runner policy.
curl --request POST \
--url https://api.coreweave.com/v1/sandbox/managedRunners \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"identity": {
"runnerId": "<string>",
"runnerGroupId": "<string>",
"zone": "<string>",
"clusterId": "<string>"
},
"policy": {
"displayName": "<string>",
"base": {},
"constraints": {
"resources": {
"maxCpu": "<string>",
"maxMemory": "<string>",
"minCpu": "<string>",
"minMemory": "<string>",
"defaultCpu": "<string>",
"defaultMemory": "<string>",
"maxGpuCount": "<string>",
"cpuCeiling": "<string>",
"memoryCeiling": "<string>",
"requireLimits": true
},
"image": {
"allowedRegistries": [
"<string>"
],
"allowedImages": [
"<string>"
]
},
"network": {
"allowedEgress": [
{
"httpsHostname": "<string>",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"defaultEgress": [
{
"httpsHostname": "<string>",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"denyHttpsHostnameRules": true,
"allowedIngress": [
{
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"defaultIngress": [
{
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
]
},
"security": {
"allowPrivileged": true,
"allowedCapabilities": [
"<string>"
],
"allowedSeccompProfiles": [
"<string>"
],
"allowedRuntimeClasses": [
"<string>"
],
"defaultCpuRuntimeClass": "<string>",
"defaultGpuRuntimeClass": "<string>",
"runtimeClassMappings": [
{
"kubernetesRuntimeClassName": "<string>",
"nodeDefault": true
}
]
},
"instance": {
"allowedInstanceTypes": [
"<string>"
]
},
"lifecycle": {
"defaultLifetimeSeconds": 123
},
"metadata": {
"deniedAnnotationPrefixes": [
"<string>"
],
"maxAnnotationCount": 123
},
"volumes": {
"allowedMedia": [],
"maxSize": "<string>"
}
},
"controlPlaneAccess": {
"sourceIpAllowlist": {
"cidrs": [
"<string>"
]
}
}
},
"displayName": "<string>",
"spec": {
"maintenancePolicy": {
"windows": [
{
"cron": "<string>",
"durationSeconds": 123
}
],
"exclusions": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
]
},
"overrides": {
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"annotations": {},
"labels": {},
"env": {},
"args": [
"<string>"
],
"scaling": {
"replicas": 123,
"autoscalingEnabled": true,
"minReplicas": 123,
"maxReplicas": 123
},
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"affinity": {}
},
"allowPrivilegedProfileAnnotations": true,
"enforceResourceLimits": true,
"volumes": {
"enabled": true,
"csiDriverAllowlist": [
"<string>"
]
},
"tenantMetrics": {
"enabled": true,
"image": "<string>"
},
"dataPlane": {
"disabled": {},
"clusterIp": {
"annotations": {}
},
"loadBalancer": {
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": [
"<string>"
],
"hostname": "<string>"
}
},
"imagePull": {}
},
"profileBindings": [
{
"profileTemplateId": "<string>",
"profileName": "<string>",
"isDefault": true,
"overrides": {
"containerImage": "<string>",
"runtimeClass": "<string>",
"resourceDefaults": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"instanceTypes": [
"<string>"
],
"nodeSelector": {},
"tags": [
"<string>"
],
"namespace": {
"staticNamespace": "<string>",
"namespacePrefix": "<string>",
"autoCreate": true,
"labels": {},
"annotations": {}
},
"network": {
"egress": {
"defaultMode": "<string>",
"modes": {}
},
"ingress": {}
},
"podTemplate": {}
}
}
],
"etag": "<string>"
}
'import requests
url = "https://api.coreweave.com/v1/sandbox/managedRunners"
payload = {
"identity": {
"runnerId": "<string>",
"runnerGroupId": "<string>",
"zone": "<string>",
"clusterId": "<string>"
},
"policy": {
"displayName": "<string>",
"base": {},
"constraints": {
"resources": {
"maxCpu": "<string>",
"maxMemory": "<string>",
"minCpu": "<string>",
"minMemory": "<string>",
"defaultCpu": "<string>",
"defaultMemory": "<string>",
"maxGpuCount": "<string>",
"cpuCeiling": "<string>",
"memoryCeiling": "<string>",
"requireLimits": True
},
"image": {
"allowedRegistries": ["<string>"],
"allowedImages": ["<string>"]
},
"network": {
"allowedEgress": [
{
"httpsHostname": "<string>",
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": ["<string>"]
}
],
"defaultEgress": [
{
"httpsHostname": "<string>",
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": ["<string>"]
}
],
"denyHttpsHostnameRules": True,
"allowedIngress": [
{
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"defaultIngress": [
{
"any": True,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
]
},
"security": {
"allowPrivileged": True,
"allowedCapabilities": ["<string>"],
"allowedSeccompProfiles": ["<string>"],
"allowedRuntimeClasses": ["<string>"],
"defaultCpuRuntimeClass": "<string>",
"defaultGpuRuntimeClass": "<string>",
"runtimeClassMappings": [
{
"kubernetesRuntimeClassName": "<string>",
"nodeDefault": True
}
]
},
"instance": { "allowedInstanceTypes": ["<string>"] },
"lifecycle": { "defaultLifetimeSeconds": 123 },
"metadata": {
"deniedAnnotationPrefixes": ["<string>"],
"maxAnnotationCount": 123
},
"volumes": {
"allowedMedia": [],
"maxSize": "<string>"
}
},
"controlPlaneAccess": { "sourceIpAllowlist": { "cidrs": ["<string>"] } }
},
"displayName": "<string>",
"spec": {
"maintenancePolicy": {
"windows": [
{
"cron": "<string>",
"durationSeconds": 123
}
],
"exclusions": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
]
},
"overrides": {
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"annotations": {},
"labels": {},
"env": {},
"args": ["<string>"],
"scaling": {
"replicas": 123,
"autoscalingEnabled": True,
"minReplicas": 123,
"maxReplicas": 123
},
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"affinity": {}
},
"allowPrivilegedProfileAnnotations": True,
"enforceResourceLimits": True,
"volumes": {
"enabled": True,
"csiDriverAllowlist": ["<string>"]
},
"tenantMetrics": {
"enabled": True,
"image": "<string>"
},
"dataPlane": {
"disabled": {},
"clusterIp": { "annotations": {} },
"loadBalancer": {
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": ["<string>"],
"hostname": "<string>"
}
},
"imagePull": {}
},
"profileBindings": [
{
"profileTemplateId": "<string>",
"profileName": "<string>",
"isDefault": True,
"overrides": {
"containerImage": "<string>",
"runtimeClass": "<string>",
"resourceDefaults": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"instanceTypes": ["<string>"],
"nodeSelector": {},
"tags": ["<string>"],
"namespace": {
"staticNamespace": "<string>",
"namespacePrefix": "<string>",
"autoCreate": True,
"labels": {},
"annotations": {}
},
"network": {
"egress": {
"defaultMode": "<string>",
"modes": {}
},
"ingress": {}
},
"podTemplate": {}
}
}
],
"etag": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identity: {
runnerId: '<string>',
runnerGroupId: '<string>',
zone: '<string>',
clusterId: '<string>'
},
policy: {
displayName: '<string>',
base: {},
constraints: {
resources: {
maxCpu: '<string>',
maxMemory: '<string>',
minCpu: '<string>',
minMemory: '<string>',
defaultCpu: '<string>',
defaultMemory: '<string>',
maxGpuCount: '<string>',
cpuCeiling: '<string>',
memoryCeiling: '<string>',
requireLimits: true
},
image: {allowedRegistries: ['<string>'], allowedImages: ['<string>']},
network: {
allowedEgress: [
{
httpsHostname: '<string>',
any: true,
ports: [{port: 123, protocol: '<string>', endPort: 123}],
httpsHostnameExcept: ['<string>']
}
],
defaultEgress: [
{
httpsHostname: '<string>',
any: true,
ports: [{port: 123, protocol: '<string>', endPort: 123}],
httpsHostnameExcept: ['<string>']
}
],
denyHttpsHostnameRules: true,
allowedIngress: [{any: true, ports: [{port: 123, protocol: '<string>', endPort: 123}]}],
defaultIngress: [{any: true, ports: [{port: 123, protocol: '<string>', endPort: 123}]}]
},
security: {
allowPrivileged: true,
allowedCapabilities: ['<string>'],
allowedSeccompProfiles: ['<string>'],
allowedRuntimeClasses: ['<string>'],
defaultCpuRuntimeClass: '<string>',
defaultGpuRuntimeClass: '<string>',
runtimeClassMappings: [{kubernetesRuntimeClassName: '<string>', nodeDefault: true}]
},
instance: {allowedInstanceTypes: ['<string>']},
lifecycle: {defaultLifetimeSeconds: 123},
metadata: {deniedAnnotationPrefixes: ['<string>'], maxAnnotationCount: 123},
volumes: {allowedMedia: [], maxSize: '<string>'}
},
controlPlaneAccess: {sourceIpAllowlist: {cidrs: ['<string>']}}
},
displayName: '<string>',
spec: {
maintenancePolicy: {
windows: [{cron: '<string>', durationSeconds: 123}],
exclusions: [
{
startTime: '2023-11-07T05:31:56Z',
endTime: '2023-11-07T05:31:56Z',
reason: '<string>'
}
]
},
overrides: {
nodeSelector: {},
tolerations: [{key: '<string>', operator: '<string>', value: '<string>', effect: '<string>'}],
resources: {
cpuRequest: '<string>',
memoryRequest: '<string>',
cpuLimit: '<string>',
memoryLimit: '<string>'
},
annotations: {},
labels: {},
env: {},
args: ['<string>'],
scaling: {replicas: 123, autoscalingEnabled: true, minReplicas: 123, maxReplicas: 123},
cpuRuntimeClass: '<string>',
gpuRuntimeClass: '<string>',
affinity: {}
},
allowPrivilegedProfileAnnotations: true,
enforceResourceLimits: true,
volumes: {enabled: true, csiDriverAllowlist: ['<string>']},
tenantMetrics: {enabled: true, image: '<string>'},
dataPlane: {
disabled: {},
clusterIp: {annotations: {}},
loadBalancer: {
loadBalancerClass: '<string>',
annotations: {},
sourceRanges: ['<string>'],
hostname: '<string>'
}
},
imagePull: {}
},
profileBindings: [
{
profileTemplateId: '<string>',
profileName: '<string>',
isDefault: true,
overrides: {
containerImage: '<string>',
runtimeClass: '<string>',
resourceDefaults: {
cpuRequest: '<string>',
memoryRequest: '<string>',
cpuLimit: '<string>',
memoryLimit: '<string>'
},
instanceTypes: ['<string>'],
nodeSelector: {},
tags: ['<string>'],
namespace: {
staticNamespace: '<string>',
namespacePrefix: '<string>',
autoCreate: true,
labels: {},
annotations: {}
},
network: {egress: {defaultMode: '<string>', modes: {}}, ingress: {}},
podTemplate: {}
}
}
],
etag: '<string>'
})
};
fetch('https://api.coreweave.com/v1/sandbox/managedRunners', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coreweave.com/v1/sandbox/managedRunners",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identity' => [
'runnerId' => '<string>',
'runnerGroupId' => '<string>',
'zone' => '<string>',
'clusterId' => '<string>'
],
'policy' => [
'displayName' => '<string>',
'base' => [
],
'constraints' => [
'resources' => [
'maxCpu' => '<string>',
'maxMemory' => '<string>',
'minCpu' => '<string>',
'minMemory' => '<string>',
'defaultCpu' => '<string>',
'defaultMemory' => '<string>',
'maxGpuCount' => '<string>',
'cpuCeiling' => '<string>',
'memoryCeiling' => '<string>',
'requireLimits' => true
],
'image' => [
'allowedRegistries' => [
'<string>'
],
'allowedImages' => [
'<string>'
]
],
'network' => [
'allowedEgress' => [
[
'httpsHostname' => '<string>',
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
],
'httpsHostnameExcept' => [
'<string>'
]
]
],
'defaultEgress' => [
[
'httpsHostname' => '<string>',
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
],
'httpsHostnameExcept' => [
'<string>'
]
]
],
'denyHttpsHostnameRules' => true,
'allowedIngress' => [
[
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
]
]
],
'defaultIngress' => [
[
'any' => true,
'ports' => [
[
'port' => 123,
'protocol' => '<string>',
'endPort' => 123
]
]
]
]
],
'security' => [
'allowPrivileged' => true,
'allowedCapabilities' => [
'<string>'
],
'allowedSeccompProfiles' => [
'<string>'
],
'allowedRuntimeClasses' => [
'<string>'
],
'defaultCpuRuntimeClass' => '<string>',
'defaultGpuRuntimeClass' => '<string>',
'runtimeClassMappings' => [
[
'kubernetesRuntimeClassName' => '<string>',
'nodeDefault' => true
]
]
],
'instance' => [
'allowedInstanceTypes' => [
'<string>'
]
],
'lifecycle' => [
'defaultLifetimeSeconds' => 123
],
'metadata' => [
'deniedAnnotationPrefixes' => [
'<string>'
],
'maxAnnotationCount' => 123
],
'volumes' => [
'allowedMedia' => [
],
'maxSize' => '<string>'
]
],
'controlPlaneAccess' => [
'sourceIpAllowlist' => [
'cidrs' => [
'<string>'
]
]
]
],
'displayName' => '<string>',
'spec' => [
'maintenancePolicy' => [
'windows' => [
[
'cron' => '<string>',
'durationSeconds' => 123
]
],
'exclusions' => [
[
'startTime' => '2023-11-07T05:31:56Z',
'endTime' => '2023-11-07T05:31:56Z',
'reason' => '<string>'
]
]
],
'overrides' => [
'nodeSelector' => [
],
'tolerations' => [
[
'key' => '<string>',
'operator' => '<string>',
'value' => '<string>',
'effect' => '<string>'
]
],
'resources' => [
'cpuRequest' => '<string>',
'memoryRequest' => '<string>',
'cpuLimit' => '<string>',
'memoryLimit' => '<string>'
],
'annotations' => [
],
'labels' => [
],
'env' => [
],
'args' => [
'<string>'
],
'scaling' => [
'replicas' => 123,
'autoscalingEnabled' => true,
'minReplicas' => 123,
'maxReplicas' => 123
],
'cpuRuntimeClass' => '<string>',
'gpuRuntimeClass' => '<string>',
'affinity' => [
]
],
'allowPrivilegedProfileAnnotations' => true,
'enforceResourceLimits' => true,
'volumes' => [
'enabled' => true,
'csiDriverAllowlist' => [
'<string>'
]
],
'tenantMetrics' => [
'enabled' => true,
'image' => '<string>'
],
'dataPlane' => [
'disabled' => [
],
'clusterIp' => [
'annotations' => [
]
],
'loadBalancer' => [
'loadBalancerClass' => '<string>',
'annotations' => [
],
'sourceRanges' => [
'<string>'
],
'hostname' => '<string>'
]
],
'imagePull' => [
]
],
'profileBindings' => [
[
'profileTemplateId' => '<string>',
'profileName' => '<string>',
'isDefault' => true,
'overrides' => [
'containerImage' => '<string>',
'runtimeClass' => '<string>',
'resourceDefaults' => [
'cpuRequest' => '<string>',
'memoryRequest' => '<string>',
'cpuLimit' => '<string>',
'memoryLimit' => '<string>'
],
'instanceTypes' => [
'<string>'
],
'nodeSelector' => [
],
'tags' => [
'<string>'
],
'namespace' => [
'staticNamespace' => '<string>',
'namespacePrefix' => '<string>',
'autoCreate' => true,
'labels' => [
],
'annotations' => [
]
],
'network' => [
'egress' => [
'defaultMode' => '<string>',
'modes' => [
]
],
'ingress' => [
]
],
'podTemplate' => [
]
]
]
],
'etag' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.coreweave.com/v1/sandbox/managedRunners"
payload := strings.NewReader("{\n \"identity\": {\n \"runnerId\": \"<string>\",\n \"runnerGroupId\": \"<string>\",\n \"zone\": \"<string>\",\n \"clusterId\": \"<string>\"\n },\n \"policy\": {\n \"displayName\": \"<string>\",\n \"base\": {},\n \"constraints\": {\n \"resources\": {\n \"maxCpu\": \"<string>\",\n \"maxMemory\": \"<string>\",\n \"minCpu\": \"<string>\",\n \"minMemory\": \"<string>\",\n \"defaultCpu\": \"<string>\",\n \"defaultMemory\": \"<string>\",\n \"maxGpuCount\": \"<string>\",\n \"cpuCeiling\": \"<string>\",\n \"memoryCeiling\": \"<string>\",\n \"requireLimits\": true\n },\n \"image\": {\n \"allowedRegistries\": [\n \"<string>\"\n ],\n \"allowedImages\": [\n \"<string>\"\n ]\n },\n \"network\": {\n \"allowedEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"defaultEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"denyHttpsHostnameRules\": true,\n \"allowedIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ],\n \"defaultIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ]\n },\n \"security\": {\n \"allowPrivileged\": true,\n \"allowedCapabilities\": [\n \"<string>\"\n ],\n \"allowedSeccompProfiles\": [\n \"<string>\"\n ],\n \"allowedRuntimeClasses\": [\n \"<string>\"\n ],\n \"defaultCpuRuntimeClass\": \"<string>\",\n \"defaultGpuRuntimeClass\": \"<string>\",\n \"runtimeClassMappings\": [\n {\n \"kubernetesRuntimeClassName\": \"<string>\",\n \"nodeDefault\": true\n }\n ]\n },\n \"instance\": {\n \"allowedInstanceTypes\": [\n \"<string>\"\n ]\n },\n \"lifecycle\": {\n \"defaultLifetimeSeconds\": 123\n },\n \"metadata\": {\n \"deniedAnnotationPrefixes\": [\n \"<string>\"\n ],\n \"maxAnnotationCount\": 123\n },\n \"volumes\": {\n \"allowedMedia\": [],\n \"maxSize\": \"<string>\"\n }\n },\n \"controlPlaneAccess\": {\n \"sourceIpAllowlist\": {\n \"cidrs\": [\n \"<string>\"\n ]\n }\n }\n },\n \"displayName\": \"<string>\",\n \"spec\": {\n \"maintenancePolicy\": {\n \"windows\": [\n {\n \"cron\": \"<string>\",\n \"durationSeconds\": 123\n }\n ],\n \"exclusions\": [\n {\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"reason\": \"<string>\"\n }\n ]\n },\n \"overrides\": {\n \"nodeSelector\": {},\n \"tolerations\": [\n {\n \"key\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": \"<string>\",\n \"effect\": \"<string>\"\n }\n ],\n \"resources\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"annotations\": {},\n \"labels\": {},\n \"env\": {},\n \"args\": [\n \"<string>\"\n ],\n \"scaling\": {\n \"replicas\": 123,\n \"autoscalingEnabled\": true,\n \"minReplicas\": 123,\n \"maxReplicas\": 123\n },\n \"cpuRuntimeClass\": \"<string>\",\n \"gpuRuntimeClass\": \"<string>\",\n \"affinity\": {}\n },\n \"allowPrivilegedProfileAnnotations\": true,\n \"enforceResourceLimits\": true,\n \"volumes\": {\n \"enabled\": true,\n \"csiDriverAllowlist\": [\n \"<string>\"\n ]\n },\n \"tenantMetrics\": {\n \"enabled\": true,\n \"image\": \"<string>\"\n },\n \"dataPlane\": {\n \"disabled\": {},\n \"clusterIp\": {\n \"annotations\": {}\n },\n \"loadBalancer\": {\n \"loadBalancerClass\": \"<string>\",\n \"annotations\": {},\n \"sourceRanges\": [\n \"<string>\"\n ],\n \"hostname\": \"<string>\"\n }\n },\n \"imagePull\": {}\n },\n \"profileBindings\": [\n {\n \"profileTemplateId\": \"<string>\",\n \"profileName\": \"<string>\",\n \"isDefault\": true,\n \"overrides\": {\n \"containerImage\": \"<string>\",\n \"runtimeClass\": \"<string>\",\n \"resourceDefaults\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"instanceTypes\": [\n \"<string>\"\n ],\n \"nodeSelector\": {},\n \"tags\": [\n \"<string>\"\n ],\n \"namespace\": {\n \"staticNamespace\": \"<string>\",\n \"namespacePrefix\": \"<string>\",\n \"autoCreate\": true,\n \"labels\": {},\n \"annotations\": {}\n },\n \"network\": {\n \"egress\": {\n \"defaultMode\": \"<string>\",\n \"modes\": {}\n },\n \"ingress\": {}\n },\n \"podTemplate\": {}\n }\n }\n ],\n \"etag\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.coreweave.com/v1/sandbox/managedRunners")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"identity\": {\n \"runnerId\": \"<string>\",\n \"runnerGroupId\": \"<string>\",\n \"zone\": \"<string>\",\n \"clusterId\": \"<string>\"\n },\n \"policy\": {\n \"displayName\": \"<string>\",\n \"base\": {},\n \"constraints\": {\n \"resources\": {\n \"maxCpu\": \"<string>\",\n \"maxMemory\": \"<string>\",\n \"minCpu\": \"<string>\",\n \"minMemory\": \"<string>\",\n \"defaultCpu\": \"<string>\",\n \"defaultMemory\": \"<string>\",\n \"maxGpuCount\": \"<string>\",\n \"cpuCeiling\": \"<string>\",\n \"memoryCeiling\": \"<string>\",\n \"requireLimits\": true\n },\n \"image\": {\n \"allowedRegistries\": [\n \"<string>\"\n ],\n \"allowedImages\": [\n \"<string>\"\n ]\n },\n \"network\": {\n \"allowedEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"defaultEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"denyHttpsHostnameRules\": true,\n \"allowedIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ],\n \"defaultIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ]\n },\n \"security\": {\n \"allowPrivileged\": true,\n \"allowedCapabilities\": [\n \"<string>\"\n ],\n \"allowedSeccompProfiles\": [\n \"<string>\"\n ],\n \"allowedRuntimeClasses\": [\n \"<string>\"\n ],\n \"defaultCpuRuntimeClass\": \"<string>\",\n \"defaultGpuRuntimeClass\": \"<string>\",\n \"runtimeClassMappings\": [\n {\n \"kubernetesRuntimeClassName\": \"<string>\",\n \"nodeDefault\": true\n }\n ]\n },\n \"instance\": {\n \"allowedInstanceTypes\": [\n \"<string>\"\n ]\n },\n \"lifecycle\": {\n \"defaultLifetimeSeconds\": 123\n },\n \"metadata\": {\n \"deniedAnnotationPrefixes\": [\n \"<string>\"\n ],\n \"maxAnnotationCount\": 123\n },\n \"volumes\": {\n \"allowedMedia\": [],\n \"maxSize\": \"<string>\"\n }\n },\n \"controlPlaneAccess\": {\n \"sourceIpAllowlist\": {\n \"cidrs\": [\n \"<string>\"\n ]\n }\n }\n },\n \"displayName\": \"<string>\",\n \"spec\": {\n \"maintenancePolicy\": {\n \"windows\": [\n {\n \"cron\": \"<string>\",\n \"durationSeconds\": 123\n }\n ],\n \"exclusions\": [\n {\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"reason\": \"<string>\"\n }\n ]\n },\n \"overrides\": {\n \"nodeSelector\": {},\n \"tolerations\": [\n {\n \"key\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": \"<string>\",\n \"effect\": \"<string>\"\n }\n ],\n \"resources\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"annotations\": {},\n \"labels\": {},\n \"env\": {},\n \"args\": [\n \"<string>\"\n ],\n \"scaling\": {\n \"replicas\": 123,\n \"autoscalingEnabled\": true,\n \"minReplicas\": 123,\n \"maxReplicas\": 123\n },\n \"cpuRuntimeClass\": \"<string>\",\n \"gpuRuntimeClass\": \"<string>\",\n \"affinity\": {}\n },\n \"allowPrivilegedProfileAnnotations\": true,\n \"enforceResourceLimits\": true,\n \"volumes\": {\n \"enabled\": true,\n \"csiDriverAllowlist\": [\n \"<string>\"\n ]\n },\n \"tenantMetrics\": {\n \"enabled\": true,\n \"image\": \"<string>\"\n },\n \"dataPlane\": {\n \"disabled\": {},\n \"clusterIp\": {\n \"annotations\": {}\n },\n \"loadBalancer\": {\n \"loadBalancerClass\": \"<string>\",\n \"annotations\": {},\n \"sourceRanges\": [\n \"<string>\"\n ],\n \"hostname\": \"<string>\"\n }\n },\n \"imagePull\": {}\n },\n \"profileBindings\": [\n {\n \"profileTemplateId\": \"<string>\",\n \"profileName\": \"<string>\",\n \"isDefault\": true,\n \"overrides\": {\n \"containerImage\": \"<string>\",\n \"runtimeClass\": \"<string>\",\n \"resourceDefaults\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"instanceTypes\": [\n \"<string>\"\n ],\n \"nodeSelector\": {},\n \"tags\": [\n \"<string>\"\n ],\n \"namespace\": {\n \"staticNamespace\": \"<string>\",\n \"namespacePrefix\": \"<string>\",\n \"autoCreate\": true,\n \"labels\": {},\n \"annotations\": {}\n },\n \"network\": {\n \"egress\": {\n \"defaultMode\": \"<string>\",\n \"modes\": {}\n },\n \"ingress\": {}\n },\n \"podTemplate\": {}\n }\n }\n ],\n \"etag\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coreweave.com/v1/sandbox/managedRunners")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identity\": {\n \"runnerId\": \"<string>\",\n \"runnerGroupId\": \"<string>\",\n \"zone\": \"<string>\",\n \"clusterId\": \"<string>\"\n },\n \"policy\": {\n \"displayName\": \"<string>\",\n \"base\": {},\n \"constraints\": {\n \"resources\": {\n \"maxCpu\": \"<string>\",\n \"maxMemory\": \"<string>\",\n \"minCpu\": \"<string>\",\n \"minMemory\": \"<string>\",\n \"defaultCpu\": \"<string>\",\n \"defaultMemory\": \"<string>\",\n \"maxGpuCount\": \"<string>\",\n \"cpuCeiling\": \"<string>\",\n \"memoryCeiling\": \"<string>\",\n \"requireLimits\": true\n },\n \"image\": {\n \"allowedRegistries\": [\n \"<string>\"\n ],\n \"allowedImages\": [\n \"<string>\"\n ]\n },\n \"network\": {\n \"allowedEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"defaultEgress\": [\n {\n \"httpsHostname\": \"<string>\",\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ],\n \"httpsHostnameExcept\": [\n \"<string>\"\n ]\n }\n ],\n \"denyHttpsHostnameRules\": true,\n \"allowedIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ],\n \"defaultIngress\": [\n {\n \"any\": true,\n \"ports\": [\n {\n \"port\": 123,\n \"protocol\": \"<string>\",\n \"endPort\": 123\n }\n ]\n }\n ]\n },\n \"security\": {\n \"allowPrivileged\": true,\n \"allowedCapabilities\": [\n \"<string>\"\n ],\n \"allowedSeccompProfiles\": [\n \"<string>\"\n ],\n \"allowedRuntimeClasses\": [\n \"<string>\"\n ],\n \"defaultCpuRuntimeClass\": \"<string>\",\n \"defaultGpuRuntimeClass\": \"<string>\",\n \"runtimeClassMappings\": [\n {\n \"kubernetesRuntimeClassName\": \"<string>\",\n \"nodeDefault\": true\n }\n ]\n },\n \"instance\": {\n \"allowedInstanceTypes\": [\n \"<string>\"\n ]\n },\n \"lifecycle\": {\n \"defaultLifetimeSeconds\": 123\n },\n \"metadata\": {\n \"deniedAnnotationPrefixes\": [\n \"<string>\"\n ],\n \"maxAnnotationCount\": 123\n },\n \"volumes\": {\n \"allowedMedia\": [],\n \"maxSize\": \"<string>\"\n }\n },\n \"controlPlaneAccess\": {\n \"sourceIpAllowlist\": {\n \"cidrs\": [\n \"<string>\"\n ]\n }\n }\n },\n \"displayName\": \"<string>\",\n \"spec\": {\n \"maintenancePolicy\": {\n \"windows\": [\n {\n \"cron\": \"<string>\",\n \"durationSeconds\": 123\n }\n ],\n \"exclusions\": [\n {\n \"startTime\": \"2023-11-07T05:31:56Z\",\n \"endTime\": \"2023-11-07T05:31:56Z\",\n \"reason\": \"<string>\"\n }\n ]\n },\n \"overrides\": {\n \"nodeSelector\": {},\n \"tolerations\": [\n {\n \"key\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": \"<string>\",\n \"effect\": \"<string>\"\n }\n ],\n \"resources\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"annotations\": {},\n \"labels\": {},\n \"env\": {},\n \"args\": [\n \"<string>\"\n ],\n \"scaling\": {\n \"replicas\": 123,\n \"autoscalingEnabled\": true,\n \"minReplicas\": 123,\n \"maxReplicas\": 123\n },\n \"cpuRuntimeClass\": \"<string>\",\n \"gpuRuntimeClass\": \"<string>\",\n \"affinity\": {}\n },\n \"allowPrivilegedProfileAnnotations\": true,\n \"enforceResourceLimits\": true,\n \"volumes\": {\n \"enabled\": true,\n \"csiDriverAllowlist\": [\n \"<string>\"\n ]\n },\n \"tenantMetrics\": {\n \"enabled\": true,\n \"image\": \"<string>\"\n },\n \"dataPlane\": {\n \"disabled\": {},\n \"clusterIp\": {\n \"annotations\": {}\n },\n \"loadBalancer\": {\n \"loadBalancerClass\": \"<string>\",\n \"annotations\": {},\n \"sourceRanges\": [\n \"<string>\"\n ],\n \"hostname\": \"<string>\"\n }\n },\n \"imagePull\": {}\n },\n \"profileBindings\": [\n {\n \"profileTemplateId\": \"<string>\",\n \"profileName\": \"<string>\",\n \"isDefault\": true,\n \"overrides\": {\n \"containerImage\": \"<string>\",\n \"runtimeClass\": \"<string>\",\n \"resourceDefaults\": {\n \"cpuRequest\": \"<string>\",\n \"memoryRequest\": \"<string>\",\n \"cpuLimit\": \"<string>\",\n \"memoryLimit\": \"<string>\"\n },\n \"instanceTypes\": [\n \"<string>\"\n ],\n \"nodeSelector\": {},\n \"tags\": [\n \"<string>\"\n ],\n \"namespace\": {\n \"staticNamespace\": \"<string>\",\n \"namespacePrefix\": \"<string>\",\n \"autoCreate\": true,\n \"labels\": {},\n \"annotations\": {}\n },\n \"network\": {\n \"egress\": {\n \"defaultMode\": \"<string>\",\n \"modes\": {}\n },\n \"ingress\": {}\n },\n \"podTemplate\": {}\n }\n }\n ],\n \"etag\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"identity": {
"runnerId": "<string>",
"runnerGroupId": "<string>",
"zone": "<string>",
"clusterId": "<string>",
"clusterName": "<string>"
},
"policy": {
"displayName": "<string>",
"base": {},
"constraints": {
"resources": {
"maxCpu": "<string>",
"maxMemory": "<string>",
"minCpu": "<string>",
"minMemory": "<string>",
"defaultCpu": "<string>",
"defaultMemory": "<string>",
"maxGpuCount": "<string>",
"cpuCeiling": "<string>",
"memoryCeiling": "<string>",
"requireLimits": true
},
"image": {
"allowedRegistries": [
"<string>"
],
"allowedImages": [
"<string>"
]
},
"network": {
"allowedEgress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"httpsHostname": "<string>",
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"selector": {
"podLabels": {},
"namespaceLabels": {}
},
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"defaultEgress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"httpsHostname": "<string>",
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"selector": {
"podLabels": {},
"namespaceLabels": {}
},
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
],
"httpsHostnameExcept": [
"<string>"
]
}
],
"denyHttpsHostnameRules": true,
"allowedIngress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"defaultIngress": [
{
"cidr": {
"cidr": "<string>",
"except": [
"<string>"
]
},
"tenant": "TENANT_SCOPE_UNSPECIFIED",
"any": true,
"ports": [
{
"port": 123,
"protocol": "<string>",
"endPort": 123
}
]
}
],
"dnsEgress": "DNS_EGRESS_MODE_UNSPECIFIED"
},
"security": {
"allowPrivileged": true,
"allowedCapabilities": [
"<string>"
],
"allowedSeccompProfiles": [
"<string>"
],
"allowedRuntimeClasses": [
"<string>"
],
"defaultCpuRuntimeClass": "<string>",
"defaultGpuRuntimeClass": "<string>",
"runtimeClassMappings": [
{
"runtimeClass": "RUNTIME_CLASS_UNSPECIFIED",
"kubernetesRuntimeClassName": "<string>",
"nodeDefault": true
}
]
},
"instance": {
"allowedInstanceTypes": [
"<string>"
]
},
"lifecycle": {
"defaultLifetimeSeconds": 123
},
"metadata": {
"deniedAnnotationPrefixes": [
"<string>"
],
"maxAnnotationCount": 123
},
"volumes": {
"allowedMedia": [
"STORAGE_MEDIUM_UNSPECIFIED"
],
"maxSize": "<string>"
}
},
"controlPlaneAccess": {
"sourceIpAllowlist": {
"cidrs": [
"<string>"
]
}
}
},
"displayName": "<string>",
"spec": {
"releaseChannel": "RELEASE_CHANNEL_UNSPECIFIED",
"maintenancePolicy": {
"windows": [
{
"cron": "<string>",
"durationSeconds": 123
}
],
"exclusions": [
{
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"reason": "<string>"
}
]
},
"overrides": {
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"annotations": {},
"labels": {},
"env": {},
"args": [
"<string>"
],
"scaling": {
"replicas": 123,
"autoscalingEnabled": true,
"minReplicas": 123,
"maxReplicas": 123
},
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"affinity": {}
},
"allowPrivilegedProfileAnnotations": true,
"enforceResourceLimits": true,
"volumes": {
"enabled": true,
"csiDriverAllowlist": [
"<string>"
]
},
"tenantMetrics": {
"enabled": true,
"image": "<string>"
},
"dataPlane": {
"disabled": {},
"clusterIp": {
"annotations": {}
},
"loadBalancer": {
"scope": "RUNNER_DATA_PLANE_SERVICE_SCOPE_UNSPECIFIED",
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": [
"<string>"
],
"externalTrafficPolicy": "RUNNER_DATA_PLANE_EXTERNAL_TRAFFIC_POLICY_UNSPECIFIED",
"hostname": "<string>"
},
"custom": {
"advertisedUri": "<string>",
"serviceAnnotations": {}
}
},
"imagePull": {
"policy": "SANDBOX_IMAGE_PULL_POLICY_UNSPECIFIED"
}
},
"installStatus": "RUNNER_INSTALL_STATUS_UNSPECIFIED",
"connectionStatus": "RUNNER_CONNECTION_STATUS_UNSPECIFIED",
"activeConfigVersion": "<string>",
"activeProfileSpecVersion": "<string>",
"activeRevision": 123,
"targetRevision": 123,
"deploymentSpec": {
"image": "<string>",
"env": {},
"args": [
"<string>"
],
"resources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"nodeSelector": {},
"tolerations": [
{
"key": "<string>",
"operator": "<string>",
"value": "<string>",
"effect": "<string>"
}
],
"scaling": {
"replicas": 123,
"autoscalingEnabled": true,
"minReplicas": 123,
"maxReplicas": 123
},
"annotations": {},
"labels": {},
"serviceAccount": "<string>",
"extraVolumes": [
{
"mountPath": "<string>",
"name": "<string>",
"readOnly": true,
"subPath": "<string>",
"configMapName": "<string>",
"secretName": "<string>",
"emptyDir": true
}
],
"readinessProbe": {
"path": "<string>",
"port": 123,
"initialDelaySeconds": 123,
"periodSeconds": 123,
"failureThreshold": 123,
"timeoutSeconds": 123
},
"livenessProbe": {
"path": "<string>",
"port": 123,
"initialDelaySeconds": 123,
"periodSeconds": 123,
"failureThreshold": 123,
"timeoutSeconds": 123
},
"initResources": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"imagePullPolicy": "<string>",
"gatewayServer": "<string>",
"cpuRuntimeClass": "<string>",
"gpuRuntimeClass": "<string>",
"endpointRoutes": {
"https": {
"enabled": true,
"gateway": {
"name": "<string>",
"namespace": "<string>",
"listener": "<string>"
},
"provider": "<string>"
},
"tlsPassthrough": {
"enabled": true,
"gateway": {
"name": "<string>",
"namespace": "<string>",
"listener": "<string>"
},
"provider": "<string>"
}
},
"dataPlane": {
"disabled": {},
"clusterIp": {
"annotations": {}
},
"loadBalancer": {
"scope": "RUNNER_DATA_PLANE_SERVICE_SCOPE_UNSPECIFIED",
"loadBalancerClass": "<string>",
"annotations": {},
"sourceRanges": [
"<string>"
],
"externalTrafficPolicy": "RUNNER_DATA_PLANE_EXTERNAL_TRAFFIC_POLICY_UNSPECIFIED",
"hostname": "<string>"
},
"custom": {
"advertisedUri": "<string>",
"serviceAnnotations": {}
}
},
"affinity": {}
},
"updateAvailable": true,
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"lastHeartbeatTime": "2023-11-07T05:31:56Z",
"profileBindings": [
{
"profileTemplateId": "<string>",
"runnerProfileBindingId": "<string>",
"profileName": "<string>",
"isDefault": true,
"overrides": {
"containerImage": "<string>",
"runtimeClass": "<string>",
"resourceDefaults": {
"cpuRequest": "<string>",
"memoryRequest": "<string>",
"cpuLimit": "<string>",
"memoryLimit": "<string>"
},
"instanceTypes": [
"<string>"
],
"nodeSelector": {},
"tags": [
"<string>"
],
"namespace": {
"strategy": "PROFILE_NAMESPACE_STRATEGY_UNSPECIFIED",
"staticNamespace": "<string>",
"namespacePrefix": "<string>",
"autoCreate": true,
"labels": {},
"annotations": {}
},
"network": {
"egress": {
"defaultMode": "<string>",
"modes": {}
},
"ingress": {}
},
"podTemplate": {}
},
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z"
}
],
"installError": {
"reason": "RUNNER_INSTALL_FAILURE_REASON_UNSPECIFIED",
"message": "<string>",
"diagnosticDetail": "<string>",
"remediationHints": [
"<string>"
],
"occurredTime": "2023-11-07T05:31:56Z"
},
"rolloutInProgress": true,
"etag": "<string>",
"dataPlaneStatus": {
"state": "RUNNER_DATA_PLANE_STATE_UNSPECIFIED",
"endpointId": "<string>",
"advertisedUri": "<string>",
"protocols": [
"<string>"
],
"serverCertificateExpiresAt": "2023-11-07T05:31:56Z",
"message": "<string>",
"lastTransitionTime": "2023-11-07T05:31:56Z"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
CoreWeave API access token sent as a bearer token.
Query Parameters
Optional idempotency token, at most 128 UTF-8 bytes. Reusing a token returns the same runner. A different request body or a deleted original runner returns ALREADY_EXISTS.
Body
ManagedRunner is an admin-owned runner deployment.
Core runner identity. Required on create; immutable identity fields cannot be changed afterward.
Show child attributes
Show child attributes
The policy governing sandboxes on this runner. v1 managed-runner creation requires an explicit policy. An empty policy supplies no base defaults or explicit constraints. Platform safety gates still apply, and an absent runtime-class allowlist permits no concrete runtimeClass pin.
Show child attributes
Show child attributes
Human-readable name for the runner, at most 256 characters.
Desired managed-runner configuration.
Show child attributes
Show child attributes
Legacy profile bindings. Not accepted by v1 managed-runner writes; configure policy instead.
Show child attributes
Show child attributes
Opaque revision token for policy updates. Clients must send the value returned by GetManagedRunner when updating policy. A stale value causes FAILED_PRECONDITION and no mutation is applied.
Response
OK
ManagedRunner is an admin-owned runner deployment.
Core runner identity. Required on create; immutable identity fields cannot be changed afterward.
Show child attributes
Show child attributes
The policy governing sandboxes on this runner. v1 managed-runner creation requires an explicit policy. An empty policy supplies no base defaults or explicit constraints. Platform safety gates still apply, and an absent runtime-class allowlist permits no concrete runtimeClass pin.
Show child attributes
Show child attributes
Human-readable name for the runner, at most 256 characters.
Desired managed-runner configuration.
Show child attributes
Show child attributes
Current installation status. RUNNER_INSTALL_STATUS_UNSPECIFIED means no installation status is specified.
RUNNER_INSTALL_STATUS_UNSPECIFIED, RUNNER_INSTALL_STATUS_PENDING, RUNNER_INSTALL_STATUS_PROVISIONING, RUNNER_INSTALL_STATUS_READY, RUNNER_INSTALL_STATUS_FAILED, RUNNER_INSTALL_STATUS_DELETING Live connection status. RUNNER_CONNECTION_STATUS_UNSPECIFIED means no connection status is specified.
RUNNER_CONNECTION_STATUS_UNSPECIFIED, RUNNER_CONNECTION_STATUS_CONNECTED, RUNNER_CONNECTION_STATUS_DISCONNECTED Active configuration version running on the runner.
Active profile spec version running on the runner.
Active revision number currently running on the runner.
Target revision number that should be rolled out.
Resolved deployment spec for the runner.
Show child attributes
Show child attributes
Whether an update is available on this runner's release channel.
Legacy profile bindings. Not accepted by v1 managed-runner writes; configure policy instead.
Show child attributes
Show child attributes
Populated when install_status == FAILED.
Show child attributes
Show child attributes
True when target_revision is newer than active_revision.
Opaque revision token for policy updates. Clients must send the value returned by GetManagedRunner when updating policy. A stale value causes FAILED_PRECONDITION and no mutation is applied.
Observed direct data-plane endpoint state.
Show child attributes
Show child attributes
Was this page helpful?