EMC ViPR REST API

Search (SHIFT+S)

API Reference


Create Network

POST /vdc/varrays/{id}/networks

Create a network and assign it to the virtual array.

idthe URN of a ViPR 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
<network_create>
<name> Name of the network; must be unique. String Valid Values:
  •  Length: 2..128
<transport_type> Transport type of the network. Valid values: FC = Fibre Channel IP Ethernet String
<varrays> The virtual arrays to which the network is associated.
<varray> URI 0-* Elements
</varrays>
<endpoints> The endpoints of the network. For an FC network, the endpoints are the WWNs of the storage port and host initiators that are in the network. For an IP network, these are the IQNs, EUIs, IP addresses or host names for the hosts and the storage ports.
<endpoint> String 0-* Elements
</endpoints>
</network_create>

Response Body

Network details

Field Description Type Notes
<network>
<discovered> Indicates whether the network was discovered by a network system or manually created. Valid values: true = network was discovered by a network system false = network was manually created Boolean
<endpoints> List of endpoints associated with the network.
<endpoint> String 0-* Elements
</endpoints>
<endpoints_discovered> List of endpoints associated with the network. Each endpoint is indexed to "true" indicating it was discovered or "false" indicating it was manually added into the network.
<endpoint_discovered>     0-* Elements
<alias> String
<name> String
<value> String
</endpoint_discovered>      
</endpoints_discovered>
<fabric_id> Fabric name or VSAN (Virtual Storage Area Network) ID for the network if discovered by a network system. String
<varray>    
<id> ViPR ID of the related object URI
<link> A hyperlink to the related object
</varray>      
<network_systems> List of network systems that manage the network. These are the network systems where the network was discovered. Empty list for manually created network.
<network_system> String 0-* Elements
</network_systems>
<assigned_varrays> List of virtual arrays to which the network is assigned.
<assigned_varray> String 0-* Elements
</assigned_varrays>
<connected_varrays> List of virtual arrays to which the network is implicitly connected because a storage port in the network has been assigned to the virtual array.
<connected_varray> String 0-* Elements
</connected_varrays>
<registration_status> Indicates whether the network and its endpoints can be used for provisioning operation. Only registered networks can be used for provisioning operations. Valid values: UNREGISTERED REGISTERED UNKNOWN String
<transport_type> Transport type for the network. Valid values: IP FC Ethernet. String
<routed_networks> A list of networks that are routed to this network Valid value: FC
<routed_network> String 0-* Elements
</routed_networks>
<native_guid> The native unique identifier for this resource

Network Transport Types:

  • FC = Fibre-Channel

Network System Types:

  • BROCADE
  • MDS

Storage System Types:

  • CELERRA = VNX File
  • CLARIION = VNX Block
  • ISILON
  • NETAPP
  • SYMMETRIX
Valid values: Network NetworkSystem StoragePool StoragePort StorageSystem StorageTier:VMAX StorageTier: VNX
String
<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
<link> A hyperlink to the details for this resource
<creation_time> A timestamp that shows when this resource was created in ViPR DateTime
<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
<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
</network>

JSON Example

Request
POST: https://192.168.0.0:4443/vdc/varrays/urn:storageos:VirtualArray:3746b1cc-1980-4fe0-b897-a018ac08f224:/networks.json HTTP/1.1

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

{
    "name": "fctz_a",
    "transport_type": "FC"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "creation_time": 1380721826906,
    "discovered": false,
    "endpoints": [],
    "endpoints_discovered": [],
    "id": "urn:storageos:Network:0e116bce-f137-4b89-a5d5-c171c6c67b4f:",
    "inactive": false,
    "link": {
        "href": "/vdc/networks/urn:storageos:Network:0e116bce-f137-4b89-a5d5-c171c6c67b4f:",
        "rel": "self"
    },
    "name": "fctz_a",
    "native_guid": "",
    "registration_status": "REGISTERED",
    "tags": [],
    "transport_type": "FC",
    "varray": {
        "id": "urn:storageos:VirtualArray:3746b1cc-1980-4fe0-b897-a018ac08f224:",
        "link": {
            "href": "/vdc/varrays/urn:storageos:VirtualArray:3746b1cc-1980-4fe0-b897-a018ac08f224:",
            "rel": "self"
        }
    }
}