VMware VSHIELD APP 1.0 - API Manuel d'utilisateur Page 26

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 104
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 25
vShield API Programming Guide
26 VMware, Inc.
Add Application to a Scope
Youcancreateanewapplicationonthespecifiedscope.
Example 2-37. Add an application to a scope
Request:
POST https://<vsm-ip>/api/2.0/services/application/scope/<moref>
RequestBody:
<application>
<objectId/>
<type>
<typeName/>
</type>
<description>Some description</description>
<name>TestApplication1</name>
<revision>0</revision>
<objectTypeName/>
<element>
<applicationProtocol>UDP</applicationProtocol>
<value>9,22-31,44</value>
</element>
</application>
ForapplicationProtocol,possiblevaluesare:
TCP
UDP
ORACLE_TNS
FTP
SUN_RPC_TCP
SUN_RPC_UDP
MS_RPC_TCP
MS_RPC_UDP
NBNS_BROADCAST
NBDG_BROADCAST
OnlyTCPandUDPsupportcommaseparatedportnumbersanddashseparatedportranges.Otherprotocols
supportasingleportnumberonly.
Onsuccess,thiscallreturnsastringidentifierforthenewlycreatedapplication,forinstanceApplication-1.
Thelocationheaderinthereplycontainstherelativepathofthe
createdApplicationandcanbeusedfor
furtherGET,PUT,andDELETEcalls.
Get Details of an Application
Youcanretrievedetailsabouttheapplicationspecifiedby<application-id>asreturnedbythecallshown
inExample 237.
Example 2-38. Retrieve details about an application
Request:
GET https://<vsm-ip>/api/2.0/services/application/<application-id>
AnonexistentapplicationIDresultsina404NotFounderror.
Vue de la page 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 103 104

Commentaires sur ces manuels

Pas de commentaire