The create command provisions a new network on a {ANYNODE}.

JSON Input Data Format
{
    "cloudid": string,
    "name": string,
    "nettype": string,
    "network": string,
    "mask": string
}
cloudid * Specifies the ID of the {ANYNODE} on which the network will be created.
name * Specifies the name for the network. Input rules require that no spaces are allowed.
nettype * Specifies the network type which includes:
  • managed
    Specifies a managed network within the scope of the {ANYNODE} and creates a DHCP server for the network.
  • lan
    Specifies the creation of a network bridge over an existing network device on the {ANYNODE}.
network * Specifies the network IP range. The following rules apply:
  • If the nettype is set to "managed":
    Input the network IP range, such as 16.100.0.0. The network IP range must end with .0.
  • If the nettype is set to "lan":
    Input the * (asterisk) character.
mask * Specifies the network mask number. The following rules apply:
  • If the nettype is set to "managed":
    Enter the network mask, which must be a number between 16 and 30.
  • If the nettype is set to "lan":
    Input the * (asterisk) character.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "The process was successfully completed",
    "id": "V7-49ff499f-xxxx-xxxx-xxxx-b47fxxxx99af"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}