/api/space/audit-log-management/audit-logs/{id}

The following operation is supported on this resource:

  • GET - Get a single audit log in Junos Space
GET /audit-logs/{id} Version 1

This API gives complete information about a particular audit log record. It provides the pull through information about the modified object or objects and names responsible for modifications.

.

Sample Usage

GET /audit-logs/{id}


  • Parameters:
    Name Type URI Type Description Required
    id Integer Path   Y
  • Sample Output XML:

    <audit-log uri="/api/space/audit-log-management/audit-logs/589827">
       <userName>super</userName>
       <userIpAddr>172.16.100.2</userIpAddr>
       <description>Job: Device discover scheduled with job id 360448</description>
       <logTime>2011-08-29 11:01:25 IST</logTime>
       <applicationName>REST</applicationName>
       <taskName>POST: /api/space/device-management/discover-devices</taskName>
       <result>202</result>
       <job href="/api/space/job-management/jobs/360448"/>
    </audit-log>

  • Sample Output JSON:

    {
      "audit-log": {
           "@uri": "/api/space/audit-log-management/audit-logs/589827",
           "userName":"super",
           "userIpAddr":"172.16.100.2",
           "description": "Job: Device discover shcheduled with job id 360448",
           "logTime":"2011-08-29 11:01:25 IST",
           "applicationName":"REST",
           "taskName": "POST: /api/space/device-management/discover-devices",
           "result":202,
            "job":{
               "@href": "/api/space/job-management/jobs/360448"}
            }

  • Access Control

    The following capabilities are required to access this API: ReadAuditLogs