0
私はGETメソッドを使ってnifiの現在の状態を取得しています。ステータスを取得するためにPOSTメソッドを使用しようとすると、リモートサーバーは405エラーを返しました。これを解決する解決策があることを私に教えてください。前もって感謝します。私はapache nifiでフロー状態を取得するためにリクエストメソッド "POST"を使用できますか?
私はGETメソッドを使ってnifiの現在の状態を取得しています。ステータスを取得するためにPOSTメソッドを使用しようとすると、リモートサーバーは405エラーを返しました。これを解決する解決策があることを私に教えてください。前もって感謝します。私はapache nifiでフロー状態を取得するためにリクエストメソッド "POST"を使用できますか?
ステータスエンドポイントは、GET
要求のみを受け入れます。その他のHTTPメソッドではエラーが発生し、405ステータスコードが返されます。 POST
を使用しようとしている理由はありますか?ドキュメントには、GET
しか受け付けられないと記載されています。
GET /flow/status
Gets the current status of this NiFi
Request
consumes:
*/*
Response
produces:
application/json
Status Code Type Description
200 ControllerStatusEntity successful operation
400 string NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
401 string Client could not be authenticated.
403 string Client is not authorized to make this request.
409 string The request was valid but NiFi was not in the appropriate state to process it. Retrying the same request later may be successful.
Authorization
Read - /flow