以下对象与 usergroup 直接相关。
The following objects are directly related to the usergroup API.
用户组对象具有以下属性。
| 属性 类 | 说明 | |
|---|---|---|
| usrgrpid | string | (readonly) 用户组的ID。 | 
| name (required) | string | 用户组的名称。 | 
| debug_mode | integer | 是否启用或禁用调试模式。 可能的值: 0 - (default) 禁用; 1 - 启用。 | 
| gui_access | integer | 组中用户的前端身份验证方法。 可能的值: 0 - (default) 使用系统默认身份验证方法; 1 - 使用内部认证; 2 - 禁止访问前端。 | 
| users_status | integer | 用户组是启用还是禁用。 可能的值: 0 - (default) 启用; 1 - 禁用。 | 
The user group object has the following properties.
| Property | Type | Description | 
|---|---|---|
| usrgrpid | string | (readonly) ID of the user group. | 
| name (required) | string | Name of the user group. | 
| debug_mode | integer | Whether debug mode is enabled or disabled. Possible values are: 0 - (default) disabled; 1 - enabled. | 
| gui_access | integer | Frontend authentication method of the users in the group. Possible values: 0 - (default) use the system default authentication method; 1 - use internal authentication; 2 - disable access to the frontend. | 
| users_status | integer | Whether the user group is enabled or disabled. Possible values are: 0 - (default) enabled; 1 - disabled. | 
权限对象具有以下属性。
| 属性 类 | 说明 | |
|---|---|---|
| id (required) | string | 要添加权限的主机组的ID。 | 
| permission (required) | integer | 访问到主机组的级别。 \\可能的值: 0 - 拒绝访问; 2 - 只读访问; 3 -读写访问。 | 
The permission object has the following properties.
| Property | Type | Description | 
|---|---|---|
| id (required) | string | ID of the host group to add permission to. | 
| permission (required) | integer | Access level to the host group. Possible values: 0 - access denied; 2 - read-only access; 3 - read-write access. | 
基于标签的权限对象具有以下属性。
| 属性 类 | 说明 | |
|---|---|---|
| groupid (required) | string | 要添加权限的主机组的ID。 | 
| tag | string | 标签名。 | 
| value | string | 标签值。 | 
The tag based permission object has the following properties.
| Property | Type | Description | 
|---|---|---|
| groupid (required) | string | ID of the host group to add permission to. | 
| tag | string | Tag name. | 
| value | string | Tag value. |