HP 3PAR Web Service API 1.3.1 Developer's Guide

VLUN Creation Example
The following example creates a matched VLUN type template for test_vv02 volume.
HTTP Request
POST /api/v1/vluns HTTP/1.1
Host: storsys1.example.com:8080
Accept: application/json
Content-Type: application/json
X-HP3PAR-WSAPI-SessionKey: 2-33fe8891e288b34b3f914410e7cc7907-a93d1c50
{
"volumeName":"test_vv02",
"lun":252,
"hostname":"mysystem",
"portPos":{
"node": 2,
"slot": 2,
"cardPort": 4
},
"noVcn":false,
"overrideLowerPriority":false
}
HTTP Response
HTTP/1.1 201 Created
Date: Mon, 16 Apr 2012 06:44:26 GMT
Server: hp3par-wsapi
Cache-Control: no-cache
Pragma: no-cache
Location: /api/v1/vluns/test_vv02,252,mysystem,2:2:4
Removing a VLUN
This section describes the HTTP request and response for removing a virtual volume’s SCSI LUN
export definition from the system. To remove the VLUN definition, use the HTTP DELETE method in
the URI:
https://<storage_system>:8080/api/v1/vluns/<volume_name>,<lun>,
<host_name>[,<port>][?<option>]
NOTE: Square brackets ([ ]) indicate that the variable is optional.
NOTE: Any user with the Super or Edit role, or any role granted with the vlun_remove right,
can perform this operation.
Table Table 95 (page 104) shows the URI parameters that are sent in the URI for VLUN removal.
Table 95 URI Parameters for VLUN Removal
DescriptionIgnored Values
URI Parameter
1
Name of the volume or VV set to be exported.None (required)<volume_name>
The VV set should be in
set:{volumeset_name} format.
LUN.None (required)<lun>
104 Working with Virtual LUNs