Return resource usage and custom statistics

This function retrieves resource usage and custom statistics for a cPanel user account.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/ResourceUsage/get_usages
Request samples
uapi --output=jsonpretty \
  --user=username \
  ResourceUsage \
  get_usages
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_usages",
  • "module": "ResourceUsage",
  • "result": {
    • "data": [
      • {
        • "description": "MySQL® Databases",
        • "error": null,
        • "formatter": "format_bytes",
        • "id": "mysql_databases",
        • "maximum": 15,
        • "url": "sql/index.html",
        • "usage": 0
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}