6 functions, invoked through the cpanel_uapi tool.
scope cpanel:uapi
Call any function with cpanel_uapi(service_id, module="DirectoryPrivacy", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.
This function returns the privacy status of the subdirectories in a directory.
dirstringRequired
The directory path for which to return the subdirectories' privacy information.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
childrenarray<object>
An array of objects containing subdirectories and their privacy information. Note: The function returns an object for each subdirectory in a directory.
pathstring
The subdirectory's directory path.
stateobject
The subdirectory's privacy information.
auth_namestring
The authentication resource name.
auth_typestring
The subdirectory's authentication type. BasicNone
One of: BasicNone
passwd_filestring
The absolute file path to the subdirectory's password file.
protectedinteger
Whether the subdirectory is protected. 1 — Protected. 0 — Not protected.
One of: 10
currentobject
The user's current directory and its privacy information.
pathstring
The current directory's path.
stateobject
The current subdirectory's privacy information.
auth_namestring
The authentication resource name.
auth_typestring
The directory's authentication type. BasicNone
One of: BasicNone
passwd_filestring
The absolute file path to the directory's password file.
protectedinteger
Whether the directory is protected. 1 — Protected. 0 — Not protected.
One of: 10
homeobject
The user's home directory and its privacy information.
pathstring
The home directory's absolute path.
stateobject
The home directory's privacy information.
auth_namestring
The authentication resource name.
auth_typestring
The home directory's authentication type. BasicNone
One of: BasicNone
passwd_filestring
The absolute file path to the home directory's password file.
protectedinteger
Whether the home directory is protected. 1 — Protected. 0 — Not protected.
One of: 10
parentobject
The parent directory of the current directory and its privacy information.
pathstring
The parent directory's absolute directory path.
stateobject
The parent directory's privacy information.
auth_namestring
The authentication resource name.
auth_typestring
The parent directory's authentication type. BasicNone
One of: BasicNone
passwd_filestring
The absolute file path to the parent directory's password file.
protectedinteger
Whether the subdirectory is protected. 1 — Protected. 0 — Not protected.