Help Center > > User Guide> Permissions Management> Policy Syntax: System Role

Policy Syntax: System Role

Updated at: May 14, 2020 GMT+08:00

Policy Structure

An RBAC policy consists of a Version, a Statement, and Depends.

Figure 1 Policy Structure

Policy Syntax

The DAS Administrator policy is used as an example to describe the syntax of RBAC policies.

{
        "Version": "1.0",
        "Statement": [
                {
                        "Effect": "Allow",
                        "Action": [
                                "DAS:DAS:*"
                        ]
                }
        ],
       "Depends": [
                {
                        "catalog": "BASE",
                        "display_name": "Tenant Guest"
                }
        ]
}
Table 1 Parameter description

Parameter

Description

Value

Version

Policy version

The value is fixed at 1.0.

Statement

Action

Operations to be performed on DAS

Format: Service name:Resource type:Operation

DAS:DAS:*: permissions for performing all operations on all resource types in DAS

Effect

Determines whether the operation defined in an action is allowed.

  • Allow
  • Deny

Depends

catalog

Name of the service to which dependencies of a policy belong

Service name

Example: BASE

display_name

Name of a dependent policy

Policy name

Example: Tenant Guest

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel