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

Working with Hosts, Creating a Host, Host Creation Success

Page 52 highlights

5 Working with Hosts This chapter describes how to manage hosts. The sections apply to creation, modification, removal, and query operations on hosts. Creating a Host Create a host using the HTTP POST method. Use the following URI: https://:8080/api/v1/hosts Table 40 (page 52) shows the members that the message body can include. NOTE: Any user with Super or Edit role, or any role granted the host_create right, can perform this operation. Access to all domains is required for this operation. Table 40 Message Body JSON Objects for Host Creation Member name JSON Type string Value Range name31 Mandatory Yes Ignored Values Null Description Specifies the name of the host. (Since WSAPI 1.2) persona number HostPersona Enum No Zero and negative ID of the persona values to assign to the host. (Since WSAPI 1.2) FCWWNs array of string WWN No Null One or more WWN to set for the host. (Since WSAPI 1.2) iSCSINames array of string name223 No Null One or more iSCSI names to set for the host. (Since WSAPI 1.2) domain string name31 No Null Create the host in the specified domain, or default domain if unspecified. (Since WSAPI 1.2) forceTearDown Boolean No None If True, force to tear down low-priority VLUN exports. (Since WSAPI 1.2) descriptors HostDescriptors descriptors object No Null See HostDescriptors. (Since WSAPI 1.2) When creating a host, the name is required. Other members are optional. Host Creation Success Upon successful creation of the host, the location portion of the response header contains the URI for the newly created host in the following format: 52 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

5 Working with Hosts
This chapter describes how to manage hosts. The sections apply to creation, modification, removal,
and query operations on hosts.
Creating a Host
Create a host using the HTTP POST method. Use the following URI:
https://
<storage system>
:8080/api/v1/hosts
Table 40 (page 52)
shows the members that the message body can include.
NOTE:
Any user with Super or Edit role, or any role granted the
host_create
right, can perform
this operation. Access to all domains is required for this operation.
Table 40 Message Body JSON Objects for Host Creation
Description
Ignored Values
Mandatory
Value Range
JSON Type
Member
Specifies the name
of the host.
Null
Yes
name31
string
name
(Since WSAPI 1.2)
ID of the persona
to assign to the
host.
Zero and negative
values
No
HostPersona Enum
number
persona
(Since WSAPI 1.2)
One or more
WWN to set for
the host.
Null
No
WWN
array of string
FCWWNs
(Since WSAPI 1.2)
One or more iSCSI
names to set for
the host.
Null
No
name223
array of string
iSCSINames
(Since WSAPI 1.2)
Create the host in
the specified
Null
No
name31
string
domain
domain, or default
domain if
unspecified.
(Since WSAPI 1.2)
If True, force to
tear down
None
No
Boolean
forceTearDown
low-priority VLUN
exports.
(Since WSAPI 1.2)
See
HostDescriptors.
Null
No
descriptors object
HostDescriptors
descriptors
(Since WSAPI 1.2)
When creating a host, the name is required. Other members are optional.
Host Creation Success
Upon successful creation of the host, the location portion of the response header contains the URI
for the newly created host in the following format:
52
Working with Hosts