Audit Log Management API

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

The following operations are supported on this resource:

GET /api/space/audit-log-management/audit-logs/{id} (v1)


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.

.

Access Control

The following capabilities are required to access this API:
"ReadAuditLogs"


Example Usage

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


Parameters

NameTypeURI TypeDescriptionRequired
idIntegerPathThe ID of the audit log record to retrieve. Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.audit-log-management.audit-log+xml;version=1
    application/vnd.net.juniper.space.audit-log-management.audit-log+json;version=1


  • 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 discovery 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 discovery scheduled 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"}
    }
    }