identitypolicy create

Prev Next

This command creates an identity policy.

Note

This command requires you to enter policy content in the command line. Since the policy content is multi-line, you may find that your SSH terminal does not succeed in creating the policies.

In case of difficulty, we recommend you use the VAST Web UI to add policies to VMS.

Usage
identitypolicy create --name NAME
                      --policy POLICY
Required Parameters

--name NAME

Specifies a name for the policy.

--policy POLICY

Enter the policy content in JSON format. For information about how to write identity policies, see Identity Policy Format.

Example

This example creates a policy that allows any user to which the policy is attached to perform all actions on all resources:

vcli: admin> identitypolicy create --name allow_all --policy '    {
                   "Version": "2012-10-17",
                   "Statement": [{
                   "Sid": "AllowAllActionsAllResources",
                   "Action":
                     "*",
                   "Effect": "Allow",
                   "Resource":
                     "*"

                 }
                   ]
                 }'