VMware VSHIELD MANAGER 4.1.0 UPDATE 1 - API Manuel d'utilisateur Page 58

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 90
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 57
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
Vue de la page 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 89 90

Commentaires sur ces manuels

Pas de commentaire