Updated on 2022-02-21 GMT+08:00

DSS Custom Policies

Custom policies can be created to supplement the system-defined policies of DSS. For the actions supported for custom policies, see Permissions Policies and Supported Actions.

You can create custom policies in either of the following ways:

  • Visual editor: Select cloud services, actions, resources, and request conditions. This does not require knowledge of policy syntax.
  • JSON: Edit JSON policies from scratch or based on an existing policy.

    For operation details, see Creating a Custom Policy. The following section contains examples of common custom policies.

Example Custom Policies

  • Example 1: Authorize a user to query storage pools.
    {
            "Version": "1.1",    
            "Statement": [               
                    {
                           "Action": [
                                   "dss:pools:get",
                                   "dss:pools:list",
                           ],
                           "Effect": "Allow"
                   }
           ]
    }