Connectrix Brocade: REST API-scripts - Verschil in GET-opdrachtaanvraag in FOS v8.2.x en FOS v9.x
Summary: De opdrachtaanvraag "POST" werkt zonder problemen. De uitvoering van de Representational State Transfer Application Programming Interface Scripts voor de syntaxis van het opdrachtverzoek GET varieert echter in FOS v8.2.x en FOS v9.x. ...
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Probleem tijdens het uitvoeren van de REST API-scripts die worden uitgevoerd op SAN-switches met FOS v8.2.x, is het uitvoeren van de opdracht geslaagd.
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
Curl -X POST -H "Accept=\"application/yang-data+json\" Content-Type=\"'application/yang-data+json\" --user "user:password" -i https://switch/rest/login
In de response-header. De header "Authorization" kan zonder problemen worden uitgepakt.
Nadat de "Authorization-header" is overgenomen, moet de onderstaande opdracht worden uitgevoerd:
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
Op FOS 9.1.x mislukt het uitvoeren van de bovenstaande opdracht met foutmelding:
De ontvangen foutmelding is "HTTP/1.1 401 Unauthorized"
Cause
De oorzaak van het probleem is dat de "GET"-query voor "fabric-switch" niet wordt toegevoegd in de "fabric"-klasse van FOS v9.x-opdrachtuitvoeringen.
Resolution
FOS v8.2.x
In 8.2.3x is de 'GET'-query voor 'fabric-switch' in de klassen 'fabric' en 'brocade-fabric', dus de query werkt voor de opdracht:
"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:
Maar in latere releases van 9.x is dit verwijderd uitde 'fabric' klasse en is het alleen opgenomen en beschikbaar in de "brocade-fabric" klasse.
Daarom werkt de query "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" met succes.
Daarom werkt de query "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" met succes.
Additional Information
Er wordt feedback gegeven aan Broadcom om deze gegevens toe te voegen in de Broadcom REST API-handleidingen.
Ze hebben echter KB-document FAQ-14293 op klantniveau gemaakt voor deze gedragswijziging die wordt uitgevoerd.
Ze hebben echter KB-document FAQ-14293 op klantniveau gemaakt voor deze gedragswijziging die wordt uitgevoerd.
Affected Products
Connectrix B-Series Fabric OS 9.XProducts
Connectrix B-SeriesArticle Properties
Article Number: 000224736
Article Type: Solution
Last Modified: 03 May 2024
Version: 1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.