A security group is a collection of assets or grouping objects from your vCloud Director inventory

API-URL is a URL of the form https://vcloud.example.com/network.

id is a vCloud Director unique identifier in the form of a UUID, as defined by RFC 4122.

# is a small integer used in an NSX object identifier.

Summary of NSX Security Group Requests

Operation

Request

Request Body

Response

Retrieve all security groups defined in the organization VDC with identifier id.

GET API-URL/services/securitygroup/scope/id

None

list

Retrieve the security group with identifier id:securitygroup-# .

GET API-URL/services/securitygroup/id:securitygroup-#

None

securityGroup

Create a new security group in the organization VDC with identifier id:securitygroup-# . The group has no membership information specified.

POST API-URL/services/securitygroup/id:securitygroup-#

securitygroup

200 OK

Update the security group with identifier id:securitygroup-# . The update specifies no membership information.

PUT API-URL/services/securitygroup/id:securitygroup-#

securitygroup

Delete the security group with identifier id:securitygroup-# .

DELETE API-URL/services/securitygroup/id:securitygroup-#

None

204 No Content

Create a new security group in the organization VDC with identifier id. The group includes membership information.

POST API-URL/network/services/securitygroup/bulk/id

securitygroup

200 OK

Add members to the security group with identifier id:securitygroup-# .

PUT API-URL/network/services/securitygroup/bulk/id:securitygroup-#

securitygroup

Add member with identifier # to the security group with identifier id:securitygroup-# .

PUT API-URL/network/services/securitygroup/# /members/ #

None

Delete member with identifier # from the security group with identifier id:securitygroup-# .

DELETE API-URL/network/services/securitygroup/id:securitygroup-# /members/ #

None

204 No Content