0
我正在使用GET方法來獲取nifi的當前狀態。當我嘗試使用POST方法獲取狀態時,遠程服務器返回了一個405錯誤。請讓我知道是否有任何解決方案來解決這個問題。提前致謝。我們可以使用請求方法「POST」獲取apache中的流狀態nifi
我正在使用GET方法來獲取nifi的當前狀態。當我嘗試使用POST方法獲取狀態時,遠程服務器返回了一個405錯誤。請讓我知道是否有任何解決方案來解決這個問題。提前致謝。我們可以使用請求方法「POST」獲取apache中的流狀態nifi
狀態端點只接受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