# networks

Manage networks.
Set management node URL:

# GET /networks

# Parameters

  • No parameters...

# Endpoint

curl -X GET http://mgmt-node:8080/api/networks

# Response 200

  • idintegeroptional-
  • ipstringoptional-
  • netmaskintegeroptional-
  • gatewaystringoptional-
  • poolStartstringoptional-
  • poolEndstringoptional-
  • typestringoptional[other, ceph_public, ceph_internal, croit]
  • descriptionstringoptional-

# Example response

[
  {
    "id": 0,
    "ip": "string",
    "netmask": 0,
    "gateway": "string",
    "poolStart": "string",
    "poolEnd": "string",
    "type": "other",
    "description": "string"
  }
]

# POST /networks

# Parameters

  • bodyobjectoptional-
    • ipstringoptional-
    • netmaskintegeroptional-
    • gatewaystringoptional-
    • poolStartstringoptional-
    • poolEndstringoptional-
    • typestringoptional[other, ceph_public, ceph_internal, croit]
    • descriptionstringoptional-

# Endpoint

curl -X POST http://mgmt-node:8080/api/networks

# Example body

{
  "ip": "string",
  "netmask": 0,
  "gateway": "string",
  "poolStart": "string",
  "poolEnd": "string",
  "type": "other",
  "description": "string"
}

# Response 200

  • idintegeroptional-
  • ipstringoptional-
  • netmaskintegeroptional-
  • gatewaystringoptional-
  • poolStartstringoptional-
  • poolEndstringoptional-
  • typestringoptional[other, ceph_public, ceph_internal, croit]
  • descriptionstringoptional-

# Example response

{
  "id": 0,
  "ip": "string",
  "netmask": 0,
  "gateway": "string",
  "poolStart": "string",
  "poolEnd": "string",
  "type": "other",
  "description": "string"
}

# PUT /networks/{id}

# Parameters

  • bodyobjectoptional-
    • ipstringoptional-
    • netmaskintegeroptional-
    • gatewaystringoptional-
    • poolStartstringoptional-
    • poolEndstringoptional-
    • typestringoptional[other, ceph_public, ceph_internal, croit]
    • descriptionstringoptional-
  • idintegerpath-

# Endpoint

curl -X PUT http://mgmt-node:8080/api/networks/{id}

# Example body

{
  "ip": "string",
  "netmask": 0,
  "gateway": "string",
  "poolStart": "string",
  "poolEnd": "string",
  "type": "other",
  "description": "string"
}

# DELETE /networks/{id}

# Parameters

  • idintegerpath-

# Endpoint

curl -X DELETE http://mgmt-node:8080/api/networks/{id}