Automates checks management.
Base URL https://api.gslb.me/2.0. All requests require HTTP Basic authentication; set Accept to application/json or application/xml. Try these calls in the Postman collection.
Get checks
GEThttps://api.gslb.me/2.0/utils/checks
Get all available checks
Example request
curl -u "username@mydomain.com:your-password" \
-X GET "https://api.gslb.me/2.0/utils/checks" \
-H "Accept: application/json"import requests
r = requests.get(
"https://api.gslb.me/2.0/utils/checks",
auth=("username@mydomain.com", "your-password"),
headers={"Accept": "application/json"},
)
print(r.status_code, r.json())const res = await fetch("https://api.gslb.me/2.0/utils/checks", {
method: "GET",
headers: {
"Authorization": "Basic " + btoa("username@mydomain.com:your-password"),
"Accept": "application/json"
}
});
console.log(res.status, await res.json());Example response
200 OK Get checks
{
"check": [
{
"active": "true",
"id": "29",
"name": "TCP/80",
"parameters": {
"parameter": {
"type": "check.tcp.port",
"value": "80"
}
},
"reverse": "false",
"timeout": "8",
"typeTag": "check.tcp"
},
{
"active": "true",
"id": "75",
"name": "TCP/53",
"parameters": {
"parameter": {
"type": "check.tcp.port",
"value": "53"
}
},
"reverse": "false",
"timeout": "5",
"typeTag": "check.tcp"
},
"…"
]
}