エラー- API呼び出しの実行中に「要求されたURLはこのサーバで見つかりませんでした」
環境
- Brocade
- サンナビ
問題
- 読み取り専用ユーザからSANNAVからAPI呼び出しを使用してデータを取得しようとすると、 エラーが発生し
The requested URL was not found on this server
、 正しいsessionId応答を取得できません。
curl -vvv -k -H "username: " -H "password: " -H "Accept:application/json" -X POST https://10.226.xx.xx/external-api/v1/login
/v1/login
* Trying 10.226.xx.xx...
* TCP_NODELAY set
* Connected to 10.226.xx.xx (10.226.xx.xx) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS alert, handshake failure (552):
* error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
* Closing connection 0
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
curl -k -H "username" -H "password" -H "Accept:application/json" -X POST https://10.229.xx.xx/external-api/v1/login
The requested URL was not found on this server
curl -k -u "" -H "Accept:application/json" -X POST https://10.225.xx.xx/#/external-api/v1/login
Enter host password for user 'user':
{
"code": "4XX",
"error": "Proxy Service - Client error response",
"error_description": "Proxy Service - Check your input parameters and HTTP body"
}
- ログイン後にスラッシュで試しましたが、 それでも運がありませんでした-
curl -k -H "username" -H "password" -H "Accept:application/json" -X POST https://10.229.xx.xx/external-api/v1/login/
まったく同じURLを試してみると エラーが返され
HTTP/1.1 404 Not Found
ます。 詳細な出力を以下に示します-> POST /external-api/v1/login/ HTTP/1.1
> Host: 10.229.xx.xx
> User-Agent: curl/7.61.1
> Accept: */*
> Content-Type:application/json
>
* TLSv1.3 (IN), TLS handshake, [no content] (0):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, [no content] (0):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS app data, [no content] (0):
< HTTP/1.1 404 Not Found
< Date: Thu, 28 Mar 2024 13:26:47 GMT
< Server: Apache
< Strict-Transport-Security: max-age=31536000; includeSubDomains