List Schedules
curl --request GET \
--url http://localhost/api/schedulesimport requests
url = "http://localhost/api/schedules"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost/api/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/api/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost/api/schedules"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/api/schedules")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/api/schedules")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"type": "schedules",
"attributes": {
"id": 123,
"name": "<string>",
"message": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"scheduled": {
"human": "<string>",
"string": "<string>"
},
"completed": {
"human": "<string>",
"string": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{
"type": "components",
"id": "<string>"
}
]
},
"updates": {
"data": [
{
"type": "updates",
"id": "<string>"
}
]
}
}
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 123,
"from": 123,
"path": "<string>",
"per_page": 123,
"to": 123
},
"included": [
{
"id": "<string>",
"type": "components",
"attributes": {
"id": 123,
"name": "<string>",
"description": "<string>",
"link": "<string>",
"order": 123,
"status": {
"human": "<string>",
"value": "<string>"
},
"enabled": true,
"meta": [
"<unknown>"
],
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
},
"pivot": {
"component_status": {
"human": "<string>",
"value": "<string>"
}
}
},
"relationships": {
"group": {
"data": {
"type": "componentGroups",
"id": "<string>"
}
},
"incidents": {
"data": [
{
"type": "incidents",
"id": "<string>"
}
]
}
}
}
]
}Schedules
List Schedules
GET
/
schedules
List Schedules
curl --request GET \
--url http://localhost/api/schedulesimport requests
url = "http://localhost/api/schedules"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost/api/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://localhost/api/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost/api/schedules"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost/api/schedules")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/api/schedules")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"type": "schedules",
"attributes": {
"id": 123,
"name": "<string>",
"message": "<string>",
"status": {
"human": "<string>",
"value": "<string>"
},
"scheduled": {
"human": "<string>",
"string": "<string>"
},
"completed": {
"human": "<string>",
"string": "<string>"
},
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
}
},
"relationships": {
"components": {
"data": [
{
"type": "components",
"id": "<string>"
}
]
},
"updates": {
"data": [
{
"type": "updates",
"id": "<string>"
}
]
}
}
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"current_page": 123,
"from": 123,
"path": "<string>",
"per_page": 123,
"to": 123
},
"included": [
{
"id": "<string>",
"type": "components",
"attributes": {
"id": 123,
"name": "<string>",
"description": "<string>",
"link": "<string>",
"order": 123,
"status": {
"human": "<string>",
"value": "<string>"
},
"enabled": true,
"meta": [
"<unknown>"
],
"created": {
"human": "<string>",
"string": "<string>"
},
"updated": {
"human": "<string>",
"string": "<string>"
},
"pivot": {
"component_status": {
"human": "<string>",
"value": "<string>"
}
}
},
"relationships": {
"group": {
"data": {
"type": "componentGroups",
"id": "<string>"
}
},
"incidents": {
"data": [
{
"type": "incidents",
"id": "<string>"
}
]
}
}
}
]
}Query Parameters
Available sorts are name, id, scheduled_at, completed_at. You can sort by multiple options by separating them with a comma. To sort in descending order, use - sign in front of the sort, for example: -name.
Available includes are components, componentsCount, componentsExists, components.group, components.groupCount, components.groupExists, updates, updatesCount, updatesExists, user, userCount, userExists. You can include multiple options by separating them with a comma.
How many items to show per page.
Which page to show.
Filter the resources by name.
Filter the resources by status.
Available options:
0, 1, 2 ⌘I