Return user NGINX caching configurations.

This function returns a user's NGINX cache configuration.

SecurityBasicAuth
Request
query Parameters
merge
integer

Combine default, system, and user NGINX configurations when returning configuration data.

Note:

  • 1 - Return the configuration with default, system, and user values combined.
Value: 1
Example: merge=1
user
Array of strings <username>
Default: []

A list of users whose cache configuration you want to retrieve.

Note:

If you do not pass this parameter, this function retrieves the cache configuration for all users.

Example: user=unclebob&user=auntsue
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/nginxmanager_get_cache_config_users
Request samples
whmapi1 --output=jsonpretty \
  nginxmanager_get_cache_config_users
Response samples
application/json
{
  • "data": {
    • "users": [
      • {
        • "config": {
          • "enabled": true,
          • "inactive_time": "60m",
          • "levels": 62,
          • "logging": false,
          • "proxy_cache_background_update": "on",
          • "proxy_cache_lock": "on",
          • "proxy_cache_min_uses": 1,
          • "proxy_cache_revalidate": "on",
          • "proxy_cache_use_stale": "error timeout http_429 http_500 http_502 http_503 http_504",
          • "x_cache_header": false,
          • "zone_size": "10m"
          },
        • "merged": 0,
        • "owner": "root",
        • "user": "cptest1"
        },
      • {
        • "config": {
          • "enabled": true,
          • "inactive_time": "60m",
          • "levels": 62,
          • "logging": false,
          • "proxy_cache_background_update": "on",
          • "proxy_cache_lock": "on",
          • "proxy_cache_min_uses": 1,
          • "proxy_cache_revalidate": "on",
          • "proxy_cache_use_stale": "error timeout http_429 http_500 http_502 http_503 http_504",
          • "x_cache_header": false,
          • "zone_size": "10m"
          },
        • "merged": 0,
        • "owner": "root",
        • "user": "cptest2"
        }
      ]
    },
  • "metadata": {
    • "command": "nginxmanager_set_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}