amar_deep's profile

16 Messages

 • 

294 Points

Thu, Aug 5, 2021 11:54 AM

Getting 500 error on updating the port name using ruckus ICX API

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} 

http://docs.ruckuswireless.com/smartzone/5.2.0/switch-management-public-api-reference-guide-520.html#switch-port-settings

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. 

Accepted Solution

Official Rep

 • 

137 Messages

 • 

4.1K Points

3 m ago

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

(edited)

Official Rep

 • 

210 Messages

 • 

3.1K Points

3 m ago

Important Announcement