< Home

rename (security group view)

Function

The rename command renames a security group.

Format

rename security-group-name

Parameters

Parameter Description Value
security-group-name Specifies the new security group name. The value is a case-insensitive string. It supports spaces, but does not support any commas (,), quotation marks ("), question marks (?), pipe characters (|), or equal signs (=). If the security group name does not contain any space, its length ranges from 1 to 63. If the security group name contains spaces, its length ranges from 3 to 65, and you must enclose the name with double quotation marks ("), for example, "security group for test". The name cannot start or end with any spaces.

Views

Security group view

Default Level

2: Configuration level

Usage Guidelines

After you rename a security group, the system automatically updates the policies that reference the security group. No manual modification is required. For example, after you change security group name test1 to test2. The system automatically replaces test1 with test2 in all policies.

Example

# Rename security group test1 to test2.

<sysname> system-view
[sysname] user-manage security-group test1
[sysname-securitygroup-test1] rename test2
[sysname-securitygroup-test2]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >