POST /new

Creates a new network object. The created network object's origin will appear in the Web Interface as "from file".

Resource Name: /network_objects/new

Permissions Required:
  • Edit network object
Request Body:

Element

Type

Description

name

String

The network object's name.

type

String

One of the following:

    Host
    Range
    Group
    Abstract
content

For Host: String

The IP Address for the object.

 

For Range: String

The Range or CIDR for the object.

 

For Group: List of ExistingNetworkObject objects and/or NewNetworkObject objects.

The members for the group.

The list of objects can include existing or new network objects. For existing network objects, see ExistingNetworkObject (see ExistingNetworkObject ). For new network objects, add this object within itself.

 

For Abstract: Empty

 

Validation:
  • Existing network object with the same name.
  • Invalid value for custom field.
  • Non-existing member network object.
  • Invalid IP.
  • Invalid range.
  • Invalid CIDR.
  • Invalid content for the type.
Return:

A NetworkObject (see NetworkObject ) object describing the network object that was created.

 

â See also: