POST /new

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

Resource Name: /network_services/new

Permissions Required:
  • Edit service object
Request Body:

Element

Type

Description

name

String

The service object's name.

content

List of Service objects

The services to include in the object. See Service (see Service ).

custom_fields

List of CustomField objects or empty

The custom fields to include for the object. See CustomField (see CustomField ).

Validation:
  • Existing service object with the same name.
  • Invalid value for custom field.
  • Invalid protocol.
  • Invalid port.
Return:

A NetworkService (see NetworkService ) object describing the service object that was created.

 

â See also: