POST
/
gpu-instance
/
openapi
/
v1
/
network
/
create
curl --request POST \
  --url https://api.novita.ai/gpu-instance/openapi/v1/network/create \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "clusterId": "<string>",
  "name": "<string>"
}'
{
  "network": [
    {
      "Id": "<string>",
      "user": "<string>",
      "name": "<string>",
      "state": [
        {
          "state": "<string>",
          "error": "<string>"
        }
      ],
      "segment": "<string>",
      "clusterId": "<string>",
      "Addresses": [
        {
          "Id": "<string>",
          "Ip": "<string>"
        }
      ],
      "createTime": "<string>"
    }
  ]
}

Request Headers

Content-Type
string
required

Enum: application/json

Authorization
string
required

Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

clusterId
string
required

Cluster ID. You can obtain this via the List Clusters API. String, length limit: 1-255 characters.

name
string

Name of the VPC network. Customizable. String, length limit: 0-30 characters.

Response

network
object[]
required

VPC network information.