Post 我们可以使用“请求方法”吗;邮政「;用于在ApacheNIFI中获取流状态
我正在使用GET方法获取nifi的当前状态。当我尝试使用POST方法获取状态时,远程服务器返回405错误。请告诉我有什么解决办法。提前感谢。状态端点只接受Post 我们可以使用“请求方法”吗;邮政「;用于在ApacheNIFI中获取流状态,post,apache-nifi,Post,Apache Nifi,我正在使用GET方法获取nifi的当前状态。当我尝试使用POST方法获取状态时,远程服务器返回405错误。请告诉我有什么解决办法。提前感谢。状态端点只接受GET请求。任何其他HTTP方法都将导致错误并返回405状态代码。您尝试使用POST有什么原因吗?文档说明它只接受GET GET /flow/status Gets the current status of this NiFi Request consumes: */* Response produces: application/json
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
状态端点仅接受
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