curl --request GET \
--url https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor \
--header 'Authorization: <api-key>'import requests
url = "https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor', 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.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor",
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: <api-key>"
],
]);
$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.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"admin_state_up": false,
"delay": 10,
"domain_name": "example.com",
"expected_codes": "200,301,302",
"http_method": "GET",
"http_version": "1.1",
"id": "2eb5823b-9cdc-45cd-97c0-c95cc2278422",
"max_retries": 2,
"max_retries_down": 3,
"operating_status": "ONLINE",
"provisioning_status": "ACTIVE",
"timeout": 5,
"type": "HTTP",
"url_path": "/"
}Get load balancer pool health monitor
Returns the health monitor configured for a load balancer pool, including its type, check intervals, timeouts, and the thresholds used to mark pool members as healthy or unhealthy. Returns 404 if the pool has no health monitor attached.
curl --request GET \
--url https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor \
--header 'Authorization: <api-key>'import requests
url = "https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor', 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.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor",
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: <api-key>"
],
]);
$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.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cloud/v1/lbpools/{project_id}/{region_id}/{pool_id}/healthmonitor")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"admin_state_up": false,
"delay": 10,
"domain_name": "example.com",
"expected_codes": "200,301,302",
"http_method": "GET",
"http_version": "1.1",
"id": "2eb5823b-9cdc-45cd-97c0-c95cc2278422",
"max_retries": 2,
"max_retries_down": 3,
"operating_status": "ONLINE",
"provisioning_status": "ACTIVE",
"timeout": 5,
"type": "HTTP",
"url_path": "/"
}Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234_abcdef
Path Parameters
Project ID
1
Region ID
1
Pool ID
"00000000-0000-4000-8000-000000000000"
Response
OK
Administrative state of the resource. When set to true, the resource is enabled and operational. When set to false, the resource is disabled and will not process traffic. Defaults to true.
false
The time, in seconds, between sending probes to members
1 <= x <= 214748364710
Domain name for HTTP host header. Can only be used together with HTTP or HTTPS health monitor type.
"example.com"
Expected HTTP response codes. Can be a single code, a comma-separated list of codes, or a single range of codes. Can only be used together with HTTP or HTTPS health monitor type. For example, 200, 200,202,401,403,404, or 200-204. If not specified, the default is 200.
"200,301,302"
HTTP method
CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE "GET"
HTTP version. Can only be used together with HTTP or HTTPS health monitor type.
1.0, 1.1 "1.1"
Health monitor ID
"2eb5823b-9cdc-45cd-97c0-c95cc2278422"
Number of successes before the member is switched to ONLINE state
1 <= x <= 102
Number of failures before the member is switched to ERROR state
1 <= x <= 103
Health Monitor operating status
DEGRADED, DRAINING, ERROR, NO_MONITOR, OFFLINE, ONLINE "ONLINE"
"DRAINING"
"OFFLINE"
"DEGRADED"
"ERROR"
"NO_MONITOR"
Health monitor lifecycle status
ACTIVE, DELETED, ERROR, PENDING_CREATE, PENDING_DELETE, PENDING_UPDATE "ACTIVE"
The maximum time to connect. Must be less than the delay value
0 <= x <= 21474835
Health monitor type. Once health monitor is created, cannot be changed.
HTTP, HTTPS, K8S, PING, TCP, TLS-HELLO, UDP-CONNECT "HTTP"
URL Path. Defaults to '/'
1"/"
Was this page helpful?