Set Virus Scan on File Upload

The Set Virus Scan on File Upload REST API enables/disables the virus scan on a file upload.

This API is version v2.

Required Roles

Service Administrator

REST Resource

PUT /interop/rest/{api_version}/config/services/virusscanonfileupload

Note:

Before using the REST resources, you must understand how to access the REST resources and other important concepts. See Implementation Best Practices for EPM Cloud REST APIs. Using this REST API requires prerequisites. See Prerequisites.

Request

Supported Media Types: application/json

Table 10-8 Request Parameters

Name Description Type Required Default
api_version Specific API version Path Yes None
scanfiles

Enable/Disable virus scan

Payload Yes None

Response

Supported Media Types: application/json

Table 10-9 Response Parameters

Parameters Description
details In case of errors, details are published with the error string
status See Migration Status Codes
links Detailed information about the link
href Links to API call
action The HTTP call type
rel Can be self and/or Job Status. If set to Job Status, you can use the href to get the status of the import operation
data Parameters as key value pairs passed in the request

Example of Response Body

{
       "links": [{
             "rel": "self",
             "href": "<uri>/interop/rest/v2/config/services/virusscanonfileupload",
             "data": null,
             "action": "PUT"
       }],
       "details": "null",
       "status": 0,
       "items": null
}

Sample cURL command

curl -X PUT -s -u '<USERNAME>:<PASSWORD>' -o response.txt -D respHeader.txt -H
'Content-Type: application/json' -d '{"virusscan":"true"}' 'https://<SERVICE_NAME>-
<TENANT_NAME>.<SERVICE_TYPE>.<dcX>.oraclecloud.com/interop/rest/v2/config/services/
virusscanonfileupload'