ibm.storage_virtualize.ibm_sv_manage_fcportsetmember 模块 – 此模块用于管理在 IBM Storage Virtualize 系列系统中向光纤通道 (FC) 端口集添加或删除端口的操作。
注意
此模块是 ibm.storage_virtualize 集合 (版本 2.5.0) 的一部分。
如果您正在使用 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install ibm.storage_virtualize
。
要在 playbook 中使用它,请指定:ibm.storage_virtualize.ibm_sv_manage_fcportsetmember
。
ibm.storage_virtualize 1.12.0 中的新增功能
概要
管理 'addfcportsetmember' 和 'rmfcportsetmember' 命令的 Ansible 接口。
参数
参数 |
注释 |
---|---|
Storage Virtualize 系统的hostname或管理 IP。 |
|
Storage Virtualize 系统的域。 当 hostname 用于参数 *clustername* 时有效。 |
|
指定端口的光纤通道 I/O 端口 ID。 该值可以是 1 到最大 FC I/O 端口数的十进制数字。 |
|
调试日志文件的路径。 |
|
指定 FC 端口集的名称。 |
|
Storage Virtualize 系统的 REST API 密码。 如果未使用 *token* 验证用户身份,则需要参数 *username* 和 *password*。 |
|
向 FC 端口集添加 ( 选项
|
|
用于验证 Storage Virtualize 系统上的用户的身份验证令牌。 要生成令牌,请使用 ibm.storage_virtualize.ibm_svc_auth 模块。 |
|
Storage Virtualize 系统的 REST API 用户名。 如果未使用 *token* 验证用户身份,则需要参数 *username* 和 *password*。 |
|
验证证书。 选项
|
备注
注意
此模块支持
check_mode
。
示例
- name: Add port ID to the portset
ibm.storage_virtualize.ibm_sv_manage_fcportsetmember:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
name: portset1
fcportid: 3
state: present
- name: Remove port ID from portset
ibm.storage_virtualize.ibm_sv_manage_fcportsetmember:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
name: portset1
fcportid: 3
state: absent