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 identity policies to VMS. Creating Identity Policies

Usage

identitypolicy create --name NAME
                      --policy POLICY
                      --tenant-id ID

Required Parameters

--name NAME

Specifies a name for the identity policy.

--policy POLICY

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

--tenant-id ID

Identifies the tenant associated with this identity policy.

Example

This example creates an identity policy that allows any user on tenant 2 to which the identity policy is attached to perform all actions on all resources:

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

                 }
                   ]
                 }'