Return subdirectories directory indexing settings

This function returns the directory indexing settings of the subdirectories in a directory.

SecurityBasicAuth
Request
query Parameters
dir
required
string <path>

The absolute path of the directory for which to return indexing information.

Example: dir=/home/example/example.com
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/DirectoryIndexes/list_directories
Request samples
uapi --output=jsonpretty \
  --user=username \
  DirectoryIndexes \
  list_directories \
  dir='/home/example/example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "list_directories",
  • "module": "DirectoryIndexes",
  • "result": {
    • "data": {
      • "children": [
        • {
          • "path": "/home/example/example.com/cgi-bin",
          • "state": {
            • "index_type": "inherit"
            }
          }
        ],
      • "current": {
        • "path": "/home/example/example.com",
        • "state": {
          • "index_type": "inherit"
          }
        },
      • "home": {
        • "path": "/home/example",
        • "state": {
          • "index_type": "inherit"
          }
        },
      • "parent": {
        • "path": "/home/example",
        • "state": {
          • "index_type": "inherit"
          }
        }
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}