ServicePointClient - Platform - BlueCat Gateway - 20.12.1

Gateway Administration Guide

prodname
BlueCat Gateway
version_custom
20.12.1

This class facilitates calling the Service Point API endpoints.

class bluecat_libraries.service_point.api.ServicePointClient(url)

Bases: bluecat_libraries.http_client.client.Client

Client uses the requests library to communicate with Service Point.

get_v1_status_health()

The health probe API validates the status of DNS resolution. Use this method to configure the DNS Edge service point behind load balancers.

Example:
from bluecat_libraries.service_point.api import ServicePointClient

client = ServicePointClient(<service_point_url>)
try:
    client.get_v1_status_health()
catch Exception:
    available = False
else:
    available = True   
            
New in version 20.6.1

get_v1_status_spdiagnostics()

Use this method to troubleshoot a service point. It returns the overall health status of the service point, the service point ID, each service’s status and service version, configured forwarder IPs, the current local time and time zone, and policy details.

Example:
from bluecat_libraries.service_point.api import ServicePointClient

client = ServicePointClient(<service_point_url>)
status_spdiagnostics = client.get_v1_status_spdiagnostics()                
            
New in version 20.6.1