Modify a Serverless Template
Hi,
I'm trying to automate docker image deployments. In documentation there is a method to modify serverless template (saveTemplate), but it's weird that I can't for example exclude env from curl request, it throws an error "GRAPHQL_VALIDATION_FAILED".
Is there a way to just modify docker image name and not to touch any other field?
Is there a way to restart endpoints that are using this template? I cannot find definition to get all endpoints or templates.
Cheers!
Mateusz
5 Replies
You may want to try looking at these scripts - 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
there are some things around restarting servers and only thing about updating template is changing amount of workers, which does not solve my problem.
I could create and delete endpoints and templates, but probably it's not a greate solution.
You can set workers to zero and back again with GraphQL.
There isn't really a way around that unfortunately.
bummer, it would be nice to have a little bit better api for CD pipelines. thanks for help!
There is GraphQL API as above.