Create Network Security Group
Create a Network Security Group for Tenant.
Org must have a Tenant entity. User must have authorization role with TENANT_ADMIN suffix.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
```
Path parameters
org
Name of the Org
Request
This endpoint expects an object.
name
Name of the Network Security Group
siteId
ID of the Site
description
Description of the Network Security Group
statefulEgress
Egress rules with protocol and destination ports defined but without source ports defined should automatically be made stateful.
rules
Rules that belong to the Network Security Group
labels
User-defined key-value labels for the Network Security Group
Response
Created
id
Unique UUID v4 identifier for the Network Security Group
name
Name of the Network Security Group
description
Description of the Network Security Group
siteId
ID of the Site
tenantId
ID of the Tenant
status
Status of the Network Security Group
statusHistory
Chronological status history for the Network Security Group
statefulEgress
StatefulEgress defines whether a Network Security Group's egress rules will be automatically stateful
rules
Rules that belong to the Network Security Group
ruleCount
Number of rules in the Network Security Group
attachmentStats
Attachment statistics for the Network Security Group. Returned when the includeAttachmentStats query parameter is set to true in retrieval endpoints.
labels
Set of labels/tags for the Network Security Group
created
Date/time when the Network Security Group was created
updated
Date/time when the Network Security Group was last updated
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
412
Precondition Failed Error
500
Internal Server Error
501
Not Implemented Error