netapp.storagegrid.na_sg_org_cloud_mirror_replication module – Manage Cloud Mirror Replication on StorageGRID.
Note
This module is part of the netapp.storagegrid collection (version 21.16.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_cloud_mirror_replication.
New in netapp.storagegrid 21.16.0
Synopsis
Manage Cloud Mirror Replication on StorageGRID.
Parameters
Parameter |
Comments |
|---|---|
The url to the StorageGRID Admin Node REST API. |
|
The authorization token for the API request |
|
The name of the bucket for which to configure Cloud Mirror Replication. |
|
The replication rule configuration. |
|
The destination configuration for the replication rule. |
|
The URN of the destination bucket. |
|
The storage class for the destination bucket. Choices:
|
|
The ID of the replication rule. |
|
The prefix filter for the replication rule. |
|
The status of the replication rule. Choices:
|
|
The Cloud Mirror Replication should be present. Choices:
|
|
Should https certificates be validated? Choices:
|
|
The XML namespace for the replication configuration. |
Notes
Note
The modules prefixed with
na_sgare built to manage NetApp StorageGRID.
Examples
- name: create cloud mirror replication
netapp.storagegrid.na_sg_org_cloud_mirror_replication:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
state: present
validate_certs: false
bucket_name: bucket1
xmlns: "http://1.2.3.4:10444/"
rule:
id: "rule1"
status: "Enabled"
prefix: "abc"
destination:
bucket_urn: "urn:sgws:s3:::bucket2"
storage_class: "STANDARD"
- name: remove cloud mirror replication
netapp.storagegrid.na_sg_org_cloud_mirror_replication:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
state: present
validate_certs: false
bucket_name: bucket1
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Returns information about the StorageGRID cloud mirror replication. Returned: always Sample: |