auditLogs
List all audit log entries.
/v1/orgs/{orgid}/audit/logs
Usage and Examples
curl -X GET \
-H "Authorization: Bearer [[accessToken]]" \
\
-H "Accept: application/json" \
"https://api.pulse.neat.no/v1/orgs/{orgid}/audit/logs?pageToken=pageToken_example&pageSize=56&from=2024-01-01T10:00:00Z&to=2024-01-02T10:00:00Z"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuditApi;
import java.io.File;
import java.util.*;
public class AuditApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure Bearer access token for authorization: bearerToken
HttpBearerAuth bearerToken = (HttpBearerAuth) defaultClient.getAuthentication("bearerToken");
bearerToken.setBearerToken("BEARER TOKEN");
// Create an instance of the API class
AuditApi apiInstance = new AuditApi();
Date from = 2024-01-01T10:00:00Z; // Date |
Date to = 2024-01-02T10:00:00Z; // Date |
String orgid = orgid_example; // String |
String pageToken = pageToken_example; // String |
Integer pageSize = 56; // Integer |
try {
v1AuditLogsResponse result = apiInstance.auditLogs(from, to, orgid, pageToken, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuditApi#auditLogs");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AuditApi;
public class AuditApiExample {
public static void main(String[] args) {
AuditApi apiInstance = new AuditApi();
Date from = 2024-01-01T10:00:00Z; // Date |
Date to = 2024-01-02T10:00:00Z; // Date |
String orgid = orgid_example; // String |
String pageToken = pageToken_example; // String |
Integer pageSize = 56; // Integer |
try {
v1AuditLogsResponse result = apiInstance.auditLogs(from, to, orgid, pageToken, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuditApi#auditLogs");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure Bearer access token for authorization: bearerToken
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
AuditApi *apiInstance = [[AuditApi alloc] init];
Date *from = 2024-01-01T10:00:00Z; // (default to null)
Date *to = 2024-01-02T10:00:00Z; // (default to null)
String *orgid = orgid_example; // (default to null)
String *pageToken = pageToken_example; // (optional) (default to null)
Integer *pageSize = 56; // (optional) (default to null)
// List all audit log entries.
[apiInstance auditLogsWith:from
to:to
orgid:orgid
pageToken:pageToken
pageSize:pageSize
completionHandler: ^(v1AuditLogsResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var NeatPulseApi = require('neat_pulse_api');
var defaultClient = NeatPulseApi.ApiClient.instance;
// Configure Bearer access token for authorization: bearerToken
var bearerToken = defaultClient.authentications['bearerToken'];
bearerToken.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new NeatPulseApi.AuditApi()
var from = 2024-01-01T10:00:00Z; // {Date}
var to = 2024-01-02T10:00:00Z; // {Date}
var orgid = orgid_example; // {String}
var opts = {
'pageToken': pageToken_example, // {String}
'pageSize': 56 // {Integer}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.auditLogs(from, to, orgid, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class auditLogsExample
{
public void main()
{
// Configure Bearer access token for authorization: bearerToken
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new AuditApi();
var from = 2024-01-01T10:00:00Z; // Date | (default to null)
var to = 2024-01-02T10:00:00Z; // Date | (default to null)
var orgid = orgid_example; // String | (default to null)
var pageToken = pageToken_example; // String | (optional) (default to null)
var pageSize = 56; // Integer | (optional) (default to null)
try {
// List all audit log entries.
v1AuditLogsResponse result = apiInstance.auditLogs(from, to, orgid, pageToken, pageSize);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AuditApi.auditLogs: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer access token for authorization: bearerToken
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuditApi();
$from = 2024-01-01T10:00:00Z; // Date |
$to = 2024-01-02T10:00:00Z; // Date |
$orgid = orgid_example; // String |
$pageToken = pageToken_example; // String |
$pageSize = 56; // Integer |
try {
$result = $api_instance->auditLogs($from, $to, $orgid, $pageToken, $pageSize);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuditApi->auditLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuditApi;
# Configure Bearer access token for authorization: bearerToken
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuditApi->new();
my $from = 2024-01-01T10:00:00Z; # Date |
my $to = 2024-01-02T10:00:00Z; # Date |
my $orgid = orgid_example; # String |
my $pageToken = pageToken_example; # String |
my $pageSize = 56; # Integer |
eval {
my $result = $api_instance->auditLogs(from => $from, to => $to, orgid => $orgid, pageToken => $pageToken, pageSize => $pageSize);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuditApi->auditLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure Bearer access token for authorization: bearerToken
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.AuditApi()
from = 2024-01-01T10:00:00Z # Date | (default to null)
to = 2024-01-02T10:00:00Z # Date | (default to null)
orgid = orgid_example # String | (default to null)
pageToken = pageToken_example # String | (optional) (default to null)
pageSize = 56 # Integer | (optional) (default to null)
try:
# List all audit log entries.
api_response = api_instance.audit_logs(from, to, orgid, pageToken=pageToken, pageSize=pageSize)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuditApi->auditLogs: %s\n" % e)
extern crate AuditApi;
pub fn main() {
let from = 2024-01-01T10:00:00Z; // Date
let to = 2024-01-02T10:00:00Z; // Date
let orgid = orgid_example; // String
let pageToken = pageToken_example; // String
let pageSize = 56; // Integer
let mut context = AuditApi::Context::default();
let result = client.auditLogs(from, to, orgid, pageToken, pageSize, &context).wait();
println!("{:?}", result);
}
| Scopes | |
|---|---|
| Read | Read permissions |
Parameters
Path parameters
| Name | Description |
|---|---|
| orgid * |
String
Required
|
Query parameters
| Name | Description |
|---|---|
| pageToken |
String
|
| pageSize |
Integer
(int32)
|
| from * |
Date
(date-time)
Required
|
| to * |
Date
(date-time)
Required
|