2016-11-29 43 views

回答

3

狀態端點只接受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 
相關問題