08-05-2021 04:54 AM
Hi Guys,
I am getting a 500 error on updating the port name on the ruckus ICX switch using API calls.
Response from the API :
{"timestamp":1628163014255,"path":"/switchm/api/v8_1/portSettings/abcd2-db4f-4e54-bea7-c8d7109efrca/","status":500,"error":"Internal Server Error","message":null}
I am using the portSettings method mentioned in the above documentation.
Sample code:
$url = 'https://IP/switchm/api/v8_1/portSettings';
$data_array = array(
'portName'=> 'TestName'
);
$url = $url."/$portId/?serviceTicket=$serviceTicketId";
callAPI('PUT', $url, json_encode($data_array));
I am making a curl request using the PUT method.
I am able to fetch the port listing but not able to update the name of any port.
Please suggest.
Solved! Go to Solution.
08-06-2021 02:09 PM
Hi Amar,
Hope you are doing great!!!
This looks like it's using REST API through the SZ and not directly with the ICX.
Please open this question on Smartzone Forum.
Hope this helps.
Best Regards
Thanks
Hashim