Skip to main content

Create new services

Body parameter
[
  {
    "config": {
      "customServiceTypes": [
        {
          "icmpType": [
            {
              "lowerValue": 0,
              "upperValue": 0,
              "value": 0
            }
          ],
          "port": [
            {
              "lowerValue": 0,
              "upperValue": 0,
              "value": 0
            }
          ],
          "protocol": "ICMP"
        }
      ],
      "serviceTypes": [
        "ANY"
      ]
    },
    "description": "string",
    "name": "string",
    "routes": [
      {
        "description": "string",
        "value": "string"
      }
    ],
    "type": "IP_SOURCE"
  }
]

Parameters

Name

In

Type

Required

Description

networkItemId

query

string

true

networkItemId

networkItemType

query

string

true

networkItemType

Responses

Status

Meaning

Description

Schema

200

OK

OK

Inline

201

Created

Entity created

None

400

Bad Request

Bad Request

None

401

Unauthorized

Unauthorized

None

403

Forbidden

Access Forbidden

None

404

Not Found

Not Found

None

406

Not Acceptable

Not Acceptable

None

429

Too Many Requests

Too Many Requests

None

500

Internal Server Error

Internal Server Error

None

[
  {
    "config": {
      "customServiceTypes": [
        {
          "icmpType": [
            {
              "lowerValue": 0,
              "upperValue": 0,
              "value": 0
            }
          ],
          "port": [
            {
              "lowerValue": 0,
              "upperValue": 0,
              "value": 0
            }
          ],
          "protocol": "ICMP"
        }
      ],
      "serviceTypes": [
        "ANY"
      ]
    },
    "description": "string",
    "id": "string",
    "name": "string",
    "networkItemId": "string",
    "networkItemType": "HOST",
    "routes": [
      {
        "description": "string",
        "id": "string",
        "parentRouteId": "string",
        "subnet": "string",
        "type": "IP_V4"
      }
    ],
    "type": "IP_SOURCE"
  }
]