pw acl deny
The pw acl deny command denies read/write access to CIs for specified user groups. The syntax for the command is as follows:
Run this command with any combination of the following options:
- help — Prints a help message
-r — Used to specify a Read group name. For example, ReadUg1. The keyword ALL can be used to deny read access to all user groups instead of denying access to specific groups.
-w — Used to specify a Write group name. For example, WriteUg1. The keyword ALLcan be used to deny write access to all user groups instead of denying access to specific groups.
- -p — (Optional) Used to preview the modification before it is actually made
-o— Stores CSV-formatted preview output in a specified file
- -ci — Used to specify criteria to find CIs. See pw-acl-allow.
Examples
- pw acl help — Displays help information on the pw acl command
- pw acl deny help — Displays help information on pw acl deny subcommand
- pw acl deny -w UG4 -ci notenant -p — Remove UG4 from Local Write ACL of all CIs not associated with tenant. -p and -o options are applicable to preview the change before actual modification.
- pw acl deny -r ALL -w ALL -ci notenan — In this example, the keyword ALL is case-sensitive to make Local Read and Write ACLs empty for all CIs not associated with the tenant. -p and -o options are applicable to preview the change before actual modification.
Output
Console Output Format
If no file name is specified in the command (with the -o option), the output is displayed on the console. Due to limited space, only the following attributes are displayed:
mc_udid, Name, PNReadAcl, PNWriteAcl
CSV Format
More attributes are available in CSV format, including:
mc_udid, Name, CLASS, PNReadAcl, PNWriteAcl, CmdbReadACl, CmbdWriteAcl