/getAuditsForSwagger
1 min
POST
http://1.1.1.1/getAuditsForSwagger
Query Parameters
- start_timestringExampleDescriptionDefault2022-01-01
- end_timestringExampleDescriptionDefault2022-01-31
- account_idstringExampleDescriptionDefault123456
- account_idsstring[]Example
[ "123456", "789012" ]
DescriptionDefault123456,789012 - user_nick_namestringExampleDescriptionDefaultjohn_doe
- user_emailstringExampleDescriptionDefault
- user_idstringExampleDescriptionDefault
- actionstringExampleDescriptionDefaultlogin
- limitintegerExampleDescriptionDefault50
- machinestringExampleDescriptionDefaultwebserver01
Responses
200
- getAuditsForSwaggerResponse
- FunctionDataobject
- Auditsobject[]
- AccountIdstringExampleDescriptionDefault1
- ActionstringExampleDescriptionDefaultSend
- DescriptionstringExampleDescriptionDefaultStellar sent 100 to GCOBIQ7MK2DUXDTACJXJOLVSDUAQNYHJIORFA4IWL5C545FJWV5NNIZ2 (Account Main Account: MPC)
- MachinestringExampleDescriptionDefaultCOLD
- TimestringExampleDescriptionDefault26-07-2021 17:03:25
- UserIdstringExampleDescriptionDefault
- UserNicknamestringExampleDescriptionDefaultbob bobson
- MetaMetaResponse
- AccessTokenstringExampleDescriptionDefaulta3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6
- DestinationstringExampleDescriptionDefault042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622
- SourcestringExampleDescriptionDefaultdf4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355
- TimestringExampleDescriptionDefault2021-02-14 09:58:52.320
curl
curl --request POST \
--url 'http://1.1.1.1/getAuditsForSwagger?start_time=2022-01-01&end_time=2022-01-31&account_id=123456&account_ids=123456%2C789012&user_nick_name=john_doe&user_email=john.doe%40example.com&user_id=john.doe%40example.com&action=login&limit=50&machine=webserver01' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("http://1.1.1.1/getAuditsForSwagger?start_time=2022-01-01&end_time=2022-01-31&account_id=123456&account_ids=123456,789012&user_nick_name=john_doe&[email protected]&[email protected]&action=login&limit=50&machine=webserver01", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("http://1.1.1.1/getAuditsForSwagger?start_time=2022-01-01&end_time=2022-01-31&account_id=123456&account_ids=123456,789012&user_nick_name=john_doe&[email protected]&[email protected]&action=login&limit=50&machine=webserver01")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "http://1.1.1.1/getAuditsForSwagger?start_time=2022-01-01&end_time=2022-01-31&account_id=123456&account_ids=123456,789012&user_nick_name=john_doe&[email protected]&[email protected]&action=login&limit=50&machine=webserver01"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// success
{
"FunctionData": {
"Audits": [
{
"AccountId": "1",
"Action": "Send",
"Description": "Stellar sent 100 to GCOBIQ7MK2DUXDTACJXJOLVSDUAQNYHJIORFA4IWL5C545FJWV5NNIZ2 (Account Main Account: MPC)",
"Machine": "COLD",
"Time": "26-07-2021 17:03:25",
"UserId": "[email protected]",
"UserNickname": "bob bobson"
}
]
},
"Meta": {
"AccessToken": "a3e816b5bc04302d99da94705ec2309a4a63fe10d6aed3c5f6fc9e7ff27c6be6",
"Destination": "042c671aeb148d9b2bb4918399c4c925f3764248c5ab2d5194ab0f32664132834692699a75e7fafb5af35f183b7d8a68bdc3b3e6ebfaff8ab555b9a3caf8090622",
"Source": "df4b76a23067a9d782d09a7372ed526ec713cf6d771fac4dbdb9610f7af36d570a157eed76986b8e85afde12888d10d10bef461399e490f3d7e4db44cde1b6e355",
"Time": "2021-02-14 09:58:52.320"
}
}- return - Returns a list of all audit entries