< Home

user-manage security-group

Function

The user-manage security-group command creates a security group and displays the security group view.

The undo user-manage security-group command deletes an existing security group.

Format

user-manage security-group security-group-name [ domain domain-name ]

undo user-manage security-group { name security-group-name | all } [ domain domain-name ]

Parameters

Parameter Description Value
security-group security-group-name Specifies the security group name. The value is a case-insensitive string. It supports spaces, but does not support any commas (,), quotation marks ("), question marks (?), slashes (/), and at sign (@). If the security group name does not contain any space, its length ranges from 1 to 64. If the security group name contains spaces, its length ranges from 3 to 66, 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. In addition, the name cannot be any.
domain domain-name Specifies the authentication domain to which the security group belongs. If this parameter is not specified, security groups belong to the default authentication domain. The value must be the name of an existing authentication domain.
all Deletes all existing security groups. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When you run the user-manage security-group command and the specified security group name already exists, the security group view is displayed.

Before you delete a security group, cancel the reference relationship between this security group and other elements (such as a security policy). Otherwise, deleting the security group fails.

When you delete a security group, member groups or users in the security group are not deleted, but the parent security group attributes of the member groups or users are deleted.

Security groups with the same name can exist in different authentication domains.

Example

# Create security group test.

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