< Home

role web-proxy resource

Function

The role web-proxy resource command associates a role with a Web proxy resource.

The undo role web-proxy resource command cancels the association between a role and a Web proxy resource.

Format

role role-name web-proxy resource resource-name

undo role role-name web-proxy resource resource-name

Parameters

Parameter Description Value
role-name Specifies the role name. The value must be an existing role name.
resource-name Specifies the resource name. The value must be an existing Web proxy resource.

Views

Role view

Default Level

2: Configuration level

Usage Guidelines

When a role is associated with a resource, all the users and groups that belong to the role can access the resource.

A resource must belong to a role. A role can contain multiple resources, and a resource can belong to multiple roles.

A customized role can be associated with a maximum of 1024 resources. The maximum number of resources that can be associated with a default role is the same as the maximum number of resources allowed by the virtual gateway.

Example

# Associate role role1 with Web proxy resource music.

<sysname> system-view
[sysname] v-gateway abc
[sysname-abc] role
[sysname-abc-role] role role1 web-proxy resource music
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >