filesystem.getacl¶
Return ACL of a given path. This may return a POSIX1e ACL or a NFSv4 ACL. The acl type is indicated by the acltype key.
simplified - effect of this depends on ACL type on underlying filesystem. In the case of NFSv4 ACLs simplified permissions and flags are returned for ACL entries where applicable. NFSv4 errata below. In the case of POSIX1E ACls, this setting has no impact on returned ACL.
resolve_ids - adds additional who key to each ACL entry, that converts the numeric id to a user name or group name. In the case of owner@ and group@ (NFSv4) or USER_OBJ and GROUP_OBJ (POSIX1E), st_uid or st_gid will be converted from stat() return for file. In the case of MASK (POSIX1E), OTHER (POSIX1E), everyone@ (NFSv4), key who will be included, but set to null. In case of failure to resolve the id to a name, who will be set to null. This option should only be used if resolving ids to names is required.
Errata about ACLType NFSv4:
simplified returns a shortened form of the ACL permset and flags where applicable. If permissions have been simplified, then the perms object will contain only a single BASIC key with a string describing the underlying permissions set.
TRAVERSE sufficient rights to traverse a directory, but not read contents.
READ sufficient rights to traverse a directory, and read file contents.
MODIFIY sufficient rights to traverse, read, write, and modify a file.
FULL_CONTROL all permissions.
If the permisssions do not fit within one of the pre-defined simplified permissions types, then the full ACL entry will be returned.
No Additional Items
Tuple Validation
Parameter 1: path
path
Type: stringMust be at least 1
characters long
Parameter 2: simplified
simplified
Type: boolean Default: trueParameter 3: resolve_ids
resolve_ids
Type: boolean Default: falseResult
NFS4ACLResult
Type: objectNo Additional Properties
Path
Type: stringMust be at least 1
characters long
User
Must be at least 1
characters long
Group
Must be at least 1
characters long
Uid
Value must be greater or equal to -1
and lesser or equal to 2147483647
Gid
Value must be greater or equal to -1
and lesser or equal to 2147483647
Acltype
Type: constMust be one of:
- "NFS4"
"NFS4"
Acl
Type: array of objectNo Additional Items
Each item of this array must be:
NFS4ACE
Type: objectNo Additional Properties
Tag
Type: enum (of string)Must be one of:
- "owner@"
- "group@"
- "everyone@"
- "USER"
- "GROUP"
Type
Type: enum (of string)Must be one of:
- "ALLOW"
- "DENY"
Perms
NFS4ACE_AdvancedPerms
Type: objectNo Additional Properties
Read Data
Type: boolean Default: falseWrite Data
Type: boolean Default: falseAppend Data
Type: boolean Default: falseRead Named Attrs
Type: boolean Default: falseWrite Named Attrs
Type: boolean Default: falseExecute
Type: boolean Default: falseDelete
Type: boolean Default: falseDelete Child
Type: boolean Default: falseRead Attributes
Type: boolean Default: falseWrite Attributes
Type: boolean Default: falseRead Acl
Type: boolean Default: falseWrite Acl
Type: boolean Default: falseWrite Owner
Type: boolean Default: falseSynchronize
Type: boolean Default: falseNFS4ACE_BasicPerms
Type: objectNo Additional Properties
Basic
Type: enum (of string)Must be one of:
- "FULL_CONTROL"
- "MODIFY"
- "READ"
- "TRAVERSE"
Flags
NFS4ACE_AdvancedFlags
Type: objectNo Additional Properties
File Inherit
Type: boolean Default: falseDirectory Inherit
Type: boolean Default: falseNo Propagate Inherit
Type: boolean Default: falseInherit Only
Type: boolean Default: falseInherited
Type: boolean Default: falseNFS4ACE_BasicFlags
Type: objectNo Additional Properties
Basic
Type: enum (of string)Must be one of:
- "INHERIT"
- "NOINHERIT"
Id
Default: nullValue must be greater or equal to -1
and lesser or equal to 2147483647
Who
Default: nullMust be at least 1
characters long
NFS4ACL_Flags
Type: objectNo Additional Properties
Autoinherit
Type: boolean Default: falseProtected
Type: boolean Default: falseDefaulted
Type: boolean Default: falseTrivial
Type: booleanPOSIXACLResult
Type: objectNo Additional Properties
Path
Type: stringMust be at least 1
characters long
User
Must be at least 1
characters long
Group
Must be at least 1
characters long
Uid
Value must be greater or equal to -1
and lesser or equal to 2147483647
Gid
Value must be greater or equal to -1
and lesser or equal to 2147483647
Acltype
Type: constMust be one of:
- "POSIX1E"
"POSIX1E"
Acl
Type: array of objectNo Additional Items
Each item of this array must be:
POSIXACE
Type: objectNo Additional Properties
Tag
Type: enum (of string)Must be one of:
- "USER_OBJ"
- "GROUP_OBJ"
- "OTHER"
- "MASK"
- "USER"
- "GROUP"
POSIXACE_Perms
Type: objectNo Additional Properties
Read
Type: booleanWrite
Type: booleanExecute
Type: booleanDefault
Type: booleanId
Default: nullValue must be greater or equal to -1
and lesser or equal to 2147483647
Who
Default: nullMust be at least 1
characters long
Trivial
Type: booleanDISABLED_ACLResult
Type: objectNo Additional Properties
Path
Type: stringMust be at least 1
characters long
User
Must be at least 1
characters long
Group
Must be at least 1
characters long
Uid
Value must be greater or equal to -1
and lesser or equal to 2147483647
Gid
Value must be greater or equal to -1
and lesser or equal to 2147483647
Acltype
Type: constMust be one of:
- "DISABLED"
"DISABLED"
Acl
Type: constMust be one of:
- null
{ "description": "😅 ERROR in schema generation, a referenced schema could not be loaded, no documentation here unfortunately 🏜️" }
Trivial
Type: constMust be one of:
- true
true
Required roles: FILESYSTEM_ATTRS_READ