v1

latestOpenAPI 3.1.02026-07-2676123203.9 KB
network volumes

Create a new network volume

Create a new network volume. Review authentication, request parameters, response fields, and errors for this Runpod API operation.

post/networkvolumes

Request body

dataCenterIdstring required

The Runpod data center ID where the created network volume is located.

namestring required

A user-defined name for the created network volume. The name does not need to be unique.

sizeinteger required

The amount of disk space, in gigabytes (GB), allocated to the created network volume.

Example request

{
  "dataCenterId": "EU-RO-1",
  "name": "my network volume",
  "size": 50
}

Response

Successful operation.

dataCenterIdstring

The Runpod data center ID where a network volume is located.

idstring

A unique string identifying a network volume.

namestring

A user-defined name for a network volume. The name does not need to be unique.

sizeinteger

The amount of disk space, in gigabytes (GB), allocated to a network volume.

Example response

{
  "dataCenterId": "EU-RO-1",
  "id": "agv6w2qcg7",
  "name": "my network volume",
  "size": 50
}