service-instance
apply-acl
Apply ACL for a specific service instance.
Syntax
cpd-cli service-instance apply-acl <cpd-service-instance-name> \
[--cpdconfig=<cpd-configuration-location>] \
--from-csv-file=<csv-file-name> \
[--handle-existing-data=skip|replace] \
--profile=<profile-name> \
[--service-type=<cpd-service-type>] \
[--verbose]
Arguments
Table 1: Command arguments
| Argument | Description |
|---|---|
<cpd-service-instance-name> |
The IBM® Software Hub service instance name to apply ACL for. |
Options
Table 1: Command options
| Option | Description |
|---|---|
--cpdconfig |
The IBM Software Hub
configuration location. For example,
$HOME/.cpd-cli/config.
|
--from-csv-file |
A comma-separated (CSV) file that
describes the user details.
|
--handle-existing-data |
Specify an option for handling
existing data.
|
|
|
Display command
help.
|
--profile |
The name of the profile that you
created to store information about an instance of IBM Software Hub and your credentials for the
instance.
|
|
|
The IBM Software Hub service
instance type.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Apply ACL for the
ps::acltrialservice instance by using theaclinfos.csvfile and skip existing users or groups. -
cpd-cli service-instance apply-acl ps::acltrial \ --from-csv-file=aclinfos.csv \ --handle-existing-data=skip \ --profile=<profile-name> - Apply ACL for the
ps::acltrialservice instance by using theaclinfos.csvfile and replace existing users or groups. -
cpd-cli service-instance apply-acl ps::acltrial \ --from-csv-file=aclinfos.csv \ --handle-existing-data=replace \ --profile=${CPD_PROFILE_NAME}