get
/v2/system/gms_events
Returns GMS events based on parameters provided.
Query parameters
severity
String
Event severity (INFO, SEVERE, and WARNING)
Event severity (INFO, SEVERE, and WARNING)
Allowed values:
INFO
WARNING
SEVERE
Example:
severity_example
user
Integer
ID of the user
ID of the user
Example:
56
startTimestamp
String
Date and time of the event from when it has to be fetched in the format yyyy-mm-ddThh:mm:ssZ
offset
Date and time of the event from when it has to be fetched in the format yyyy-mm-ddThh:mm:ssZ
Example:
startTimestamp_example
endTimestamp
String
Date and time of the event till when it has to be fetched in the format yyyy-mm-ddThh:mm:ssZ
offset
Date and time of the event till when it has to be fetched in the format yyyy-mm-ddThh:mm:ssZ
Example:
endTimestamp_example
category
String
A category the event falls into, such as user, bucket, KMIP and S3 settings
A category the event falls into, such as user, bucket, KMIP and S3 settings
Example:
category_example
eventTypeId
Integer
A unique identifier for a specific type of event
A unique identifier for a specific type of event
Example:
56
pageSize
Integer
Number of events to return per page
Number of events to return per page
Example:
56
pageToken
String
An encoded token for pagination, to be passed as received to fetch the next page.
An encoded token for pagination, to be passed as received to fetch the next page.
Example:
pageToken_example
CLIENT REQUEST
curl -X 'GET'
\
-H
'Accept: application/json'
'/mapi/v2/system/gms_events?severity=severity_example&user=56&startTimestamp=startTimestamp_example&endTimestamp=endTimestamp_example&category=category_example&eventTypeId=56&pageSize=56&pageToken=pageToken_example'
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'Authorization': "Bearer REPLACE_BEARER_TOKEN" }
conn.request("GET", "/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
response = http.request(request)
puts response.read_bodyconst data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE");
xhr.setRequestHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
xhr.send(data);HttpResponse<String> response = Unirest.get("https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE")
.header("Authorization", "Bearer REPLACE_BEARER_TOKEN")
.asString();import Foundation
let headers = ["Authorization": "Bearer REPLACE_BEARER_TOKEN"]
let request = NSMutableURLRequest(url: NSURL(string: "https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer REPLACE_BEARER_TOKEN"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);var client = new RestClient("https://example.com/mapi/v2/system/gms_events?severity=SOME_STRING_VALUE&user=SOME_INTEGER_VALUE&startTimestamp=SOME_STRING_VALUE&endTimestamp=SOME_STRING_VALUE&category=SOME_STRING_VALUE&eventTypeId=SOME_INTEGER_VALUE&pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer REPLACE_BEARER_TOKEN");
IRestResponse response = client.Execute(request);Responses