CASB Multipart Mime Inspection Request Sample:

POST /inspection/v4.0 HTTP/1.1
Host: localhost:8080
User-Agent: Forcepoint_CASB
Accept: */*
Authorization: Bearer <jwt token>
Content-Length: 1106
Content-Type: multipart/form-data; boundary=------------------------4881f7ecd6edc9e8
 
--------------------------4881f7ecd6edc9e8
Content-Disposition: form-data; name="metadata"; filename="casbInspectionRequest.json"
Content-Type: application/json
 
{
    "context": {
        "global_message_id": "1564953753559",
        "client_name": "FORCEPOINT_CASB",
        "data_channel": "CASB_REAL_TIME",
        "activity_type": "UPLOAD",
        "occurred_message_timestamp_utc_ms": 1585657815000,
        "isDeviceManaged": "false"
    },
    "contentDescriptors": [{
        "id": "0",
        "name": "tal1.txt",
        "item_type" : "FILE",
        "size_bytes": 388
    }],
    "source": {
        "user_email_address": "alan@veridinet.onmicrosoft.com",
        "host_ips": ["157.167.3.2"],
        "host_domain": "onmicrosoft.com"
    },
    "destinations": [{
        "destination_type": "CLOUD_APPLICATION",
        "http_request_url_hostname": "veridinet-my.sharepoint.com",
        "http_request_method": "POST",
        "cloud_application_name": "Office365 (1)",
        "cloud_service_name": "Office365",
        "cloud_application_id" : "3576",
        "destination_address_ip" : "13.107.136.9"
    }]
}
--------------------------4881f7ecd6edc9e8
Content-Disposition: form-data; name="0"; filename="tal1.txt"
Content-Type: text/plain
 
catch22 catch22 catch23 
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23
catch22 catch22 catch23