Create Security Group

Create Security Group

In case of an existing security group, the api returns the security group object based on external id or name

Request
URI
POST
https://{api_host}/network-service//api/security-groups
COPY
Request Body

The security group to be found or created

SecurityGroup of type(s) application/json
Required
{
    "internal": false,
    "ipAddressCollection": [
        "string"
    ],
    "machineIdCollection": [
        "string"
    ],
    "name": "string",
    "tenantId": "string",
    "securityGroupTypeId": "string",
    "description": "string",
    "externalId": "string",
    "id": "string",
    "extensionData": {
        "entries": [
            {
                "key": "string"
            }
        ]
    }
}
boolean
internal
Optional

internal

array of string
ipAddressCollection
Optional

ipAddressCollection

array of string
machineIdCollection
Optional

machineIdCollection

string
name
Optional

name

string
tenantId
Optional

tenantId

string
securityGroupTypeId
Optional

securityGroupTypeId

string
description
Optional

description

string
externalId
Optional

externalId

string
id
Optional

id

extensionData
Required

extensionData

Responses
200

successful operation

Returns SecurityGroup of type(s) */*
{
    "internal": false,
    "ipAddressCollection": [
        "string"
    ],
    "machineIdCollection": [
        "string"
    ],
    "name": "string",
    "tenantId": "string",
    "securityGroupTypeId": "string",
    "description": "string",
    "externalId": "string",
    "id": "string",
    "extensionData": {
        "entries": [
            {
                "key": "string"
            }
        ]
    }
}
boolean
internal
Optional

internal

array of string
ipAddressCollection
Optional

ipAddressCollection

array of string
machineIdCollection
Optional

machineIdCollection

string
name
Optional

name

string
tenantId
Optional

tenantId

string
securityGroupTypeId
Optional

securityGroupTypeId

string
description
Optional

description

string
externalId
Optional

externalId

string
id
Optional

id

extensionData
Required

extensionData


201
Operation doesn't return any data structure