Get Virus Scan on File Upload
The Get Virus Scan on File Upload REST API returns true if virus scan on file upload is enabled; otherise, it returns false.
This API is version v2.
Required Roles
Service Administrator
REST Resource
GET
/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-6 Parameters
Name | Description | Type | Required | Default |
---|---|---|---|---|
api_version |
Specific API version | Path | 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 |
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'