hitachivantara.vspone_block.sds_block.hv_sds_block_user_group module – Create and update user groups on the storage system.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.5.1).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install hitachivantara.vspone_block.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.sds_block.hv_sds_block_user_group.
New in hitachivantara.vspone_block 4.5.0
Synopsis
Create and update user groups on the storage system.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/sdsb_user_groups.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for the user group task. |
|
Name of the group registered with an external authorization server when the external authorization server is linked. |
|
The user group ID. |
|
Role of the user group. At least one role must be specified. This is a required field to create user group. |
|
An array of the IDs of virtual private storages (VPSs) that the user group can access. |
|
The ID of the virtual private storage (VPS) that the user group belongs to. |
|
The name of the virtual private storage (VPS) that the user group belongs to. |
|
The level of the user group task. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Determines if the module should run in check mode. |
Examples
- name: Create a new user group
hitachivantara.vspone_block.sds_block.hv_sds_block_user_group:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: present
spec:
id: "vps_admin_4"
role_names:
- "Security"
- "Storage"
- "Monitor"
vps_id: "system"
scope:
- "system"
- "3ffcf3c6-5696-477e-bd0c-6a8d6ab4a0af"
- name: Update an existing user group
hitachivantara.vspone_block.sds_block.hv_sds_block_user_group:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: present
spec:
id: "admin-vps02"
role_names:
- "Security"
- "Storage"
- "Monitor"
scope:
- "system"
- "2a843522-a819-47ab-a208-69d190809604"
- "ae0f247c-dc56-491c-9cb9-4b2b6d33b345"
- name: Delete a user group
hitachivantara.vspone_block.sds_block.hv_sds_block_user_group:
connection_info:
address: sdsb.company.com
username: "admin"
password: "password"
state: absent
spec:
id: "admin-vps02"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Information about a specific user group configured on the system. Returned: success |
|
Name of the external directory group (LDAP/AD) associated with this user group; empty for local groups. Returned: success Sample: |
|
Whether the group is built-in (system-defined) or user-created. Returned: success Sample: |
|
List of users that belong to this user group. Returned: success Sample: |
|
List of roles assigned to the user group. Returned: success Sample: |
|
Operational scopes where the roles apply (e.g., ‘system’ or VPS IDs). Returned: success Sample: |
|
Unique identifier of the user group. Returned: success Sample: |
|
Object ID representing the user group in the management system. Returned: success Sample: |
|
Identifier of the VPS or system context associated with the user group. Returned: success Sample: |