Creating a Host
POST /host
Introduction
Creates a new Host.
Only FC Hosts and iSCSI Hosts can be created.
This function cannot be used to create hosts to Host Groups.
Use ETERNUS Web GUI or ETERNUS CLI to configure Host Affinity using the Host Group.
You can find the Href of the created host in resource_href_list of "GET /job/{job_id}".
Request Examples
This is an example of creating an FC Host.
$ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X POST "https://192.168.1.1:5665/api/v1/host" -d '{"type": "FC","name": "HBA#1","wwn": "40000000abc80e38","host_response_name": "Solaris MPxIO"}'This is an example of creating an iSCSI Host.
$ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X POST "https://192.168.1.1:5665/api/v1/host" -d '{"type": "iSCSI","name": "HBA#1","iscsi_name": "iqn.1991-05.com.microsoft","alias_name": "IQN-DXL","ip_version": "IPv4","ip_address": "192.168.1.10",}'
Response Examples
{
"job_id": 8192001,
"job_href": "/api/v1/job/8192001"
}
Parameters
REQUEST BODY
| type
(required) |
string Host type.
|
||||||
| name
(required) |
string Host name. Input criteria:
|
||||||
| wwn | string FC Host WWN This item is required when creating an FC type Host. Input criteria:
|
||||||
| iscsi_name | string iSCSI Name of the iSCSI Host. This item is required when creating an iSCSI type Host. Input criteria:
|
||||||
| alias_name | string Alias Name for iSCSI Name. This item is available when creating an iSCSI type Host. Optional. Input criteria:
|
||||||
| ip_version | string The IP format of the iSCSI Host. This item is required when creating an iSCSI type Host.
|
||||||
| ip_address | string The IP address of the iSCSI Host. This item is available when creating an iSCSI type Host. To specify an IP address in the IPv4 format, use the IPv4 standard notation (base-256 "d.d.d.d" string). For IPv6 format, you can specify the following:
|
||||||
| chap_user | string User name for CHAP authentication. This item is available when creating an iSCSI type Host. Optional if the CHAP authentication is not used. Input criteria:
|
||||||
| chap_password | string Password for CHAP authentication. This item is available when creating an iSCSI type Host. If chap_user is specified, a password must be specified. Input criteria:
|
||||||
| host_response_name | string Default: "Default" Host Response Name assigned to the Host. If omitted, the Default Host Response is assigned. The Host Response has the following presets:
|
Responses
If successful, the HTTP status code is 202 (Accepted) and the response body is returned.
RESPONSE BODY
| job_id | integer Job ID. |
| job_href | string Resource link of the job. |

