Get Antivirus
/essbase/rest/v1/filescanner
Returns the current antivirus details. Virus scanning is available to ensure that files loaded into Essbase are virus-free. Antivirus software should have ICAP support.
Request
There are no request parameters for this operation.
Back to TopResponse
- application/json
- application/xml
200 Response
OK
The operation completed successfully.
object
-
enabled:
boolean
true if the virus scanner is enabled; false otherwise.
-
host:
string
Host for the virus scanner ICAP server.
-
port:
integer(int32)
Port for the virus scanner ICAP server.
400 Response
Bad Request
Failed to get the antivirus details.
Examples
The following example shows how to get details about the antivirus scanner set up for Essbase.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Script with cURL Command
call properties.bat
curl -X GET "https://myserver.example.com:9001/essbase/rest/v1/filescanner" -H Accept:application/json -H Content-Type:application/json -u %User%:%Password%
Example of Response Body - Antivirus Not Enabled
The following example shows the contents of a response body in JSON format. This response indicates that the file scanner is not enabled. You can enable it using Set Antivirus endpoint.
{
"enabled" : false,
"host" : "",
"port" : -1
}
Example of Response Body - Antivirus Enabled
The following example shows the contents of a response body in JSON format. This response indicates that the file scanner is enabled.
{
"enabled" : true,
"host" : "https://myserver.example.com",
"port" : 1344
}