Connectrix Brocade: REST API 스크립트 - FOS v8.2.x 및 FOS v9.x의 GET 명령 요청 차이
Summary: "POST" 명령 요청은 문제 없이 작동합니다. 그러나 "GET" 명령 요청 구문에 대한 Representational State Transfer Application Programming Interface 스크립트 실행은 FOS v8.2.x 및 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
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" 헤더는 문제없이 추출할 수 있습니다.
"Authorization-header"를 상속한 후 아래 명령을 수행해야 합니다.
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에서 위의 명령 실행이 실패하고 다음 오류가 발생합니다.
수신된 오류 메시지는 "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.