Get Policy Logs

Get Policy Logs

Policy information about each individual event that occurs when a policy is active. When a request is sent to this endpoint with "application/zip" as the desired response content type, this operation is equivalent to "Export all policy logs": Export all policy information about each individual event that occurs when a policy is active.

Request
URI
GET
https://{api_host}/vco/api/policies/{id}/syslogs
COPY
Path Parameters
string
id
Required

id

Query Parameters
integer
maxResult
Optional
Constraints: default: 2147483647

maxResult

string of array
conditions
Optional

conditions


Authentication
This operation uses the following authentication methods.
Responses
200

The request is successful

Returns WsSysLogsList of type(s) application/json
{
    "logs": [
        {
            "severity": "string",
            "userName": "string",
            "origin": "string",
            "short-description": "string",
            "long-description": "string",
            "time-stamp": "string",
            "time-stamp-val": 0
        }
    ]
}
array of object
logs
Optional

logs


401

The user is not authorized

Returns WsSysLogsList of type(s) application/json
"WsSysLogsList Object"
array of object
logs
Optional

logs


404

Can not find a policy with the specified ID or the user does not have 'read' access rights for that policy

Returns WsSysLogsList of type(s) application/json
"WsSysLogsList Object"
array of object
logs
Optional

logs


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/vco/api/policies/{id}/syslogs