cancel
Showing results for 
Search instead for 
Did you mean: 

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

amar_deep
New Contributor III

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...

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. 

1 ACCEPTED SOLUTION

hashim_bharooc1
RUCKUS Team Member

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

View solution in original post

2 REPLIES 2

hashim_bharooc1
RUCKUS Team Member

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

jijo_panangat
RUCKUS Team Member

Hello Amar,

Could you try using the PATCH method listed below.

http://docs.ruckuswireless.com/fastiron/fastiron-09000-restconfapi.html#jump-Interface-updateportdes...

Thanks

Jijo