HP 3PAR StoreServ 7400 2-node HP 3PAR Web Service API 1.2 Developer's - Page 54

Modifying a Host, <storage system&gt, <host name&gt

Page 54 highlights

Modifying a Host Modify a host using the HTTP POST method. Use the following URI: https://:8080/api/v1/hosts/ NOTE: Any user with Super or Edit role, or any role granted the host_set right, can perform this operation. Access to all domains is required for this operation. Table 42 (page 54) shows the members that the message body can include to make a host-modification request. Table 42 Message Body JSON Objects for Host Modification Request Member newName JSON Type string API Type name31 Ignored Values Null Description New name of the host (Since WSAPI 1.2) pathOperation number hostEditOperation Enum Zero and negative values If adding, adds the WWN or iSCSI name to the existing host. If removing, removes the WWN or iSCSI names from the existing host. (Since WSAPI 1.2) FCWWNs array of string WWN Null One or more WWN to set for the host. (Since WSAPI 1.2) iSCSINames array of string name223 Null One or more iSCSI names to set for the host. (Since WSAPI 1.2) forcePathRemoval Boolean None If True, Remove WWN(s) or iSCSI(s) even if there are VLUNs exported to the host. (Since WSAPI 1.2) persona number hostPersona Enum Zero and negative values The ID of the persona to modify the host's persona to. (Since WSAPI 1.2) descriptors HostDescriptors descriptors object Null The description of the host. (Since WSAPI 1.2) chapOperation number hostEditOperation Enum Zero and negative values Add or remove. (Since WSAPI 1.2) chapOperationMode number hostChapOperationModeEnum Zero and negative values Initiator or target. (Since WSAPI 1.2) chapName string Name223 Null The chap name. (Since WSAPI 1.2) 54 Working with Hosts

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107

Modifying a Host
Modify a host using the HTTP POST method. Use the following URI:
https://
<storage system>
:8080/api/v1/hosts/
<host name>
NOTE:
Any user with Super or Edit role, or any role granted the
host_set
right, can perform
this operation. Access to all domains is required for this operation.
Table 42 (page 54)
shows the members that the message body can include to make a
host-modification request.
Table 42 Message Body JSON Objects for Host Modification Request
Description
Ignored Values
API Type
JSON Type
Member
New name of the host
Null
name31
string
newName
(Since WSAPI 1.2)
If adding, adds the
WWN or iSCSI name
to the existing host.
Zero and negative
values
hostEditOperation
Enum
number
pathOperation
If removing, removes
the WWN or iSCSI
names from the
existing host.
(Since WSAPI 1.2)
One or more WWN
to set for the host.
Null
WWN
array of string
FCWWNs
(Since WSAPI 1.2)
One or more iSCSI
names to set for the
host.
Null
name223
array of string
iSCSINames
(Since WSAPI 1.2)
If True, Remove
WWN(s) or iSCSI(s)
None
Boolean
forcePathRemoval
even if there are
VLUNs exported to the
host.
(Since WSAPI 1.2)
The ID of the persona
to modify the host’s
persona to.
Zero and negative
values
hostPersona Enum
number
persona
(Since WSAPI 1.2)
The description of the
host.
Null
descriptors object
HostDescriptors
descriptors
(Since WSAPI 1.2)
Add or remove.
Zero and negative
values
hostEditOperation
Enum
number
chapOperation
(Since WSAPI 1.2)
Initiator or target.
Zero and negative
values
hostChapOperationModeEnum
number
chapOperationMode
(Since WSAPI 1.2)
The chap name.
Null
Name223
string
chapName
(Since WSAPI 1.2)
54
Working with Hosts