Modifying Host Settings
PATCH /host/{host_id}
Introduction
Modifies the Host settings.
Only FC Hosts and iSCSI Hosts can be modified.
To modify parameters other than the host name for the currently operating hosts, make sure to stop access from the relevant host.
If you change the host response, you must restart the server after the change.
For tenant users, only Hosts that belong to the tenant of the current user can be changed.
Request Examples
This is an example of changing the host name for the FC Host with Host ID 0.
$ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X PATCH "https://192.168.1.1:5665/api/v1/host/0" -d '{"name": "HBA#1",}'This is an example of changing the IP Address for the FC Host with Host ID 102.
$ curl -i -H "Content-Type:application/json" -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X PATCH "https://192.168.1.1:5665/api/v1/host/102" -d '{"ip_address": "192.168.1.10",}'
Response Examples
{
"job_id": 8192001,
"job_href": "/api/v1/job/8192001"
}
Parameters
PATH PARAMETERS
| host_id
(required) |
integer Host ID. |
REQUEST BODY
| name | string Host name. Input criteria:
|
| wwn | string FC Host WWN. Available only for FC type Host. Input criteria:
|
| iscsi_name | string iSCSI Name of the iSCSI Host. Available only for iSCSI type Host. Input criteria:
|
| alias_name | string Alias Name for iSCSI Name. Available only for iSCSI type Host. To remove an existing Alias Name, specify a NULL string. Input criteria:
|
| ip_address | string The IP address of the iSCSI Host. Available only for 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. Available only for iSCSI type Host. To remove an existing CHAP user name, specify a NULL string. Input criteria:
|
| chap_password | string Password for CHAP authentication. Available only for iSCSI type Host. Input criteria:
|
| host_response_name | string Host Response Name assigned to the Host. The Host Response has the following presets:
|
Responses
If the job registration is successful, the HTTP status code will be 202 (Accepted) and the response body will respond.
RESPONSE BODY
| job_id | integer Job ID. |
| job_href | string Resource link of the job. |

