shydow
How can I create a pod with public ip using graphql?
query like this:
mutation {
podFindAndDeployOnDemand(
input: {
name: "basic"
volumeInGb: 0
containerDiskInGb: 100
gpuCount: 1
cloudType: SECURE
gpuTypeId: "NVIDIA RTX 2000 Ada Generation"
templateId: "xxxxx"
}
) {
id
imageName
env
machineId
machine {
podHostId
}
}
}
15 replies
How can I create a pod with public ip using graphql?
{
"data": {
"myself": {
"pods": [
{
"id": "xxxxx",
"name": "basic",
"runtime": {
"uptimeInSeconds": 5,
"ports": [
{
"ip": "xxxxx",
"isIpPublic": false,
"privatePort": 19123,
"publicPort": 60691,
"type": "http"
},
{
"ip": "xxxxx",
"isIpPublic": false,
"privatePort": 3000,
"publicPort": 60693,
"type": "http"
},
{
"ip": "xxxxx",
"isIpPublic": false,
"privatePort": 8888,
"publicPort": 60692,
"type": "http"
}
],
"gpus": [
{
"id": "GPU-xxxxx",
"gpuUtilPercent": 0,
"memoryUtilPercent": 0
}
],
"container": {
"cpuPercent": 26,
"memoryPercent": 0
}
}
}
]
}
}
}
15 replies