< Home

policy (role view)

Function

The policy command grants a specific administrator role permission for one or multiple functions in the policy configuration module.

The undo policy command restores the default permission for one or multiple functions in the policy configuration module.

Format

policy { none | read-only | read-write } [ feature-name ]

undo policy [ feature-name ]

Parameters

Parameter Description Value
feature-name Specifies the function name. You can specify one or multiple functions.
none Grants no permission. -
read-only Allows an administrator to only query the configuration. -
read-write Allows an administrator to both query and configure functions. -

Views

Role view

Default Level

2: Configuration level

Usage Guidelines

By default, a new role is granted read-write permission.

Example

# Grant an administrator role named newadmin the read-only permission for the shield function in the policy configuration module.

<sysname> system-view
[sysname] aaa
[sysname-aaa] role newadmin
[sysname-aaa-role-newadmin] policy read-only shield
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >