Self Help Documentation
< All Topics

file/getdiskusage

Description

Lists file and folder size info about a specified directory in the selected SPanel user account. Subfolders are not included and if needed must be queried separately.

Parameters

FieldTypeRequiredDescription
tokenstringYesAuthorizing API token – check API Basics for more information.
accountuserstringYesThe SPanel user account that is being managed or viewed.
actionstringYesThe category and function being executed.
pathstringNoDefault: null (empty). Directory to get info for. It is relative to the SPanel user’s home directory. For example, using an empty string will return the file and folder info for the home directory only while specifying a folder name will return info for its contents only.

Example

You can find more information about the Endpoint URL in our API Basics article.

Output

Table of Contents