Retrieve all Network Security Groups

View as Markdown

Get all Network Security Groups for Tenant

Org must have a Tenant entity. User must have FORGE_TENANT_ADMIN authorization role.

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://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current ```

Path parameters

orgstringRequired

Query parameters

siteIdstringOptionalformat: "uuid"
Filter By Site ID
statusstringOptional
Filter Network Security Groups by Status
querystringOptional
Search for matches across all Sites. Input will be matched against name, description and status fields
includeRelationenumOptional
Related entity to expand
Allowed values:
pageNumberintegerOptional>=1Defaults to 1
Page number for pagination query
pageSizeintegerOptional1-100
Page size for pagination query
orderByenumOptional
Ordering for pagination query
includeAttachmentStatsbooleanOptional
Include counts for the number objects that have attached the Network Security Group

Response headers

X-Paginationstring
Pagination result in JSON format

Response

OK
idstring
namestring2-256 characters
descriptionstring
siteIdstringformat: "uuid"
tenantIdstringformat: "uuid"
statusenum
Status values for Network Security Group objects
Allowed values:
statusHistorylist of objects
statefulEgressboolean
ruleslist of objects
labelsmap from strings to strings
createddatetime
updateddatetime

Errors

400
Bad Request Error
403
Forbidden Error
412
Precondition Failed Error
500
Internal Server Error
501
Not Implemented Error