Create and allocate a private network for your service

Create an isolated private network for your services. This is useful for increasing security and managing network traffic more efficiently between your resources.

Headers

Accept Example
Content-Type Example

Body

required
application/json
name string required
action string required
description string

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/private-networks
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/private-networks" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "action": "string",
    "description": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "allocation": {
      "id": 0,
      "client_id": "string",
      "parent_subnet_id": "string",
      "parent_cidr": "string",
      "rack_id": "string",
      "status": "string",
      "metadata": {
        "requestedBy": "string"
      },
      "created_at": "string",
      "updated_at": "string"
    },
    "firstSubnet": {
      "id": 0,
      "allocation_id": 0,
      "subnet_id": "string",
      "cidr": "string",
      "vlan_id": 0,
      "gateway_ip": "string",
      "status": "string",
      "metadata": {
        "parentSubnetId": 0
      },
      "created_at": "string",
      "updated_at": "string"
    }
  }
}
Request Body
{
  "name": "string",
  "action": "string",
  "description": "string"
}