Search Request
1 min
POST
{{url}}/aioc-rest-web/rest/rap/searchRequest
Path Parameters
- urlstringDefaulturl
Header Parameters
- X-XSRF-TOKENstringDefault{{csrftoken}}
Body Parameters
- bodyobjectDefault{ "dbId": "96f4f5fd-a882-46af-9656-5c8b72b249cb" }
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/rap/searchRequest \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{csrftoken}}' \
--data '"{\r\n \"dbId\": \"96f4f5fd-a882-46af-9656-5c8b72b249cb\"\r\n}"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-xsrf-token", "{{csrftoken}}");
var raw = JSON.stringify("{\r\n \"dbId\": \"96f4f5fd-a882-46af-9656-5c8b72b249cb\"\r\n}");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/rap/searchRequest", 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("{{url}}/aioc-rest-web/rest/rap/searchRequest")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-xsrf-token"] = "{{csrftoken}}"
request.body = JSON.dump("{\r\n \"dbId\": \"96f4f5fd-a882-46af-9656-5c8b72b249cb\"\r\n}")
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "{{url}}/aioc-rest-web/rest/rap/searchRequest"
payload = json.dumps("{\r\n \"dbId\": \"96f4f5fd-a882-46af-9656-5c8b72b249cb\"\r\n}")
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-xsrf-token': '{{csrftoken}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
{
"dbId": "96f4f5fd-a882-46af-9656-5c8b72b249cb",
"timeByDay": null,
"userInfo": [
{
"id": "17edf2f2-2357-4a27-85cd-6e4fc17e75dd",
"requestId": "96f4f5fd-a882-46af-9656-5c8b72b249cb",
"userInfoId": "f8ea68b3-fe96-4965-a295-b9e5ec0b3222",
"userInfoEid": "user-all-001",
"userType": "USER"
}
],
"deviceInfo": [
{
"id": "4fd2cd67-8d56-448b-93d1-bc2234bc53ce",
"requestId": "96f4f5fd-a882-46af-9656-5c8b72b249cb",
"deviceInfoId": "54826eea-f5c1-446f-94ac-fbb9d2685e06",
"deviceInfoEid": "10.20.42.129-Linux1 - 10.20.42.129",
"deviceType": "DEVICE"
},
{
"id": "39282fb3-b11d-43ef-be30-ae987f2296c0",
"requestId": "96f4f5fd-a882-46af-9656-5c8b72b249cb",
"deviceInfoId": "dbcd3354-5fde-4de9-8305-f3ebde5cda29",
"deviceInfoEid": "10.20.42.55-LDAP - 10.20.42.55",
"deviceType": "DEVICE"
}
],
"createdBy": {
"id": "25e53f47-ce66-4df2-9abc-6961dc668264",
"eid": "admin"
},
"startTime": 1739169480000,
"endTime": 1740463200000,
"isSMSEnabled": false,
"alreadyAssignedCheck": false
}