Connectrix Brocade: REST API Scripts - GET command request difference in FOS v8.2.x and FOS v9.x

Resumen: The "POST" command request works without any issues. However, Representational State Transfer Application Programming Interface Scripts execution for "GET" command request syntax varies in FOS v8.2.x and FOS v9.x. ...

Este artículo se aplica a Este artículo no se aplica a Este artículo no está vinculado a ningún producto específico. No se identifican todas las versiones del producto en este artículo.

Síntomas


Issue while running the REST api-scripts that are running on SAN-Switches with FOS v8.2.x the command execution is successful.
Parent command:
Curl -X POST -H "Accept=\"application/yang-data+json\" Content-Type=\"'application/yang-data+json\" --user "user:password" -i https://switch/rest/login

From the response-header. The "Authorization" header can be extracted with no issue.

Post inheriting the "Authorization-header", the below command must be performed:
Curl -X GET -H "Accept=\"application/yang-data+json\" Content-Type=\"'application/yang-data+json\" Authorization=\"Custom_Basic 'Authorization-header from above'\" " -i https://switch/rest/running/fabric/fabric-switch

On FOS 9.1.x the above command execution fails with error:
The error message received is "HTTP/1.1 401 Unauthorized"

Causa


The cause of the issue is that the "GET" query for "fabric-switch" is not added in the "fabric" class of FOS v9.x command executions.

Resolución


FOS v8.2.x
In 8.2.3x the 'GET' query for 'fabric-switch' is in 'fabric' and brocade-fabric' classes so the query works for command:
"https://switch/rest/running/fabric/fabric-switch [switch]"
"https://switch/rest/running/brocade-fabric/fabric-switch [switch]"

FOS v9.x:
But in later releases from 9.x this is removed from 'fabric' class and is only included and available in the "brocade-fabric" class.
Hence the query as "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" works successfully.

 

Información adicional

Feedback to Broadcom is given to add these details in the Broadcom REST API guides.
However, they have created customer level KB document FAQ-14293 for this change in behavior which is in progress.

Productos afectados

Connectrix B-Series Fabric OS 9.X

Productos

Connectrix B-Series
Propiedades del artículo
Número del artículo: 000224736
Tipo de artículo: Solution
Última modificación: 03 may 2024
Versión:  1
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.