The create command applies a new Firewall rule.

JSON Input Data Format
{
    "name": string,
    "cloudid": string,
    "proto": string,
    "fromip": string,
    "toip": string,
    "port": string
}
name * Specifies the name for the Firewall rule, which can be any name.
cloudid * Specifies the ID of the Sky Node to which the Firewall rule will be applied.
proto * Sets the protocol for the Firewall rule, which can be configured as any, tcp, or udp.
fromip * Sets the From IP address for the Firewall rule, which can be configured as any or a specific valid IP address.
toip * Sets the To IP address for the Firewall rule, which can be configured as any or a specific valid IP address.
port * Sets the port number for the Firewall rule, which can be configured as any or a specific port number within the valid range of 1 to 65535.
* 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 ..."
}