0% found this document useful (0 votes)
16 views11 pages

Create Host Group via REST API Guide

This document provides a step-by-step guide on creating a host group using the platform REST API, including adding a WWN and LUN to the group. It outlines the necessary API calls, required parameters in JSON format, and authentication procedures. The document is applicable to various VSP models and includes examples using Postman, Python, and Curl.

Uploaded by

mohadka
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views11 pages

Create Host Group via REST API Guide

This document provides a step-by-step guide on creating a host group using the platform REST API, including adding a WWN and LUN to the group. It outlines the necessary API calls, required parameters in JSON format, and authentication procedures. The document is applicable to various VSP models and includes examples using Postman, Python, and Curl.

Uploaded by

mohadka
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

How to Create a Host Group Using REST API

Content
Objective
 How to create a host group using platform REST API
 How to add a wwn to a host group using platform REST API
 How to give a wwn a nickname using platform REST API
 How to add a ldev to a host group using platform REST API

Environment
 Platform REST API
 VSP G/F350 G/F370 G/F700 G/F900
o VSP G350, G370, G700, G900
o VSP F350, F370, F700, F900
 Virtual Storage Platform (VSP) E Series
o VSP E590
o VSP E790
o VSP E990
o HM900
 No SVP
 Basic Authentication

Procedure
1. Use an account with sufficient privileges
2. Make sure to configure the appropriate headers for authentication
3. Validate the available host group numbers
o GET [Link]
4. Create a host group with the following URL
o POST [Link]
 The following is required in POST BODY in JSON format
 portId
 hostGroupNumber (Recommended)
 hostGroupName
 hostMode (Recommended)
5. Check if the jobs completed successfully
o GET [Link]
6. Add a WWN to the newly created host group
o POST [Link]
 The following is required in POST BODY in JSON format
 hostWwn
 portId
 hostGroupNumber
7. Give the newly added WWN a meaningful nickname
o PATCH [Link]
wwns/portID,hostGroupNumber,hostWwn
 The following is required in POST BODY in JSON form
 wwnNickname
8. Add a LUN (ldev) to the newly created host group
o POST [Link]
 The following is required in POST BODY in JSON format
 portId or portIds
 hostGroupNumber
 ldevId
 This is the CU:LDEV in decimal form
 example: 01:02 = ldevId 258
 lun
9. Check if the jobs completed successfully
o GET [Link]

Example From Postman

 Step 3 is to use GET verb to see available host group numbers


 Step 4 is to use POST verb to create the host group

 Step 6 is to use POST verb to add the WWN to the host group
 Step 7 is to use PATCH verb to update the WWN nickname
 Step 8 is to use POST verb to add the ldev as a LUN into the host group

Example From Python


 Step 3 is to use GET verb to see available host group numbers

 Step 4 is to use POST verb to create the host group

 Step 6 is to use POST verb to add the WWN to the host group

 Step 7 is to use PATCH verb to update the WWN nickname


 Step 8 is to use POST verb to add the ldev as a LUN into the host group

Example From Curl

 Step 3 is to use GET verb to see available host group numbers

Step 4 is to use POST verb to create the host group


 Step 6 is to use POST verb to add the WWN to the host group

 Step 7 is to use PATCH verb to update the WWN nickname

 Step 8 is to use POST verb to add the ldev as a LUN into the host group

Documentation

The information above can be found in document id MK-94HM8050 "REST API Reference Guide"
Keywords
[Link]
e_a_Host_Group_Using_REST_API
Solution ID
240403050042012
Last Modified Date
09/03/2024 12:21:53 PM
Attributes
Page Privacy and Permission Assignment

 Page Privacy: Private


 Page Level Permissions: Employee; Service Partner; Customer; Knowledge Author; Knowledge Editor; IT;
eServices; Knowledge Draft
 Article: howto
 Pagetype: knowledgearticle

Taxonomy

 Storage > VSP G130 G/F350 G/F370 G/F700 G/F900

Collections

 Customer

Go to Original Solution

Upland RightAnswers Portal - Version 2024R2

You might also like