Is it possible to restart the pod using manage Pod GraphQL API?
Is it possible to restart the pod using manage Pod GraphQL API?
4 Replies
Yes, you can stop it and then start it. Here are some examples:
https://github.com/ashleykleynhans/runpod-api
GitHub
GitHub - ashleykleynhans/runpod-api: A collection of Python scripts...
A collection of Python scripts for calling the RunPod GraphQL API - ashleykleynhans/runpod-api
but this will introduce a risc of loosing the pod during the time between stop and start right
when you restart from the webui i will just restart the docker container without stopping the whole thing
however i am wondering how to do this as a api user, since the api https://hapi.runpod.net/v1/pod/${id}/restart seems to not work with the api key auth
Those APIs have different credentials than your normal API key
You have to inspect the console to see how to get it
yes, i was able to fake a restart by doing a edit/update call without changing details, which in return will cause a restart
nodejs example: