您可以使用 AddInitiatorsToVolumeAccessGroup 方法将启动程序添加到指定的卷访问组。
iqn.2010-01.com.solidfire:17oi.solidfire-0.1可接受的光纤通道启动程序 WWPN 格式为 Aa:bB:CC:dd:11:22:33:44 或 AabBCCdd11223344。请参见以下示例:
21:00:00:0e:1e:11:f1:81
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
initiators | 列出要包括在卷访问组中的启动程序 ID 或名称(IQN 和 WWPN)。如果传递启动程序名称列表,但不存在相关启动程序,则会创建这些启动程序。 如果传递启动程序 ID 列表,但不存在任何启动程序,则该方法将返回错误。 传递启动程序名称已弃用;您应尽可能使用启动程序 ID。 |
整型数组或字符串数组(已弃用) | [] | 是 |
volumeAccessGroupID | 要添加启动程序的卷访问组的 ID。 | 整型 | 无 | 是 |
此方法的请求类似于以下示例:
{ "id": 13171, "method": "AddInitiatorsToVolumeAccessGroup", "params": { "initiators": [116,117], "volumeAccessGroupID": 96 } }
此方法返回类似于以下示例的响应:
{ "id": 13171, "result": { "volumeAccessGroup": { "attributes": {}, "deletedVolumes": [ 327 ], "initiatorIDs": [ 116, 117 ], "initiators": [ "iqn.1993-08.org.debian:01:181324777", "iqn.1993-08.org.debian:01:181324888" ], "name": "northbanktest", "volumeAccessGroupID": 96, "volumes": [ 346 ] } } }