Connectrix Brocade: Scripts da API REST – Diferença de solicitação de comando GET no FOS v8.2.x e FOS v9.x
Zusammenfassung: A solicitação de comando "POST" funciona sem problemas. No entanto, a execução de scripts de interface de programação de aplicativo de transferência de estado representacional para a sintaxe de solicitação de comando "GET" varia no FOS v8.2.x e FOS v9.x. ...
Dieser Artikel gilt für
Dieser Artikel gilt nicht für
Dieser Artikel ist nicht an ein bestimmtes Produkt gebunden.
In diesem Artikel werden nicht alle Produktversionen aufgeführt.
Symptome
Problema ao executar os scripts da API REST em execução em switches SAN com FOS v8.2.x: a execução do comando foi bem-sucedida.
Comando pai:
Curl -X POST -H "Accept=\"application/yang-data+json\" Content-Type=\"'application/yang-data+json\" --user "user:password" -i https://switch/rest/login
Curl -X POST -H "Accept=\"application/yang-data+json\" Content-Type=\"'application/yang-data+json\" --user "user:password" -i https://switch/rest/login
A partir do cabeçalho de resposta. O cabeçalho "Authorization" pode ser extraído sem problemas.
Após herdar o "Authorization-header", o seguinte comando deve ser executado:
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
No FOS 9.1.x, a execução do comando acima falha com o erro:
A mensagem de erro recebida é "HTTP/1.1 401 Unauthorized"
Ursache
A causa do problema é que a consulta "GET" para "fabric-switch" não foi adicionada à classe "fabric" das execuções de comandos do FOS v9.x.
Lösung
FOS v8.2.x
No 8.2.3x, a consulta 'GET' para 'fabric-switch' está nas classes 'fabric' e brocade-fabric' , então a consulta funciona para o comando:
"https://switch/rest/running/ fabric/fabric-switch [switch]"
"https://switch/rest/running/ brocade-fabric/fabric-switch [switch]"
"https://switch/rest/running/ fabric/fabric-switch [switch]"
"https://switch/rest/running/ brocade-fabric/fabric-switch [switch]"
FOS v9.x:
Mas em versões posteriores do 9.x isso é removido daclasse 'fabric' e só está incluído e disponível na classe "brocade-fabric".
Portanto, a consulta como "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" funciona com sucesso.
Portanto, a consulta como "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" funciona com sucesso.
Weitere Informationen
O feedback para a Broadcom é fornecido para adicionar esses detalhes nos guias da API REST da Broadcom.
No entanto, eles criaram a FAQ-14293 do documento KB no nível do cliente sobre essa mudança de comportamento que está em andamento.
No entanto, eles criaram a FAQ-14293 do documento KB no nível do cliente sobre essa mudança de comportamento que está em andamento.
Betroffene Produkte
Connectrix B-Series Fabric OS 9.XProdukte
Connectrix B-SeriesArtikeleigenschaften
Artikelnummer: 000224736
Artikeltyp: Solution
Zuletzt geändert: 03 Mai 2024
Version: 1
Antworten auf Ihre Fragen erhalten Sie von anderen Dell NutzerInnen
Support Services
Prüfen Sie, ob Ihr Gerät durch Support Services abgedeckt ist.