Manage REST API monitoring
Managing monitoring involves these tasks:
- Enable or Disable monitoring
- Edit monitoring interface name
- Configure allowed IP addresses
To go to the monitoring submenu where you can enable REST APIs, edit the monitoring endpoint name, and configure allowed IP addresses:
- Connect to the admin instance Access Gateway Management console.
ssh oag-mgmt@[admin.tld] - Select 4 - Monitoring
- Select 5 - Configure REST APIs
Enable or Disable REST APIs
The monitoring REST APIs are disabled by default.
To enable the monitoring REST APIs:
- Enter 1 to change the status of the monitoring REST APIs. A confirmation message confirms the change.
- Press any key to continue.
Edit endpoint name
You can change the monitoring REST API endpoint name by doing the following:
- Enter
2to change the endpoint name. - Enter
mto enter a new endpoint name. - Enter the new endpoint location (for example,
/mystatusendpoint). - Enter
cto commit the endpoint name change. - Enter
xto return to the previous menu.
Configure allowed IPs
The monitoring REST API only allows client requests from known predefined IP addresses. You can add and remove addresses from the list of known addresses. Commit your changes for them to take effect.
To add an IP address:
- Enter
3from the Configure REST APIs menu to manage allowed IPs. - Enter
ato add an address. - Enter a fully qualified IPv4 address or CIDR address (for example, 192.168.1.0/24).
To delete an IP address:
- Enter
3from the Configure REST APIs menu to manage allowed IPs. - Enter
dto delete an entry. - Enter the index of the address to delete.
To commit your IP address changes:
- Enter
cto commit your changes, which include any pending additions or deletions. - Enter
xto return to the previous menu.
Related topics