This function returns the directory indexing settings for a directory on the cPanel account and its subdirectories.
uapi --output=jsonpretty \ --user=username \ DirectoryIndexes \ get_indexing \ dir='/home/example/example.com'
{- "apiversion": 3,
- "func": "get_indexing",
- "module": "DirectoryIndexes",
- "result": {
- "data": "disabled",
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}