
vShield API Programming Guide
74 VMware, Inc.
</DlpScanStatus>
Start, Pause, Resume, or Stop a Scan Operation
Youcanstartorstopascanoperation.Thescanoperationoptionsareasfollows:
START:Startanewscan.
PAUSE:Pauseastartedscan.
RESUME:Resumeapausedscan.
STOP:Stopanyscan.
Example 8-14. Start, pause, resume, or stop a scan operation
Request:
PUT https://<vsm-ip>/api/2.0/dlp/scanop
<ScanOp>STOP</ScanOp>
Analyzing Results
Onceyoustartadatasecurityscan,vShieldreportstheregulationsthatarebeingviolatedbythefilesinyour
inventory,andtheviolatingfiles.Ifyoufixaviolatingfile(bydeletingthesensitiveinformationfromthefile,
deletingorencryptingthefile,oreditingthepolicy),thefilewill
continuetobedisplayedintheViolatingfiles
sectionuntilthecurrentscancompletes,andanewscanstartsandcompletes.
YoumustbeaSecurityAdministratororAuditortoviewreports.
View the List of Violation Counts
Youcanviewareportthatdisplaystheviolatedregulationswiththenumberofviolationsforeachregulation.
TheviolatingfilesreportrequiresfilteringbynodeID.
Example 8-15. View the list of violated regulations
Request:
GET https://<vsm-ip>/api/2.0/dlp/violations/<context>
Where<context>isthecontextIDofanode(datacenter,portgroup,resourcepool,orvirtualmachine,but
notESXhost).
View the List of Violating Files
Youcanviewareportthatdisplaystheviolatingfilesandtheregulationseachfileviolated.ThisAPIrequires
filteringbycontextnodeID,andreturnsaformattedXMLreportshowingviolatingfiles.
Example 8-16. View the list of violating files
Request:
GET https://<vsm-ip>/api/2.0/dlp/violatingfiles/<context>?pagesize=<i>&startindex=<j>
Where:
<context>isthecontextIDofthenode(datacenter,portgroup,resourcepool,orvirtualmachine,butnot
ESXhost).
pagesizeisthenumberofpagestoview.
Comentarios a estos manuales