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
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
201
Operation doesn't return any data structure
Network Component Operations
POST
Add A list Of security policies To An on-demand security group
POST
Apply To Machine Security Tags
POST
Assign the security group To the specified machine(s)
POST
Create Network
POST
Create Security Group
DELETE
Delete Network
DELETE
Delete Security Group
GET
Get Load Balancer
GET
Get Network
GET
Get Security Group
GET
Get Security Policy
GET
Get Security Tags
GET
List Load Balancers
GET
List Networks
GET
List Security Groups
GET
List Security Groups For Tenant
GET
List Security Policy
GET
List Security Policy For Tenant
GET
List Security Tags
GET
List Security Tags For Tenant
PUT
Update Security Group
PUT
Update Security Policy
PUT
Update Security Tag