Get Virus Scan on File Upload (v2)
The Get Virus Scan on File Upload REST API returns true if virus scan on file upload is enabled; otherise, it returns false.
Required Roles
Service Administrator
REST Resource
GET
/interop/rest/{api_version}/config/services/virusscanonfileupload
Request
Supported Media Types: application/json
Response
Supported Media Types: application/json
Table 10-5 Parameters
| Parameters | Description |
|---|---|
details |
In case of errors, details are published with the error string |
status |
See Migration Status Codes |
items |
Detailed information about the API |
scanfiles |
Indicates whether the virus scan is enabled |
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
{
"details": null,
"links": [{
"rel": "self",
"href": "<uri>/interop/rest/v2/config/services/virusscanonfileupload",
"data": "null",
"action": "GET"
}],
"status": "0",
"items": [{
"scanfiles": "true"
}]
}
Sample cURL command
curl -X GET -s -u '<USERNAME>:<PASSWORD>' -o response.txt -D respHeader.txt -H
'Content-Type: application/json' 'https://<BASE-URL>/interop/rest/v2/config/services/virusscanonfileupload'