Create Policies for Service Account
In a general overview, the process of creating a policy has similarities for both IAM User Accounts and Service Accounts. However, we will reiterate the steps to make it easy for you to observe and execute.
To create a policy for accessing vStorage resources, follow these steps:
Log in to https://hcm-3.console.vngcloud.vn/iam with your Root User Account.
Choose the Policy menu.
Select Create a Policy.
Enter the Name and Description for the Policy.
Click Next step.
Choose the Product as vstorage.
Choose Actions:
Select Allow permissions: By default, the vIAM system will always enable permissions to be applied in the policy. If you disable this mode, the system will deny (reverse) the corresponding permissions.
Allow permissions: Allow access based on the selected action.
Deny permissions: Deny access based on the selected action.
Choose All vstorage actions if you want to create a policy with permission for all actions on vStorage. For detailed meanings of actions, refer to the Features, vStorage Resources, and Access Permissions.
Choose Resources:
Select All resources if you want the selected permissions to be allowed access to all resources in your SSO account.
Choose Specify resources: Select the specific project, container, or object you want to allow access to. You can enter information for each resource type in one of the following ways:
Enter * if you want to select all resources.
Enter the specific ID of the project, the name of the container, or the name of the object if you want to specify the exact project, container, or object.
Enter a prefix if you want to specify a set of projects, containers, or objects starting with the declared prefix.
You can also choose Any to allow access to all projects, containers, or objects in your SSO account.
Choose Request conditions: Enter special conditions for the policy if any.
After completing the above 8 steps, the policy for vStorage has been created. Next, assign it to the Service Account as instructed in Attach Policies with Service Account.
In addition to the specific policy creation steps provided above, we also offer you a set of default policies with diverse permissions. You can use this policy set and directly link them to your Service Account. For more information on the list of default policies, please refer to Features, vStorage Resources, and Access Permissions.
\
Last updated