Use SDK to create Network Storage Volumes for Serverless Endpoints
Hello 👋 I am using the SDK to create a serverless endpoint. I know I can specify a volume ID when creating the endpoint via SDK, but is there a way to also programmatically create the network storage volume and push data to it (and then attach it to the endpoint)?
6 Replies
Yes you can use the GraphQL API call, sharing curl below, simply set your API key, size, data center, name and that is it. Returns the id of the volume on 200
Response:
Awesome, will test it out. Thanks!
you can use the new api https://rest.runpod.io
https://rest.runpod.io/v1/docs#tag/network-volumes/POST/networkvolumes
We need to have this in main doc site😂 I will add it tmr
Many endpoints missing in docs site
Just updated our doc site, will try to release it today