VMware VSHIELD APP 1.0.0 UPDATE 1 - API Programming Manual page 58

Vshield api
Hide thumbs Also See for VSHIELD APP 1.0.0 UPDATE 1 - API:
Table of Contents

Advertisement

vShield API Programming Guide
Get the Details for a Single Security Group under a Base Node
Example 6-14. Getting the Details of a Single Security Group
Request:
GET <vshield_manager-uri>/api/1.0/global/securityGroups/<BASE-NODE-MOREF-ID>/
Example:
GET /api/1.0/global/securityGroups/datacenter-2/groups/secgroup-6
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
Get IP Addresses for the Virtual Machines in a Security Group
You can get the IP addresses for the virtual machines within a Security Group.
Example 6-15. Getting the IP Addresses of Virtual Machines in a Security Group
Request:
GET <vshield_manager-uri>/api/1.0/global/securityGroups/<base-node-moref-id>/
Get the Properties from a Virtual Machine
You can get the properties of a virtual machine so that you can use the NIC-ID to add the virtual machine to a
Security Group. See
See
"Virtual Machine Information Schema"
Example 6-16. Getting the Properties of a Virtual Machine
Request:
GET <vshield_manager-uri>/api/1.0/global/vmInfo/<vm-moref-id>
Example:
GET /api/1.0/global/vmInfo/vm-570 HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
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-moref-id>/
Example:
DELETE /api/1.0/global//securityGroups/datacenter-2/groups/secgroup-6/nodes/
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
58
groups/<securityGroupId>
groups/<securityGroupId>/ipList
"Add a Virtual Machine to a Security Group"
nodes/<nic-id>
500e17ca-58bc-25d3-f001-9cf6515d6466.003 HTTP/1.1
on page 57.
on page 66.
HTTP/1.1
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents