
vShield API Programming Guide
94 VMware, Inc.
Example 8-10. Get excluded security groups
Request:
GET https://<vsm-ip>/api/2.0/dlp/policy/excludedsecuritygroups/
Response:
<set>
<basicinfo>
<objectId>securitygroup-1</objectId>
<type>
<typeName>SecurityGroup</typeName>
</type>
<name>included</name>
<revision>2</revision>
<objectTypeName>SecurityGroup</objectTypeName>
<scope>
<id>datacenter-2</id>
<objectTypeName>Datacenter</objectTypeName>
<name>jkiryakoza</name>
</scope>
</basicinfo>
</set>
Configure File Filters
Youcanrestrictthefilesyouwanttoscanbasedonsize,lastmodifieddate,orfileextensions.
Thefollowingfilefiltersareavailable:
sizeLessThanBytes–scanonlyfileswithabytesizelessthanthespecifiednumber.
lastModifiedBefore–scanonlyfilesmodifiedbeforethespecifieddate.Thedatemustbespecifiedin
GMTformat(YYYY‐MM‐DDHH:MM:SS).
lastModifiedAfter–scanonlyfilesmodifiedafterthespecifieddate.Thedatemustbespecifiedin
GMTformat(YYYY‐MM‐DDHH:MM:SS).
extensionsIncluded–BooleanvalueasinTable 8‐1.
ThescanAllFilesparameterdeterminesifallfilesshouldbeinspectedduringascanoperation.This
parameteroverridesallotherparameters,sosetthisparametertofalseifyouareconfiguringafilter.
Example 8-11. Scan only PDF and XLXS files modified after 10/19/2011
Request:
PUT https://<vsm-ip>/api/2.0/dlp/policy/FileFilters
<FileFilters>
<scanAllFiles>false</scanAllFiles>
<lastModifiedAfter>2011-10-19 15:16:04.0 EST</lastModifiedAfter>
<extensionsIncluded>true</extensionsIncluded>
<extensions>pdf,xlsx</extensions>
</FileFilters>
Table 8-2. Included extensions parameter
Value of the extensionsIncluded parameter Result
truefollowedbytheextensionsparameter
containingoneormoreextensions
Onlyfileswiththespecifiedextensionsarescanned
falsefollowedbytheextensionsparameter
containingoneormoreextensions
Allfilesarescannedexceptthosewiththespecifiedextensions.
Commentaires sur ces manuels