Retrieve an SLA Rule
Fetch an SLA rule with its targets, pause and alert settings. This endpoint may change or be removed without prior notice.
GET
/
v1
/
sla_rules
/
{uid}
Retrieve an SLA Rule
curl --request GET \
--url https://api.siit.io/v1/sla_rules/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.siit.io/v1/sla_rules/{uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.siit.io/v1/sla_rules/{uid}', 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 => "https://api.siit.io/v1/sla_rules/{uid}",
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 <token>"
],
]);
$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 := "https://api.siit.io/v1/sla_rules/{uid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.siit.io/v1/sla_rules/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/sla_rules/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uid": "<string>",
"name": "<string>",
"business_calendar": "<string>",
"per_priority": true,
"pause_on_waiting": true,
"pause_on_snoozed": true,
"pause_when_pending_approval": true,
"alert_behavior": "at_breach",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"all_first_response_time_enabled": true,
"all_first_response_time_minutes": 1073741823,
"all_first_response_time_unit": "days",
"all_time_to_resolve_enabled": true,
"all_time_to_resolve_minutes": 1073741823,
"all_time_to_resolve_unit": "days",
"low_first_response_time_enabled": true,
"low_first_response_time_minutes": 1073741823,
"low_first_response_time_unit": "days",
"low_time_to_resolve_enabled": true,
"low_time_to_resolve_minutes": 1073741823,
"low_time_to_resolve_unit": "days",
"medium_first_response_time_enabled": true,
"medium_first_response_time_minutes": 1073741823,
"medium_first_response_time_unit": "days",
"medium_time_to_resolve_enabled": true,
"medium_time_to_resolve_minutes": 1073741823,
"medium_time_to_resolve_unit": "days",
"high_first_response_time_enabled": true,
"high_first_response_time_minutes": 1073741823,
"high_first_response_time_unit": "days",
"high_time_to_resolve_enabled": true,
"high_time_to_resolve_minutes": 1073741823,
"high_time_to_resolve_unit": "days",
"urgent_first_response_time_enabled": true,
"urgent_first_response_time_minutes": 1073741823,
"urgent_first_response_time_unit": "days",
"urgent_time_to_resolve_enabled": true,
"urgent_time_to_resolve_minutes": 1073741823,
"urgent_time_to_resolve_unit": "days",
"alert_before_first_response_time_enabled": true,
"alert_before_first_response_time_minutes": 1073741823,
"alert_before_first_response_time_unit": "days",
"alert_before_time_to_resolve_enabled": true,
"alert_before_time_to_resolve_minutes": 1073741823,
"alert_before_time_to_resolve_unit": "days"
}{
"error": "<string>",
"troubleshoot": "<string>"
}Authorizations
Query Parameters
Response
Successful
Retrieve an SLA Rule
curl --request GET \
--url https://api.siit.io/v1/sla_rules/{uid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.siit.io/v1/sla_rules/{uid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.siit.io/v1/sla_rules/{uid}', 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 => "https://api.siit.io/v1/sla_rules/{uid}",
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 <token>"
],
]);
$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 := "https://api.siit.io/v1/sla_rules/{uid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.siit.io/v1/sla_rules/{uid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.siit.io/v1/sla_rules/{uid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uid": "<string>",
"name": "<string>",
"business_calendar": "<string>",
"per_priority": true,
"pause_on_waiting": true,
"pause_on_snoozed": true,
"pause_when_pending_approval": true,
"alert_behavior": "at_breach",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"all_first_response_time_enabled": true,
"all_first_response_time_minutes": 1073741823,
"all_first_response_time_unit": "days",
"all_time_to_resolve_enabled": true,
"all_time_to_resolve_minutes": 1073741823,
"all_time_to_resolve_unit": "days",
"low_first_response_time_enabled": true,
"low_first_response_time_minutes": 1073741823,
"low_first_response_time_unit": "days",
"low_time_to_resolve_enabled": true,
"low_time_to_resolve_minutes": 1073741823,
"low_time_to_resolve_unit": "days",
"medium_first_response_time_enabled": true,
"medium_first_response_time_minutes": 1073741823,
"medium_first_response_time_unit": "days",
"medium_time_to_resolve_enabled": true,
"medium_time_to_resolve_minutes": 1073741823,
"medium_time_to_resolve_unit": "days",
"high_first_response_time_enabled": true,
"high_first_response_time_minutes": 1073741823,
"high_first_response_time_unit": "days",
"high_time_to_resolve_enabled": true,
"high_time_to_resolve_minutes": 1073741823,
"high_time_to_resolve_unit": "days",
"urgent_first_response_time_enabled": true,
"urgent_first_response_time_minutes": 1073741823,
"urgent_first_response_time_unit": "days",
"urgent_time_to_resolve_enabled": true,
"urgent_time_to_resolve_minutes": 1073741823,
"urgent_time_to_resolve_unit": "days",
"alert_before_first_response_time_enabled": true,
"alert_before_first_response_time_minutes": 1073741823,
"alert_before_first_response_time_unit": "days",
"alert_before_time_to_resolve_enabled": true,
"alert_before_time_to_resolve_minutes": 1073741823,
"alert_before_time_to_resolve_unit": "days"
}{
"error": "<string>",
"troubleshoot": "<string>"
}
