Set Virus Scan on File Upload (v2)
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/v2/config/services/virusscanonfileupload
Request
Supported Media Types: application/json
Table 10-6 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
scanfiles |
Enable/Disable virus scan |
Payload | Yes | None |
Response
Supported Media Types: application/json
Table 10-7 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://<BASE-URL>/interop/rest/v2/config/services/virusscanonfileupload'