R
RunPod2mo ago
Myron

Can't create pod via graphQL endpoint but works manually

I'm trying to create a new pod using a given template and networkvolume. I can do this using the website just fine however when I try to duplicate the exact same settings using the podRentInterruptable graphQL mutation I'm getting a There are no longer any instances available with the request specifications. Please try again later. error. Here is the mutation:
mutation {
podRentInterruptable(
input: {
volumeInGb: 100
containerDiskInGb: 5
cloudType: SECURE
bidPerGpu: 0.2
gpuCount: 1
gpuTypeId: "NVIDIA RTX 4090"
networkVolumeId: "${networkVolumeID}"
templateId: "${templateID}"
}
) {
id
imageName
env
machineId
machine {
podHostId
}
}
}
mutation {
podRentInterruptable(
input: {
volumeInGb: 100
containerDiskInGb: 5
cloudType: SECURE
bidPerGpu: 0.2
gpuCount: 1
gpuTypeId: "NVIDIA RTX 4090"
networkVolumeId: "${networkVolumeID}"
templateId: "${templateID}"
}
) {
id
imageName
env
machineId
machine {
podHostId
}
}
}
This exact same mutation works with the A6000, while I cannot select the A6000 in the UI. Could someone help explain to me what I'm doing wrong? I tried checking the graphQL docs but they're mostly useless.
38 Replies
nerdylive
nerdylive2mo ago
srry my i can't find any reason that wouldn't work if the capacity is up Maybe try asking runpod support from contact button in the website
Myron
Myron2mo ago
Ah, they don't have actual support staff here then? (I appreciate the assist btw)
Marcus
Marcus2mo ago
You have to provide data center id when providing network volume id otherwise it does not work.
Myron
Myron2mo ago
That would be US-OR-1 yeah? As in, just the name of the region, they don't have some specific ID somewhere? If so, no difference sadly
nerdylive
nerdylive2mo ago
They do, but mainly they respond from the website Oh ya try that No I'm not sure if that's the datacenter id I think you have to query somewhere else, but if not then try that first
Myron
Myron2mo ago
US-OR-1 didn't change anything I'll try querying for the datacenters, see what it outputs
Marcus
Marcus2mo ago
Your bid price is also too low, minimum is 0.39
Myron
Myron2mo ago
I even tried 15 haha
Marcus
Marcus2mo ago
$15 ?
Myron
Myron2mo ago
Just to test, yeah, just got the same message
Marcus
Marcus2mo ago
image id may also be required
Myron
Myron2mo ago
Should be in the template no? I just queried and the dataCenterId is 'US-OR-1'
Marcus
Marcus2mo ago
One would think, but probably a bug where you have to provide it
Myron
Myron2mo ago
You're referring to the imageName field yeah? No difference :/
mutation {
podRentInterruptable(
input: {
volumeInGb: 100
containerDiskInGb: 5
cloudType: SECURE
bidPerGpu: 0.5
gpuCount: 1
gpuTypeId: "NVIDIA RTX 4090"
dataCenterId: "US-OR-1"
imageName: "MY_IMAGE"
networkVolumeId: "${networkVolumeID}"
templateId: "${templateID}"
}
) {
id
imageName
env
machineId
machine {
podHostId
}
}
}
mutation {
podRentInterruptable(
input: {
volumeInGb: 100
containerDiskInGb: 5
cloudType: SECURE
bidPerGpu: 0.5
gpuCount: 1
gpuTypeId: "NVIDIA RTX 4090"
dataCenterId: "US-OR-1"
imageName: "MY_IMAGE"
networkVolumeId: "${networkVolumeID}"
templateId: "${templateID}"
}
) {
id
imageName
env
machineId
machine {
podHostId
}
}
}
Marcus
Marcus2mo ago
Try add volume mount path
Want results from more Discord servers?
Add your server