Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Post 我们可以使用“请求方法”吗;邮政「;用于在ApacheNIFI中获取流状态_Post_Apache Nifi - Fatal编程技术网

Post 我们可以使用“请求方法”吗;邮政「;用于在ApacheNIFI中获取流状态

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方法获取nifi的当前状态。当我尝试使用POST方法获取状态时,远程服务器返回405错误。请告诉我有什么解决办法。提前感谢。

状态端点只接受
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