curl --request POST \
--url https://api2.rhombussystems.com/api/export/uptime \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"cameraUuids": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"deviceUuids": [
"AAAAAAAAAAAAAAAAAAAAAA.v0"
],
"endDateTime": "2024-01-31T23:59:59Z",
"startDateTime": "2024-01-01T00:00:00Z"
}
'import requests
url = "https://api2.rhombussystems.com/api/export/uptime"
payload = {
"cameraUuids": ["AAAAAAAAAAAAAAAAAAAAAA"],
"deviceUuids": ["AAAAAAAAAAAAAAAAAAAAAA.v0"],
"endDateTime": "2024-01-31T23:59:59Z",
"startDateTime": "2024-01-01T00:00:00Z"
}
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cameraUuids: ['AAAAAAAAAAAAAAAAAAAAAA'],
deviceUuids: ['AAAAAAAAAAAAAAAAAAAAAA.v0'],
endDateTime: '2024-01-31T23:59:59Z',
startDateTime: '2024-01-01T00:00:00Z'
})
};
fetch('https://api2.rhombussystems.com/api/export/uptime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/export/uptime")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cameraUuids\": [\n \"AAAAAAAAAAAAAAAAAAAAAA\"\n ],\n \"deviceUuids\": [\n \"AAAAAAAAAAAAAAAAAAAAAA.v0\"\n ],\n \"endDateTime\": \"2024-01-31T23:59:59Z\",\n \"startDateTime\": \"2024-01-01T00:00:00Z\"\n}")
.asString();{}Download device uptime reports
Download device uptime reports
curl --request POST \
--url https://api2.rhombussystems.com/api/export/uptime \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"cameraUuids": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"deviceUuids": [
"AAAAAAAAAAAAAAAAAAAAAA.v0"
],
"endDateTime": "2024-01-31T23:59:59Z",
"startDateTime": "2024-01-01T00:00:00Z"
}
'import requests
url = "https://api2.rhombussystems.com/api/export/uptime"
payload = {
"cameraUuids": ["AAAAAAAAAAAAAAAAAAAAAA"],
"deviceUuids": ["AAAAAAAAAAAAAAAAAAAAAA.v0"],
"endDateTime": "2024-01-31T23:59:59Z",
"startDateTime": "2024-01-01T00:00:00Z"
}
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cameraUuids: ['AAAAAAAAAAAAAAAAAAAAAA'],
deviceUuids: ['AAAAAAAAAAAAAAAAAAAAAA.v0'],
endDateTime: '2024-01-31T23:59:59Z',
startDateTime: '2024-01-01T00:00:00Z'
})
};
fetch('https://api2.rhombussystems.com/api/export/uptime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/export/uptime")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cameraUuids\": [\n \"AAAAAAAAAAAAAAAAAAAAAA\"\n ],\n \"deviceUuids\": [\n \"AAAAAAAAAAAAAAAAAAAAAA.v0\"\n ],\n \"endDateTime\": \"2024-01-31T23:59:59Z\",\n \"startDateTime\": \"2024-01-01T00:00:00Z\"\n}")
.asString();{}Authorizations
Your Rhombus API key. Must be accompanied by the x-auth-scheme header set to api-token (or partner-api-token for partner endpoints).
Headers
Authentication scheme identifier. Use api-token for standard API key authentication, partner-api-token for partner API key authentication. Must be paired with the x-auth-apikey header containing your API key.
api-token, api, partner-api-token, partner-api Body
Request object for exporting device uptime reports with configurable time ranges and granularity.
Use deviceUuids instead
base 64 (url-safe) uuid string
"AAAAAAAAAAAAAAAAAAAAAA"
List of device UUIDs to export uptime reports for
RUUID with optional appended facet information
"AAAAAAAAAAAAAAAAAAAAAA.v0"
End date and time for the uptime report
"2024-01-31T23:59:59Z"
Time granularity for the uptime report
NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS Start date and time for the uptime report
"2024-01-01T00:00:00Z"
Response
OK
The response is of type object | null.