/api/space/audit-log-management/audit-logs-export

The following operation is supported on this resource:

  • GET - Get all audit logs to export in Junos Space
GET /audit-logs-export Version 1

This API retrieves all audit log entries stored in the database to Export.

.

Sample Usage

GET /audit-logs-export


  • Sample Output XML:
    <audit-logs uri="/api/space/audit-log-management/audit-logs" size="2">
      <audit-log href="/api/space/audit-log-management/audit-logs/262840"
                   uri="/api/space/audit-log-management/audit-logs/262840" key="262840">
        <userName>super</userName>
        <userIpAddr>172.16.100.2</userIpAddr>
        <description>Job: Run Device Discovery Profile.</description>
        <logTime>2011-08-29 10:16:18 IST</logTime>
        <workSpaceName>Devices</workSpaceName>
        <applicationName>Network Management Platform</applicationName>
        <taskName>Login</taskName>
        <result>Job Scheduled</result>
        <jobId>360450</jobId>
        <domainId>32769</domainId>
        <domainName>Global</domainName>
      </audit-log>
    </audit-logs>

  • Sample Output JSON:

    {
      "audit-logs": {
          "@uri": "/api/space/audit-log-management/audit-logs",
          "@size":"2",
          "audit-log":[
              {
                  "@href":"/api/space/audit-log-management/audit-logs/589830",
                  "@uri":"/api/space/audit-log-management/audit-logs/589830",
                  "@key":"589830",
                  "userName":"super",
                  "userIpAddr":"172.16.100.2",
                  "description":"Job: Run Device Discovery Profile.",
                  "workSpaceName":"Devices",
                  "logTime":"2011-08-29 11:09:18 IST",
                  "applicationName":"Network Management Platform",
                  "taskName":"Run Now Device Discovery Profile",
                  "result":"Job Scheduled" ,
                  "jobId":"1081344" ,
                  "domainId":"32769" ,
                  "domainName":"Global"
              }
          ]
      }
    }

  • Access Control

    The following capabilities are required to access this API: ExportAuditLogs