1. Home
  2. Docs
  3. Developer Guide
  4. API
  5. Server Utilities

Server Utilities

Small utility functions for monitoring and integrations.

Test the connection (testconex)

Checks that the API is reachable and the key is valid. Works for any valid key, without extra permissions.

curl -k -X POST https://203.0.113.10:2304/v1/testconex/ -d "key=YOUR_API_KEY"
{"status":"OK","result":"Conex Api OK"}

Server type (typeserver)

Returns the virtualization type of the server (for example openvz or kvm). Permission Type Server.

curl -k -X POST https://203.0.113.10:2304/v1/typeserver/ -d "key=YOUR_API_KEY&action=list"
{"status":"OK","msj":"openvz"}

Firewall login daemon (firewall)

Starts, stops or shows the status of the CSF/LFD login failure daemon. Send action=list and modo=status, on or off.

curl -k -X POST https://203.0.113.10:2304/v1/firewall/ -d "key=YOUR_API_KEY&action=list&modo=status"

status returns initiated (running) or arrested (stopped).

Warning: Stopping the login failure daemon removes brute-force protection from the server. Use it only for troubleshooting and switch it back on.

Server admin email (emailadmin)

See Email accounts.

Related

Was this article helpful to you? No Yes