Virtual Array:Create Virtual Array

Search (SHIFT+S)



Create Virtual Array

POST /vdc/varrays

Create VirtualArray


Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN
  • RESTRICTED_SYSTEM_ADMIN

Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
<varray_create>
<name> The name of the virtual array. String Valid Values:
  •  Length: 2..128
<block_settings>    
<auto_san_zoning> Boolean
</block_settings>      
<object_settings>    
<device_registered> if device is registered Boolean Valid Values:
  •  true
  •  false
<protection_type> varray protection type String
</object_settings>      
<auto_san_zoning> Specifies whether or not zoning is automatic for the virtual array. Boolean Valid Values:
  •  true
  •  false
<device_registered> Boolean
<protection_type> varray protection type String
</varray_create>

Response Body

VirtualArray details

Field Description Type Notes
<varray>
<block_settings>    
<auto_san_zoning> Boolean
</block_settings>      
<object_settings>    
<device_registered> if device is registered Boolean Valid Values:
  •  true
  •  false
<protection_type> varray protection type String
</object_settings>      
<auto_san_zoning> ViPR creates the required zones in the SAN fabric when a request to export a volume is made in this virtualstorage array. This will allow the exported volume to be visible on the specified hosts. Boolean Valid Values:
  •  true
  •  false
<name> The name assigned to this resource in ViPR. The resource name is set by a user and can be changed at any time. It is not a unique identifier. String
<id> An identifier that is generated by ViPR when the resource is created. The resource ID is guaranteed to be unique and immutable across all virtual data centers for all time. URI Valid Values:
  •  urn:storageos:resource-type:UUID:
<link> A hyperlink to the details for this resource
<creation_time> A timestamp that shows when this resource was created in ViPR DateTime Valid Values:
  •  YYYY-MM-DDTHH:mm:ssZ
<tags> Keywords and labels that can be added by a user to a resource to make it easy to find when doing a search.
<tag> String 0-* Elements
</tags>
<inactive> Whether or not the resource is inactive. When a user removes a resource, the resource is put in this state before it is removed from the ViPR database. Boolean Valid Values:
  •  true
  •  false
<global> Boolean
<remote> Boolean
<vdc>    
<id> ViPR ID of the related object URI
<link> A hyperlink to the related object
</vdc>      
<internal> Whether or not the resource is an internal resource. Boolean Valid Values:
  •  true
  •  false
</varray>

Examples

Request
POST https://192.168.0.0:4443/vdc/varrays HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>

<varray_create>
    <auto_san_zoning>true</auto_san_zoning>
    <name>Myvarray20</name>
</varray_create>
Response
HTTP/1.1 200 OK 
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     <varray>
          <creation_time>1379559712100</creation_time>
          <id>urn:storageos:VirtualArray:88543171-9a1b-4133-ac71-d93990d3bebd:</id>
          <inactive>false</inactive>
          <link href="/vdc/varrays/urn:storageos:VirtualArray:88543171-9a1b-4133-ac71-d93990d3bebd:" rel="self"/>
          <name>Myvarray20</name>
          <tags/>
          <auto_san_zoning>true</auto_san_zoning>
     </varray>
Notes: