Skip to main content

Create a new service

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

200

OK

OK

201

Created

Entity created

400

Bad Request

Bad Request

401

Unauthorized

Unauthorized

403

Forbidden

Access Forbidden

404

Not Found

Not Found

406

Not Acceptable

Not Acceptable

429

Too Many Requests

Too Many Requests

500

Internal Server Error

Internal Server Error

{
  "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"
}

To perform this operation, you must be authenticated by means of one of the following methods: OAuth_authorization