v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
DirectoryIndexes
Directory Indexes

Return directory indexing settings

This function returns the directory indexing settings for a directory on the cPanel account and its subdirectories.

get/DirectoryIndexes/get_indexing

Query parameters

dirstring required
Example:/home/example/example.com

The directory for which to check the indexing type.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_indexing",
  "module": "DirectoryIndexes",
  "result": {
    "data": "disabled",
    "status": 1
  }
}