Get The List Of All Security Groups Under A Base Node; Get The Details For A Single Security Group Under A Base Node; Get Ip Addresses For The Virtual Machines In A Security Group; Get The Properties From A Virtual Machine - VMware VSHIELD APP 1.0 - API Programming Manual

Vshield api
Table of Contents

Advertisement

vShield API Programming Guide

Get the List of All Security Groups under a Base Node

Example 6-13. Getting the List of All Security Groups under a Base Node
Request:
GET <vshield_manager-uri>/api/1.0/global/securityGroups/<base-node-moid>/groups
Example:
GET /api/1.0/global/securityGroups/datacenter-7/groups HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127

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-moid>/
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-moid>/

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 "Add a Virtual Machine to a Security Group" on page 59.
See "Virtual Machine Information Schema" on page 68.
Example 6-16. Getting the Properties of a Virtual Machine
Request:
GET <vshield_manager-uri>/api/1.0/global/vmInfo/<vm-moid>
Example:
GET /api/1.0/global/vmInfo/vm-570 HTTP/1.1
authorization: Basic YWRtaW46ZGVmYXVsdA==
host: 10.112.196.127
60
groups/<securityGroupId>
groups/<securityGroupId>/ipList
HTTP/1.1
VMware, Inc.

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

Subscribe to Our Youtube Channel

Table of Contents