Networking

Create a IPv4 network

Creates a new IPv4 network.

post/admin/networking/ipv4

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/networking/ipv4
  • Auth: HTTP basic

Request body

networkstring required

Network

masknumber required

BM

titlestring required

Title

commentstring

Comment

location_idnumber required

Location (id)

network_categorynumber required

Network category (id). You can get it on page "Config / Networking / Network categories"

network_typestring required

Network type. Can be 'rootnet' for RootNet, 'endnet' for EndNet. Default: 'endnet'

type_of_usagestring required

Type of usage. Can be 'pool' for Pool, 'static' for Static, 'management' for Management only. Default: 'management'

parentnumber

Parent network ID

Example request

{
  "network": "10.0.0.0",
  "mask": 24,
  "title": "Aplha",
  "comment": "First network",
  "location_id": 1,
  "network_category": 1,
  "network_type": "endnet",
  "type_of_usage": "pool",
  "parent": 1
}

Response

idnumber

IPv4 network ID

Example response

{
  "id": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.