# networks

Manage networks.
Set management node URL:

# GET /networks

# Parameters

  • No parameters...

# Endpoint

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

# Response 200

  • idinteger-
  • ipstring-
  • netmaskinteger-
  • gatewaystring-
  • poolStartstring-
  • poolEndstring-
  • typestring[other, ceph_public, ceph_internal, croit]
  • descriptionstring-

# Example response

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

# POST /networks

# Parameters

  • bodyobject-
    • ipstring-
    • netmaskinteger-
    • gatewaystring-
    • poolStartstring-
    • poolEndstring-
    • typestring[other, ceph_public, ceph_internal, croit]
    • descriptionstring-

# 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

  • idinteger-
  • ipstring-
  • netmaskinteger-
  • gatewaystring-
  • poolStartstring-
  • poolEndstring-
  • typestring[other, ceph_public, ceph_internal, croit]
  • descriptionstring-

# Example response

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

# PUT /networks/{id}

# Parameters

  • bodyobject-
    • ipstring-
    • netmaskinteger-
    • gatewaystring-
    • poolStartstring-
    • poolEndstring-
    • typestring[other, ceph_public, ceph_internal, croit]
    • descriptionstring-
  • idinteger-

# 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

  • idinteger-

# Endpoint

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