Note
We’ve renamed Microsoft Cloud App Security. It’s now called Microsoft Defender for Cloud Apps. In the coming weeks, we’ll update the screenshots and instructions here and in related pages. For more information about the change, see this announcement. To learn more about the recent renaming of Microsoft security services, see the Microsoft Ignite Security blog.
Note
- This API is not available for Office 365 Cloud App Security.
The Files API provides you with metadata about the files and folders stored in your cloud apps, such as last modification date, ownership, and more.
The following lists the supported requests:
Filters
For information about how filters work, see Filters.
The following table describes the supported filters:
Filter | Type | Operators | Description |
---|---|---|---|
service | integer | eq, neq | Filter files from specified app appID, for example: 11770 |
instance | integer | eq, neq | Filter files from specified instances |
fileType | integer | eq, neq | Filter files with the specified file type. Possible values include:
0: Other |
allowDeleted | boolean | eq | Possible values include:
true: Returns deleted files |
policy | string | cabinetmatchedrulesequals, neq, isset, isnotset | Filter activities related to the specified policies |
filename | string | eq | Filter files by filename |
modifiedDate | timestamp | lte, gte, range, lte_ndays, gte_ndays | Filter files by the date they were last modified |
createdDate | timestamp | lte, gte, range | Filter files by the date they were created |
collaborators.entity | entity pk | eq, neq | Filter files shared with specified entities. Example: [{ "id": "entity-id", "saas": 11161, "inst": 0 }] |
collaborators.domains | string | eq, neq | Filter files shared with specified domains |
collaborators.groups | string | eq, neq | Filter files shared with specified groups |
collaborators.withDomain | string | eq, neq, deq | Filter files shared with specified domains |
owner.entity | entity pk | eq, neq | Filter files owned by specified entities. Example: [{ "id": "entity-id", "saas": 11161, "inst": 0 }] |
owner.orgUnit | string | eq, neq | Filter files with owners from specified organizational units |
sharing | integer | eq, neq | Filter files with the specified sharing levels. Possible values include:
4: Public (Internet) |
fileId | string | eq, neq | Filter files by file ID |
fileLabels | string | eq, neq, isset, isnotset | Filter files containing the specified file labels (tags) IDs |
fileScanLabels | string | eq, neq, isset, isnotset | Filter files containing the specified content inspection warnings (tags) IDs |
extension | string | eq, neq | Filter files by a given file extension |
mimeType | string | eq, neq | Filter files by a given MIME type, must be a single string |
trashed | boolean | eq | Possible values include:
true: Returns only trashed files |
parentFolder | folder | eq, neq | Filter files contained in the specified folders |
folder | boolean | eq | Possible values include:
true: Returns only folders |
quarantined | boolean | eq | Possible values include:
true: Returns only quarantined files |
snapshotLastModifiedDate | timestamp | lte, gte, range | Filter files by the date their snapshot was last modified |
If you run into any problems, we’re here to help. To get assistance or support for your product issue, please open a support ticket.