Connectrix Brocade: REST API Komut Dosyaları - FOS v8.2.x ve FOS v9.x'te GET komut isteği farkı
Summary: POST" komut isteği sorunsuz çalışır. Ancak "GET" komut isteği söz dizimi için Temsili Durum Aktarımı Uygulama Programlama Arayüzü Komut Dosyalarının yürütülmesi FOS v8.2.x ve FOS v9.x'te farklılık gösterir. ...
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
FOS v8.2.x ile SAN Anahtarlarında çalışan REST api komut dosyalarını çalıştırırken sorun Komut yürütme başarılı.
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
Response-header'dan. "Authorization" başlığı sorunsuz bir şekilde çıkarılabilir.
Authorization-header" devralındıktan sonra aşağıdaki komut uygulanmalıdır:
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
FOS 9.1.x te yukarıdaki komut yürütmesi şu hatayla başarısız olur:
Alınan hata mesajı şudur: "HTTP/1.1 401 Yetkisiz"
Cause
Sorunun nedeni, "fabric-switch" için "GET" sorgusunun FOS v9.x komut yürütmelerinin "fabric" sınıfına eklenmemiş olmasıdır.
Resolution
FOS v8.2.x
8.2.3x'te 'fabric-switch' için 'GET' sorgusu 'fabric' ve brocade-fabric' sınıflarındadır , bu nedenle sorgu komut için çalışır:
"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:
Ancak 9.x'in sonraki sürümlerinde bu,'fabric' sınıfından kaldırılmıştır ve yalnızca "brocade-fabric" sınıfına dahil edilmiştir ve kullanılabilir.
Bu nedenle "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" sorgusu başarıyla çalışır.
Bu nedenle "https://switch/rest/running/ [switch]brocade-fabric/fabric-switch" sorgusu başarıyla çalışır.
Additional Information
Bu ayrıntıların Broadcom REST API rehberlerine eklenmesi için Broadcom a geri bildirim sağlanır.
Ancak, devam eden bu davranış değişikliği için müşteri düzeyinde KB belgesi SSS-14293 oluşturmuşlardır.
Ancak, devam eden bu davranış değişikliği için müşteri düzeyinde KB belgesi SSS-14293 oluşturmuşlardır.
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.