Fortinet black logo

Online Help

Post Document Profile List

Post Document Profile List

Description

Return all document profile details of the specified cloud service account.

URL

/api/v1/profile/document/fileList

Method: Post

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCASB
Content-Type application/json String

buId

<Business Unit ID>

Long

The targeted business unit ID on FortiCASB. Business unit ID can be obtained through . Alternatively, it can also be obtained from the REST API Get Resource Map

service

<Salesforce>

String

Cloud service account

roleId

<User ID>

Integer

Login user ID, can be obtained through Get Resource Map.

companyId <Company ID> Integer Company ID of which the business unit is under, can be obtained through Get Resource Map.

Sample Request

Request URL

POST https://www.forticasb.com/api/v1/profile/document/fileList

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

buid: 6384

service: Office365

companyId: 62598

roleid: 36241

Request Body

{

"limit": 1,

"skip": 0,

"filterDataList": [

{

"name": "File Type",

"valueList": []

},

{

"name": "Sensitive Data",

"valueList": [],

"byOthers": false,

"byAll": false

},

{

"name": "Share Type",

"valueList": [],

"byOthers": false,

"byAll": false

}

]

}

Response Variables

Name

Type

Description

filename String The name of the file
fileId String The Id of the file.
service String The cloud service account provider that host the file.

Sample Response

{

"data": {

"datas": [

{

"fileId": "74c3f925-34bc-49da-8b88-d5f5973b1272",

"fileName": "EMD232add3.txt",

"buId": 84,

"serviceId": "fa16a6de-8e28-46fb-a400-7f881ba9bcea",

"companyId": "62598",

"service": "Office365",

"vendorCode": "Office365",

"path": "011220248/EMD232add3.txt",

"lastModifiedUser": "",

"lastModifiedUserName": "",

"docCreatedAt": "2024-01-13T00:02:53.000Z",

"docLastUpdatedAt": "2024-01-13T00:02:53.000Z",

"link": "/download/Office365/users/null/74c3f925-34bc-49da-8b88-d5f5973b1272",

"size": 4224,

"dlp": false,

"exposure": false,

"sharing": false,

"sensitive": false,

"malware": false,

"isLink": false,

"resourceType": "users",

"isDelete": false,

"folder": false,

"location": false,

"root": true,

"states": [

"SCANNING"

],

"processedResult": "Data scan is in progress.",

"pathInfo": {}

}

],

"totalPage": 20202,

"limit": 1,

"skip": 0,

"totalCount": 20202

},

"code": 0,

"msg": "success",

"httpCode": 200

}

Post Document Profile List

Description

Return all document profile details of the specified cloud service account.

URL

/api/v1/profile/document/fileList

Method: Post

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCASB
Content-Type application/json String

buId

<Business Unit ID>

Long

The targeted business unit ID on FortiCASB. Business unit ID can be obtained through . Alternatively, it can also be obtained from the REST API Get Resource Map

service

<Salesforce>

String

Cloud service account

roleId

<User ID>

Integer

Login user ID, can be obtained through Get Resource Map.

companyId <Company ID> Integer Company ID of which the business unit is under, can be obtained through Get Resource Map.

Sample Request

Request URL

POST https://www.forticasb.com/api/v1/profile/document/fileList

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

buid: 6384

service: Office365

companyId: 62598

roleid: 36241

Request Body

{

"limit": 1,

"skip": 0,

"filterDataList": [

{

"name": "File Type",

"valueList": []

},

{

"name": "Sensitive Data",

"valueList": [],

"byOthers": false,

"byAll": false

},

{

"name": "Share Type",

"valueList": [],

"byOthers": false,

"byAll": false

}

]

}

Response Variables

Name

Type

Description

filename String The name of the file
fileId String The Id of the file.
service String The cloud service account provider that host the file.

Sample Response

{

"data": {

"datas": [

{

"fileId": "74c3f925-34bc-49da-8b88-d5f5973b1272",

"fileName": "EMD232add3.txt",

"buId": 84,

"serviceId": "fa16a6de-8e28-46fb-a400-7f881ba9bcea",

"companyId": "62598",

"service": "Office365",

"vendorCode": "Office365",

"path": "011220248/EMD232add3.txt",

"lastModifiedUser": "",

"lastModifiedUserName": "",

"docCreatedAt": "2024-01-13T00:02:53.000Z",

"docLastUpdatedAt": "2024-01-13T00:02:53.000Z",

"link": "/download/Office365/users/null/74c3f925-34bc-49da-8b88-d5f5973b1272",

"size": 4224,

"dlp": false,

"exposure": false,

"sharing": false,

"sensitive": false,

"malware": false,

"isLink": false,

"resourceType": "users",

"isDelete": false,

"folder": false,

"location": false,

"root": true,

"states": [

"SCANNING"

],

"processedResult": "Data scan is in progress.",

"pathInfo": {}

}

],

"totalPage": 20202,

"limit": 1,

"skip": 0,

"totalCount": 20202

},

"code": 0,

"msg": "success",

"httpCode": 200

}