External Monitoring
This article demonstrates how to use the provided API for external monitoring of your RADIUSaaS instance.
Overview
API Schema Defition
API Examples
1
Create an Access Token as described here.
2
Retrieve Data
$accessToken = "your_access_token"$url = "https://contoso.radius-as-a-service.com/api/status"
$headers = @{
Authorization = "Bearer $accessToken"
}
$response = Invoke-RestMethod -Uri $url -Headers $headers -Method Getcurl -i https://contoso.radius-as-a-service.com/api/status \ -H "Authorization: Bearer [your_access_token]"import requests
url = "https://contoso.radius-as-a-service.com/api/status"
headers = {
"Authorization": "Bearer your_access_token"
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.text)3
Process the data according to your needs
Example 1 - Show information about the RadSec servers:
$response.radsecservers
cluster_name : eu1
ip : 20.113.8.151
name : radius-server-contoso-main
radius-server-contoso-main-state : True
state : TrueExample 2 - Show information about the RADIUS proxies:
$response.proxies
ip : 142.93.161.44
location : Europe (Frankfurt)
name : radius-proxy-contoso-142.93.161.44
radius-proxy-contoso-142.93.161.44-state : True
state : True
ip : 209.38.81.0
location : Australia (Sydney)
name : radius-proxy-contoso-209.38.81.0
radius-proxy-contoso-209.38.81.0-state : True
state : TrueExample 3 - Show certificate information:
$response.certificates | Format-List
contoso-certificate--Proxycertificate-state : True
name : contoso-certificate--Proxycertificate
state : True
validity_days_left : 2570
contoso-certificate-Customer-CA-state : True
name : contoso-certificate-Customer-CA
state : True
validity_days_left : 6900Last updated
Was this helpful?