netapp_eseries.santricity.netapp_e_snapshot_volume 模块 – NetApp E 系列管理快照卷。
注意
此模块是 netapp_eseries.santricity 集合(版本 1.4.1)的一部分。
如果您正在使用 ansible
包,您可能已经安装了此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install netapp_eseries.santricity
。
要在剧本中使用它,请指定:netapp_eseries.santricity.netapp_e_snapshot_volume
。
netapp_eseries.santricity 2.2.0 中的新增功能
概要
为 NetApp E/EF 系列存储阵列创建、更新、删除快照卷。
参数
参数 |
注释 |
---|---|
用于使用 SANtricity WebServices Proxy 或嵌入式 REST API 进行身份验证的密码。 |
|
到 SANtricity WebServices Proxy 或嵌入式 REST API 的 URL。 |
|
用于使用 SANtricity WebServices Proxy 或嵌入式 REST API 进行身份验证的用户名。 |
|
存储库利用率警告阈值百分比 默认: |
|
您希望给快照卷的名称 |
|
视图相对于基础卷的大小 默认: |
|
用于创建新快照卷的快照映像的标识符。 注意:您可能需要使用 netapp_eseries.santricity.netapp_e_facts 模块来查找所需映像的 ID。 |
|
存储阵列 ID |
|
是否创建或删除快照卷 选择
|
|
用于分配存储库卷的存储池的名称。 |
|
是否应验证 https 证书? 选择
|
|
快照卷访问模式 选择
|
备注
注意
仅 full_threshold 支持更新操作。如果快照卷已存在且阈值匹配,则将返回
ok
状态,不能对预先存在的快照卷进行其他更改。
示例
- name: Snapshot volume
netapp_e_snapshot_volume:
ssid: "{{ ssid }}"
api_url: "{{ netapp_api_url }}/"
api_username: "{{ netapp_api_username }}"
api_password: "{{ netapp_api_password }}"
state: present
storage_pool_name: "{{ snapshot_volume_storage_pool_name }}"
snapshot_image_id: "{{ snapshot_volume_image_id }}"
name: "{{ snapshot_volume_name }}"
返回值
常见返回值记录在 此处,以下是此模块独有的字段
键 |
描述 |
---|---|
成功消息 返回:成功 示例: |