Connectrix Brocade:REST APIスクリプト - FOS v8.2.xとFOS v9.xのGETコマンド リクエストの違い
Summary: 「POST」コマンド要求は問題なく動作します。 ただし、FOS v8.2.xとFOS v9.xでは、「GET」コマンド リクエスト構文のRepresentational State Transfer Application Programming Interface Scriptsの実行方法が異なります。
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を使用したSANスイッチで実行されているREST APIスクリプトの実行中に、コマンドが正常に実行される問題。
親コマンド:
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
応答ヘッダーから。「Authorization」ヘッダーは問題なく抽出できます。
「認証ヘッダー」を継承した後、次のコマンドを実行する必要があります。
curl -x get -h "accept=\"application/yang-data+json\" content-type=\"'application/yang-data+json\" authorization=\"Custom_Basic '上からの認証ヘッダー'\" " -i https://switch/rest/running/fabric/fabric-switch
FOS 9.1.xでは、上記のコマンドの実行が次のエラーで失敗します。「
HTTP/1.1 401 Unauthorized」というエラー メッセージが表示されます。
Cause
この問題の原因は、「fabric-switch」の「GET」クエリーがFOS v9.xコマンド実行の「fabric」クラスに追加されないことです。
Resolution
FOS v8.2.x
8.2.3xでは、「fabric-switch」の「GET」クエリーは「fabric」クラスとbrocade-fabricクラスにあるため、クエリーは「https://switch/rest/running/ fabric/fabric-switch [switch]」、「
https://switch/rest/running/ brocade-fabric/fabric-switch [switch]」コマンドで動作します。
https://switch/rest/running/ brocade-fabric/fabric-switch [switch]」コマンドで動作します。
FOS v9.x:
しかし、9.x以降のリリースでは、これは「fabric」クラスから削除され、「brocade-fabric」クラスでのみ含まれ、利用可能になります。
したがって、「https://switch/rest/running/ [switch]brocade-fabric/fabric-switch」というクエリーは正常に機能します。
したがって、「https://switch/rest/running/ [switch]brocade-fabric/fabric-switch」というクエリーは正常に機能します。
Additional Information
これらの詳細については、Broadcom REST APIガイドにBroadcomへのフィードバックが記載されています。
ただし、この動作の変更については、お客様レベルのKBドキュメントFAQ-14293を作成しており、これは進行中です。
ただし、この動作の変更については、お客様レベルのKBドキュメントFAQ-14293を作成しており、これは進行中です。
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.