Delete A Virtual Machine From A Security Group; Delete A Single Security Group; Delete All Security Groups Under A Base Node - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

Delete a Virtual Machine from a Security Group

You can delete a virtual machine from a Security Group by specifying the node in which it resides.
Example 6-17. Deleting a Virtual Machine from a Security Group
Request:
DELETE <vshield_manager-uri>/api/1.0/global/securityGroups/<base-node-moid>/nodes/<nic-id>
Example:
DELETE /api/1.0/global//securityGroups/datacenter-2/groups/secgroup-6/nodes/
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127

Delete a Single Security Group

You can delete a single Security Group under a base node by specifying the Security Group ID.
Example 6-18. Deleting a Single Security Group
Request:
DELETE <vshield_manager-uri>/api/1.0/global/securityGroups/<base-node-moid>/
Example:
DELETE /api/1.0/global/securityGroups/datacenter-2/groups/secgroup-1 HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127

Delete All Security Groups under a Base Node

You can delete all security groups under a base node. Firewall rules related to deleted security groups are also 
deleted.
Example 6-19. Deleting All Security Groups under a Base Node
Request:
DELETE <vshield_manager-uri>/api/1.0/global/securityGroups/<base-node-moid>/groups
Example:
DELETE /api/1.0/global/securityGroups/datacenter-2/groups/ HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
VMware, Inc.
500e17ca-58bc-25d3-f001-9cf6515d6466.003 HTTP/1.1
groups/<securityGroupId>
Chapter 6 vShield App Management
61

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VSHIELD APP 1.0 - API and is the answer not in the manual?

Questions and answers

Table of Contents