Return service configuration key

This function returns a specific configuration key for a service.

SecurityBasicAuth
Request
query Parameters
key
required
string

The configuration key's name.

Example: key=mail_process_size
service
required
string

The service's name.

Example: service=dovecot
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/get_service_config_key
Request samples
whmapi1 --output=jsonpretty \
  get_service_config_key \
  service='dovecot' \
  key='mail_process_size'
Response samples
application/json
{
  • "data": {
    • "key name": "512",
    • "mail_process_size": null
    },
  • "metadata": {
    • "command": "get_service_config_key",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}