vShield API Programming GuidevShield 5.0.1vShield App 5.0.1vShield Edge 5.0.1vShield Endpoint 5.0.1This document supports the version of each product
vShield API Programming Guide10 VMware, Inc. Support OfferingsTofindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds,gotohttp:/
vShield API Programming Guide100 VMware, Inc. Example 8-24. Get XML representation of policy used in previous scanRequest:GET https://<vsm-ip>/
VMware, Inc. 101Chapter 8 vShield Data Security Configuration <providerName>Custom Accounts</providerName><description>Custom Accoun
vShield API Programming Guide102 VMware, Inc. credit card numbers, California drivers license numbers, US National Provider Numbers, group insurance n
VMware, Inc. 103Chapter 8 vShield Data Security Configuration <fileName>C:\TruePositives\SocialSecurityNumbersTP1.05.txt</fileName><fil
vShield API Programming Guide104 VMware, Inc. GET https://<vsm-ip>/api/2.0/dlp/violatingfilesascsvGet Violations in Entire InventoryYoucanview
VMware, Inc. 105 TheRESTAPIconfigurationofthevShieldEdgeandvShieldAppvirtualmachinessupportsschemasforinstallationandservicemanagem
vShield API Programming Guide106 VMware, Inc. </xs:element><xs:complexType name="ReleaseInfoType"> <!-
VMware, Inc. 107Appendix <xs:element name="id" type="xs:string" /><xs:element name="name" type="xs:string&
vShield API Programming Guide108 VMware, Inc. <xs:sequence><xs:element name="peerName"><xs:simpleType><xs:restriction b
VMware, Inc. 109Appendix </xs:all></xs:complexType></xs:element><xs:complexType name="InstallStatus"><xs:sequence
VMware, Inc. 11 1VMwarevShield™isasuiteofnetworkedgeandapplication‐awarefirewallsbuilt forVMwarevCenterServerintegration.vShieldin
vShield API Programming Guide110 VMware, Inc. vShield App Configuration SchemaThisschemaconfiguresavShieldAppafterinstallation.<?xml version
VMware, Inc. 111Appendix <xs:attribute name="subProtocolOfTypeValue" type="xs:int" use="optional" /></xs:comple
vShield API Programming Guide112 VMware, Inc. <xs:choice><xs:element name="applicationSetId" type="xs:string" /><xs
VMware, Inc. 113Appendix <xs:complexType name="Layer3FirewallRuleDto"><xs:complexContent><xs:extension base="FirewallRul
vShield API Programming Guide114 VMware, Inc. vShield App SpoofGuard Schema ThefollowingschemadetailsSpoofGuardconfiguration.<?xml version=&qu
VMware, Inc. 115Appendix <xs:element name="contextId" type="xs:string" /><xs:element name="inSync" type="x
vShield API Programming Guide116 VMware, Inc. <xs:element name="VshieldConfiguration"><xs:complexType><xs:choice><xs:el
VMware, Inc. 117Appendix <xs:element minOccurs="0" name="serviceStatsLocation" type="xs:string"/> <!-- Only for
vShield API Programming Guide118 VMware, Inc. <xs:element name="value" type="xs:string" /></xs:sequence></xs:comple
VMware, Inc. 119Appendix </xs:restriction></xs:simpleType></xs:element><xs:element minOccurs="0" name="protocol&qu
vShield API Programming Guide12 VMware, Inc. vShield EdgeAvShieldEdgevirtualapplianceprovidesnetworkedgesecuritytoprotectthevirtualmachin
vShield API Programming Guide120 VMware, Inc. </xs:restriction></xs:simpleType></xs:element><xs:element name="action"&g
VMware, Inc. 121Appendix <xs:pattern value="(infinite|\d{2,}|[1-9])"/></xs:restriction></xs:simpleType></xs:element>
vShield API Programming Guide122 VMware, Inc. <xs:minLength value="1"/><xs:maxLength value="256"/></xs:restriction&
VMware, Inc. 123Appendix </xs:sequence></xs:complexType><xs:complexType name="IpsecVpnTunnelStats"> <!-- Only in Respo
vShield API Programming Guide124 VMware, Inc. <xs:element name="keySize" type="KeySize"/></xs:sequence></xs:complex
VMware, Inc. 125Appendix <xs:element minOccurs="0" maxOccurs="unbounded" name="networkCounting" type="TrafficSta
vShield API Programming Guide126 VMware, Inc. <xs:element name="webLoadBalancerCapability" type="xs:boolean&
VMware, Inc. 127Appendix <xs:pattern value="(((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))(-)(((25[0-5]|2[0-4]\d|
vShield API Programming Guide128 VMware, Inc. </xs:restriction></xs:simpleType><xs:simpleType name="Moid"><xs:restricti
VMware, Inc. 129Appendix Table 9-1. Error Message Status CodesCode Description200 OK Therequestwasvalidandhasbeencompleted.Generally,thisre
VMware, Inc. 13Chapter 1 Overview of VMware vShield <module name="SecurityGroup" baseUri="/api/2.0/services/securitygroup" vers
vShield API Programming Guide130 VMware, Inc.
DData Securityscanning 96EESX host preparation 35FfirewallvShield Appabout 60force syncvShield App 78IinstallationPort Group Isolation 35status 38vShi
vShield Edge 42vShield Endpoint 38, 85uninstalling a vShield 38unregistering a vShield Endpoint SVM 85VvShieldabout 11uninstalling 38vShield Appabout
vShield API Programming Guide14 VMware, Inc. Example 1-2. Determine the API version of a vShield AppGET https://<vsm-ip>/api/versions/app/<d
VMware, Inc. 15Chapter 1 Overview of VMware vShield How REST WorksOnceaURLofsuchanobjectisknowntoaclient,theclientcanuseanHTTPGETre
vShield API Programming Guide16 VMware, Inc. About the REST APIRESTAPIsuseHTTPrequests(oftensentbyscriptorhigh‐levellanguage)asawayofm
VMware, Inc. 17 2ThevShieldManagerrequirescommunicationwithyourvCenterServerandservicessuchasDNSandNTPtoprovidedetailsonyourVMwar
vShield API Programming Guide18 VMware, Inc. <vsmGlobalConfig xmlns="vmware.vshield.edge.2.0"> <vcInfo> <ipAddress>10.
VMware, Inc. 19Chapter 2 vShield Manager Management Example 2-5. Get vShield Manager configurationRequest:GET https://<vsm-ip>/api/2.0/global/c
VMware, Inc.3401 Hillview Ave.Palo Alto, CA 94304www.vmware.com2 VMware, Inc.vShield API Programming Guide You can find the most up-to-date technical
vShield API Programming Guide20 VMware, Inc. Configure vShield Manager Syslog ServerYoucanconfigurevShieldManagertosendlogstoasyslogserver.
VMware, Inc. 21Chapter 2 vShield Manager Management Get vShield Manager Audit LogsYoucangetvShieldManagerauditlogs.Example 2-14. GetvShieldMa
vShield API Programming Guide22 VMware, Inc. GET https://<vsm-ip>/api/2.0/services/usermgmt/user/<userId>Userinformationincludesuserna
VMware, Inc. 23Chapter 2 vShield Manager Management PUT https://<vsm-ip>/api/2.0/services/usermgmt/user/<userId>/enablestate/<value>
vShield API Programming Guide24 VMware, Inc. Role ManagementGet Role for a UserYoucanretrieveinformationabouttheroleassignedtothisuser.Examp
VMware, Inc. 25Chapter 2 vShield Manager Management Get List of Possible RolesYoucanretrievethepossiblerolesinvShieldManager .Example 2-26. G
vShield API Programming Guide26 VMware, Inc. <value>10.112.201.8-10.112.201.14</value> </ipset>The<scope-moref>canbeada
VMware, Inc. 27Chapter 2 vShield Manager Management List MACsets Created on a ScopeYoucanretrievealltheMACsetsthatwerecreatedonthespecified
vShield API Programming Guide28 VMware, Inc. <macset> <objectId /> <type> <typeName /> </type> <description>
VMware, Inc. 29Chapter 2 vShield Manager Management POST https://10.24.128.128/api/2.0/services/securitygroup/datacenter-31<?xml version="1.0&
VMware, Inc. 3 ContentsAboutThisBook 91 OverviewofVMwarevShield 11vShieldComponents 11vShieldManager 11vShieldApp 11vShieldEdge 12vShieldEn
vShield API Programming Guide30 VMware, Inc. </type><name>myvm</name><revision>10</revision><objectTypeName>Virtua
VMware, Inc. 31Chapter 2 vShield Manager Management DELETE https://<vsm-ip>/api/2.0/services/securitygroup/<securitygroup-id>/members/<
vShield API Programming Guide32 VMware, Inc. MS_RPC_TCP MS_RPC_UDP NBNS_BROADCAST NBDG_BROADCASTOnlyTCPandUDPsupportcommaseparatedportnum
VMware, Inc. 33Chapter 2 vShield Manager Management Example 2-50. Delete applicationRequest:DELETE https://<vsm-ip>/api/2.0/services/applicatio
vShield API Programming Guide34 VMware, Inc.
VMware, Inc. 35 3YoucanextendthecapabilitiesofvShieldbyaddingthefollowingservices:vShieldApp,vShieldEndpoint,andvShieldEdge.Youmus
vShield API Programming Guide36 VMware, Inc. YoumustspecifythehostIDofthetargetESXhosttoinstallallservices.See“ESXHostPreparationand
VMware, Inc. 37Chapter 3 ESX Host Preparation for vShield App, vShield Endpoint, and vShield Data Security <VshieldConfiguration><VszInstallP
vShield API Programming Guide38 VMware, Inc. Getting the Installation Status of vShield Services on an ESX HostYoucanretrievetheinstallationorun
VMware, Inc. 39 4AfterESXhostpreparationiscomplete,youcansecureinternalnetworksbyinstallingavShieldEdge.Thischapterincludesthefollo
Title4 VMware, Inc. CreatingIPsetandMACsetContainers 25ListIPsetsCreatedonaScope 25CreateanIPsetonaScope 25GetDetailsofanIPset 26Mod
vShield API Programming Guide40 VMware, Inc. <mtu>1500</mtu> </interface> <interface> <isUplink>
VMware, Inc. 41Chapter 4 vShield Edge Installation <vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0"> <installParams> <o
vShield API Programming Guide42 VMware, Inc. <action>allow</action> <enableLog>false</enableLog> <disabled&
VMware, Inc. 43 5YoucanmanagevShieldEdgeservicesandfirewallpolicieswiththeRESTAPI.YoucaninstallEdge,postanddeleteconfigurations,a
vShield API Programming Guide44 VMware, Inc. Get Capabilities of a vShield EdgeThiscallreturnscapabilitiesofthevShieldEdgeinstalledonthespe
VMware, Inc. 45Chapter 5 vShield Edge Management Ifaserviceconfigurationtagispresent,itmeansreplacetheconfiguration.Ifaserviceconfigura
vShield API Programming Guide46 VMware, Inc. vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0"> <dhcpConfig> <binding>
VMware, Inc. 47Chapter 5 vShield Edge Management Example 5-11. Configure firewallPOST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-
vShield API Programming Guide48 VMware, Inc. Example 5-12. Set firewall policy to allow allPOST https://<vsm-ip>/api/2.0/networks/<internal-
VMware, Inc. 49Chapter 5 vShield Edge Management <disabled>false</disabled> </rule> </firewallConfig></vshieldEdg
VMware, Inc. 5Contents DeleteDHCPConfiguration 46ConfigureFirewall 46ChangeFirewallRuletoAllow 47RevertFirewalltoDefault 48CreateFirewallR
vShield API Programming Guide50 VMware, Inc. Example 5-18. Configure NAT servicePOST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-v
VMware, Inc. 51Chapter 5 vShield Edge Management Configure Load BalancerThevShieldEdgeprovidesloadbalancingforHTTPtraffic.Loadbalancing(up
vShield API Programming Guide52 VMware, Inc. Delete Load Balancer ConfigurationExample 5-23. Delete load balancer configurationPOST https://<vsm-i
VMware, Inc. 53Chapter 5 vShield Edge Management </vshieldEdgeConfig>Configure VPNvShieldEdgeagentssupportsite‐to‐siteIPsecVPNbetweenan
vShield API Programming Guide54 VMware, Inc. The<peerIpAddress>canbeany,oranactualIPaddress.Ifany,thenthissidecanbearesponde
VMware, Inc. 55Chapter 5 vShield Edge Management <department>Engg</department> <city>Pune</city> <state>
vShield API Programming Guide56 VMware, Inc. </vshieldEdgeConfig>6Forthedatapathtowork,youneedtochangethedefaultfirewallpolicytoa
VMware, Inc. 57Chapter 5 vShield Edge Management Example 5-37. Get DHCP statisticsRequest:GET https://<vsm-ip>/api/2.0/networks/<internal-po
vShield API Programming Guide58 VMware, Inc. Get Service StatisticsYoucanretrievethevShieldEdgeservicestatistics.Theseareoftenrequiredfor
VMware, Inc. 59 6YoucanconfigurevShieldAppfirewallrulesandsyslogservicebyusingRESTAPIcalls.Thischapterincludesthefollowingtopics:
Title6 VMware, Inc. ShowPortGroupsthatcanbeMarkedasNamespace 73ShowConfiguredNamespacesinDatacenter 73GettingFlowStatisticDetails 73Get
vShield API Programming Guide60 VMware, Inc. Example 6-1. Retrieve the datacenter stateExample:GET https://<vsm-ip>/api/2.0/app/firewall/datace
VMware, Inc. 61Chapter 6 vShield App Management <context>isthecontextIDofadatacenter,cluster,ordvPortGroup. <L>isthelistin
vShield API Programming Guide62 VMware, Inc. Getconsolidatedconfigurationsforthecontext:GET https://<vsm-ip>/api/2.0/app/firewall/datacente
VMware, Inc. 63Chapter 6 vShield App Management </address><application><protocol>41</protocol></application></destina
vShield API Programming Guide64 VMware, Inc. <address exclude="false"><containerId>domain-c26</containerId></address>
VMware, Inc. 65Chapter 6 vShield App Management <action>allow</action><logged>false</logged><notes></notes><sou
vShield API Programming Guide66 VMware, Inc. </address><application><protocol>1</protocol><protocolName>ICMP</protoco
VMware, Inc. 67Chapter 6 vShield App Management </VshieldAppConfiguration>Example 6-8. Get configuration of only Layer 3 firewall rules:GET htt
vShield API Programming Guide68 VMware, Inc. <containerId>domain-c26</containerId></address><application><applicationSetId&
VMware, Inc. 69Chapter 6 vShield App Management <protocol>2303</protocol><address exclude="false"><containerId>domai
VMware, Inc. 7Contents DataSecurityScanning 96Start,Pause,Resume,orStopaScanOperation 97QueryStatusforaScanOperation 97QueryingScanRes
vShield API Programming Guide70 VMware, Inc. <action>allow</action><logged>false</logged><notes></notes><destin
VMware, Inc. 71Chapter 6 vShield App Management </VshieldAppConfiguration> Get Fail-Safe Mode Configuration for vShield App FirewallExample 6-12
vShield API Programming Guide72 VMware, Inc. Example 6-15. Get SpoofGuard settingsExample:GET https://<vsm-ip>/api/2.0/spoofGuard/<contextID
VMware, Inc. 73Chapter 6 vShield App Management Intheexamplerequestbody,thenamespaceisdefinedasbeingsynonymouswithobjectnetwork-184.Get
vShield API Programming Guide74 VMware, Inc. Get Flow StatisticsYoucanretrieveflowstatisticsforadatacenter,portgroup,virtualmachine,orvNI
VMware, Inc. 75Chapter 6 vShield App Management Queryparametersaredescribedinthetablebelow.Get Flow Meta-DataYoucanretrievethefollowinginf
vShield API Programming Guide76 VMware, Inc. totalflowcountExample 6-24. Get flow meta-data for flow typeExample:GET https://<vsm-ip>/api/
VMware, Inc. 77Chapter 6 vShield App Management Excluding Virtual Machines from vShield App ProtectionYoucanexcludeasetofvirtualmachinesfromv
vShield API Programming Guide78 VMware, Inc. Example 6-27. Delete virtual machine from exclusion listExample:DELETE https://<vsm-ip>/api/2.1/ap
VMware, Inc. 79Chapter 6 vShield App Management Querying vShield App Technical Support LogYoucangenerateanddownloadthediagnosticlogfromavShi
Title8 VMware, Inc.
vShield API Programming Guide80 VMware, Inc.
VMware, Inc. 81 7AvShieldEndpointappliancedeliversanintrospection‐basedantivirussolutionthatusesthehypervisortoscanguestvirtualmachin
vShield API Programming Guide82 VMware, Inc. Foralistofreturnstatuscodes,see“ReturnStatusCodes”onpage 86.Register a VendorYoucanregister
VMware, Inc. 83Chapter 7 vShield Endpoint Management <port>solution_port</port></LocationInfo> Intherequest,<vendor_id>
vShield API Programming Guide84 VMware, Inc. GET https://<vsm-ip>/api/2.0/endpointsecurity/registration/<vendor_id>/solutionsExample 7-8.
VMware, Inc. 85Chapter 7 vShield Endpoint Management </ActivatedSVMs>Intherequest,vendor_idistheVMware‐assignedIDforthevendor,whiles
vShield API Programming Guide86 VMware, Inc. Example 7-15. Unset IP address and portRequest:DELETE https://<vsm-ip>/api/2.0/endpointsecurity/re
VMware, Inc. 87Chapter 7 vShield Endpoint Management <xs:element name="Error"> <xs:complexType> <xs:sequence>
vShield API Programming Guide88 VMware, Inc.
VMware, Inc. 89 8vShieldDataSecurityprovidesvisibilityintosensitivedatastoredwithinyourorganization’svirtualizedandcloudenvironments.B
VMware, Inc. 9 Thismanual,thevShieldAPIProgrammingGuide,describeshowtoinstall,configure,monitor,andmaintaintheVMware®vShield™system
vShield API Programming Guide90 VMware, Inc. Defining a Data Security PolicyInordertodetectsensitivedatainyourenvironment,youmustcreatead
VMware, Inc. 91Chapter 8 vShield Data Security Configuration Example 8-2. Enable a regulationRequest:PUT https://<vsm-ip>/api/2.0/dlp/policy/re
vShield API Programming Guide92 VMware, Inc. Example 8-5. View the list of excludable areasRequest:GET https://<vsm-ip>/api/2.0/dlp/excludablea
VMware, Inc. 93Chapter 8 vShield Data Security Configuration </set>Specify Security Groups to be ScannedToscanasubsetofyourinventory,you
vShield API Programming Guide94 VMware, Inc. Example 8-10. Get excluded security groupsRequest:GET https://<vsm-ip>/api/2.0/dlp/policy/excluded
VMware, Inc. 95Chapter 8 vShield Data Security Configuration Example 8-12. Scan all files except PDF and XLXS filesRequest:PUT https://<vsm-ip>
vShield API Programming Guide96 VMware, Inc. <string>North America</string><string>USA</string></regions><categories&
VMware, Inc. 97Chapter 8 vShield Data Security Configuration Allvirtualmachinesinyourdatacenterarescannedonceduringascan.Ifthepolicyis
vShield API Programming Guide98 VMware, Inc. Get List of Virtual Machines Being Scanned Youcanretrieveinformationaboutthevirtualmachinesbeing
VMware, Inc. 99Chapter 8 vShield Data Security Configuration idisanoptionalparameterwhichlimitsthefilterresultsbytheVCMOIDofadatacen
Kommentare zu diesen Handbüchern