2016-11-29 50 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 
相关问题