
vShield API Programming Guide
82 VMware, Inc.
Foralistofreturnstatuscodes,see“ReturnStatusCodes”onpage 86.
Register a Vendor
Youcanregisterthevendorofanantivirussolution.
Example 7-1. Register a vendor
Request:
POST https://<vsm-ip>/api/2.0/endpointsecurity/registration
RequestBody:
<VendorInfo>
<id>vendor_id</id>
<title>vendor_title</title>
<description>vendor_description</description>
</VendorInfo>
Intherequestbody,vendor_idistheVMware‐assignedIDforthevendor,whilevendor_titleand
vendor_descriptionarevendorprovidedstrings.
Register a Solution
Youcanregisteranantivirussolution.
Example 7-2. Register a solution
Request:
POST https://<vsm-ip>/api/2.0/endpointsecurity/registration/<vendor_id>
RequestBody:
<SolutionInfo>
<altitude>solution_altitude</altitude>
<title>solution_title</title>
<description>solution_description</description>
</SolutionInfo>
Intherequest,<vendor_id>isthepreviouslyregisteredIDforthevendor.
Intherequestbody,solution_altitudeistheVMware‐assignedaltitudeforthesolution,solution_title
andsolution_descriptionarevendorprovidedstrings.See“A l t i t u d e ofaSolution”onpage 82.
Altitude of a Solution
AltitudeisanumberthatVMwareassignstouniquelyidentifythesolution.Thealtitudedescribesthetypeof
solutionandtheorderinwhichthesolutionreceiveseventsrelativetoothersolutionsonthesamehost.
IP Address and Port for a Solution
Youcansetasolution’sIPaddressandportonthevNIChost.
Example 7-3. Set IP address and port
Request:
POST https://<vsm-ip>/api/2.0/endpointsecurity/registration/<vendor_id>/<altitude>/location
RequestBody:
<LocationInfo>
<ip>solution_ip_address</ip>
Commentaires sur ces manuels