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