netapp.storagegrid.na_sg_org_group module – NetApp StorageGRID manage groups within a tenancy.
Note
This module is part of the netapp.storagegrid collection (version 21.10.0).
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 netapp.storagegrid
.
To use it in a playbook, specify: netapp.storagegrid.na_sg_org_group
.
New in version 20.6.0: of netapp.storagegrid
Parameters
Parameter |
Comments |
---|---|
The url to the StorageGRID Admin Node REST API. |
|
The authorization token for the API request |
|
Name of the group. Required for create operation. |
|
Management access controls granted to the group within the tenancy. |
|
Allows users to manage the settings for all S3 buckets in the tenant account, regardless of S3 bucket or group policies. Choices:
|
|
Allows users to use the Tenant Manager or the Tenant Management API to create or edit endpoints. Endpoints are used as the destination for StorageGRID platform services. Choices:
|
|
Allows users to create and remove their own S3 access keys. Users who do not have this permission do not see the S3 > My Credentials menu option. Choices:
|
|
Provides full access to the Tenant Manager and the Tenant Management API. Choices:
|
|
StorageGRID S3 Group Policy. Default: “” |
|
Whether the specified group should exist or not. Choices:
|
|
Unique Name for the group. Must begin with Required for create, modify or delete operation. |
|
Should https certificates be validated? Choices:
|
Examples
- name: create a group
netapp.storagegrid.na_sg_org_group:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
validate_certs: false
state: present
display_name: ansiblegroup1
unique_name: group/ansiblegroup1
management_policy:
manage_all_containers: true
manage_endpoints: true
manage_own_s3_credentials: false
root_access: false
s3_policy: {"Statement":[{"Effect":"Deny","Action":"s3:*","Resource":"arn:aws:s3:::*"}]}
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Returns information about the StorageGRID tenant group attributes. Returned: success Sample: {“accountId”: “12345678901234567890”, “displayName”: “Example Group”, “federated”: false, “groupURN”: “urn:sgws:identity::12345678901234567890:group/examplegroup”, “id”: “00000000-0000-0000-0000-000000000000”, “policies”: {“management”: {“manageAllContainers”: true, “manageEndpoints”: true, “manageOwnS3Credentials”: true, “rootAccess”: true}, “s3”: {“…”: null}, “swift”: {“…”: null}}, “uniqueName”: “group/examplegroup”} |
Authors
NetApp Ansible Team (@joshedmonds)