CreateInitiators
You can use CreateInitiators
to create multiple new initiator IQNs or World Wide Port Names (WWPNs) and optionally assign them aliases and attributes. When you use CreateInitiators
to create new initiators, you can also add them to volume access groups.
If the operation fails to create one of the initiators provided in the parameter, the method returns an error and does not create any initiators (no partial completion is possible).
Parameter
This method has the following input parameter:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
initiators |
A list of objects containing characteristics of each new initiator. Objects:
|
JSON object array |
None |
Yes |
Return value
This method has the following return value:
Name |
Description |
Type |
initiators |
List of objects describing the newly created initiators. |
initiator array |
Error
This method can return the following error:
Name |
Description |
xInitiatorExists |
Returned if the initiator name you chose already exists. |
Request example
Requests for this method are similar to the following example:
{ "id": 3291, "method": "CreateInitiators", "params": { "initiators": [ { "name": "iqn.1993-08.org.debian:01:288170452", "alias": "example1" }, { "name": "iqn.1993-08.org.debian:01:297817012", "alias": "example2" } ] } }
Response example
This method returns a response similar to the following example:
{ "id": 3291, "result": { "initiators": [ { "alias": "example1", "attributes": {}, "initiatorID": 145, "initiatorName": "iqn.1993-08.org.debian:01:288170452", "volumeAccessGroups": [] }, { "alias": "example2", "attributes": {}, "initiatorID": 146, "initiatorName": "iqn.1993-08.org.debian:01:297817012", "volumeAccessGroups": [] } ] } }
New since version
9.6