HP OneView REST API Reference

logical-interconnect-groups
logical-interconnect-groups.html[10/17/2013 10:35:26 AM]
Response Description
LogicalInterconnectGroupCollection A paginated collection of logical interconnect group resources
Response Codes
REST API Response Codes
Examples
Gets the first 10 logical interconnect groups:
GET https://{appl}/rest/logical-interconnect-groups?start=0&count=10
Gets all the logical interconnect groups in the domain:
GET https://{appl}/rest/logical-interconnect-groups
POST Creates a logical interconnect group.
Parameter Attributes Description
Request Header Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the current release, this must be set to "X-API-Version:3"
Request Body Attributes Description
LogicalInterconnectGroup Required The logical interconnect group to be created
Response Description
TaskResourceV2 An object that can be used to track the create logical interconnect group operation to completion
Response Codes
REST API Response Codes
Examples
Create an logical interconnect group with an
"HP FlexFabric 10Gb/24 Port Module" in bay 1 and 2.
Step 1: Get all the interconnect types using the rest API /rest/interconnect-types.
Step 2: Assume the following values from the /rest/interconnect-types GET:
"switchModel" : "HP VC FlexFabric 10Gb/24-Port Module",
"uri" : "/rest/interconnect-types/46d7ffad-4424-4e36-acf3-b379c3116206"
Step 3: Using the above value to fill in the values for the field
"permittedInterconnectTypeUri" and create a request body:
POST https://{appl}/rest/logical-interconnect-groups
Request body:
{
"category" : null,
"created" : null,
"description" : null,
"eTag" : null,
"uplinkSets" : [ ],
"modified" : null,
"name" : "LST4",
"state" : "Active",
"status" : null,
"interconnectMapTemplate" : { "interconnectMapEntryTemplates" : [ { "logicalDownlinkUri" : null,
"logicalLocation" : { "locationEntries" : [ { "relativeValue" : "1",
"type" : "Bay"
},
{ "relativeValue" : 1,
"type" : "Enclosure"
}
] },
"permittedInterconnectTypeUri" : "/rest/interconnect-types/46d7ffad-4424-4e36-acf3-b379c3116206"