
vShield API Programming Guide
58 VMware, Inc.
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>/
groups/<securityGroupId>
Example:
GET /api/1.0/global/securityGroups/datacenter-2/groups/secgroup-6 HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
Get IP Addresses for the Virtual Machines in a Security Group
YoucangettheIPaddressesforthevirtualmachineswithinaSecurityGroup.
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>/
groups/<securityGroupId>/ipList
Get the Properties from a Virtual Machine
YoucangetthepropertiesofavirtualmachinesothatyoucanusetheNIC-IDtoaddthevirtualmachinetoa
SecurityGroup.See“A d d aVirtualMachinetoaSecurityGroup”onpage 57.
See“VirtualMachineInformationSchema”onpage 66.
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
YoucandeleteavirtualmachinefromaSecurityGroupbyspecifyingthenodeinwhichitresides.
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>/
nodes/<nic-id>
Example:
DELETE /api/1.0/global//securityGroups/datacenter-2/groups/secgroup-6/nodes/
500e17ca-58bc-25d3-f001-9cf6515d6466.003 HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
Komentáře k této Příručce