<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Imran,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Perhaps the confusion is between the GUI itself and the Gui server?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">The RestAPI can be fully accessed from the command line of any machine that can reach the URL of the GUI server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">I do this regularly using small Python scripts.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">ie The GUI server provides *<b>both</b>*   the web based GUI and the RestAPI<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">What the link you posted below (using Swagger) does is provide a way to explore and learn the RestAPI from completely inside a web browser.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Definitely recommended as a teaching aid until you feel comfortable just using say ‘curl’ from the Linux command line or a short piece of Python.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">To use the RestAPI, you will need the GUI server process to be running. Also remember it uses the same username/passwords for accessing both. You can create these using /usr/lpp/mmfs/gui/cli/mkuser 
 I strongly recommend creating a user that only has monitoring permissions for use with the RestAPI. That way you are guaranteed not to break anything from a RestAPI call.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Daniel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:12.0pt"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Daniel Kidger<br>
</span></b><span style="font-size:11.0pt;color:black">HPC Storage Solutions Architect, EMEA</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#040400"><a href="mailto:daniel.kidger@hpe.com"><span style="color:#040400">daniel.kidger@hpe.com</span></a><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">+44 (0)7818 522266  <br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#040400"><a href="http://www.hpe.com/"><b><span style="color:black;text-decoration:none">hpe.com</span></b></a><br>
<br>
<br>
</span><span style="font-size:11.0pt"><img border="0" width="190" height="96" style="width:1.9791in;height:1.0in" id="Picture_x0020_1" src="cid:image001.png@01DA8CBD.7C8F88E0"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org>
<b>On Behalf Of </b>Imam Toufique<br>
<b>Sent:</b> Friday, April 12, 2024 9:06 AM<br>
<b>To:</b> gpfsug-discuss@spectrumscale.org<br>
<b>Subject:</b> [gpfsug-discuss] accessing REST API endpoint details<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello, <o:p></o:p></p>
<div>
<p class="MsoNormal">I am looking to access the REST API endpoints , this link , <a href="https://www.ibm.com/docs/en/storage-scale/5.1.5?topic=ssma-accessing-spectrum-scale-rest-api-endpoint-details-through-swagger-api-explorer#bl1adm_accessingAPIdetails__title__2">https://www.ibm.com/docs/en/storage-scale/5.1.5?topic=ssma-accessing-spectrum-scale-rest-api-endpoint-details-through-swagger-api-explorer#bl1adm_accessingAPIdetails__title__2</a>
 , explains about a process accessing this via some GPFS GUI server.  I am not sure what that means.  I have never used any GUI server for any GPFS related setup or config or management.  <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Does anyone know a CLI method of accessing the REST API endpoint details.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance.<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">--IT<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>