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 系列存储阵列创建、更新、删除快照卷。

参数

参数

注释

api_password

字符串 / 必需

用于使用 SANtricity WebServices Proxy 或嵌入式 REST API 进行身份验证的密码。

api_url

字符串 / 必需

到 SANtricity WebServices Proxy 或嵌入式 REST API 的 URL。

api_username

字符串 / 必需

用于使用 SANtricity WebServices Proxy 或嵌入式 REST API 进行身份验证的用户名。

full_threshold

整数

存储库利用率警告阈值百分比

默认: 85

name

字符串 / 必需

您希望给快照卷的名称

repo_percentage

整数

视图相对于基础卷的大小

默认: 20

snapshot_image_id

字符串 / 必需

用于创建新快照卷的快照映像的标识符。

注意:您可能需要使用 netapp_eseries.santricity.netapp_e_facts 模块来查找所需映像的 ID。

ssid

字符串 / 必需

存储阵列 ID

state

字符串 / 必需

是否创建或删除快照卷

选择

  • "absent"

  • "present"

storage_pool_name

字符串 / 必需

用于分配存储库卷的存储池的名称。

validate_certs

布尔值

是否应验证 https 证书?

选择

  • false

  • true ←(默认)

view_mode

字符串

快照卷访问模式

选择

  • "readOnly" ←(默认)

  • "readWrite"

  • "modeUnknown"

  • "__Undefined"

备注

注意

  • 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 }}"

返回值

常见返回值记录在 此处,以下是此模块独有的字段

描述

msg

字符串

成功消息

返回:成功

示例: "Json facts for the volume that was created."

作者

  • Kevin Hulquest (@hulquest)