Skip to main content

RemoteProcessGroups

Struct RemoteProcessGroups 

Source
pub struct RemoteProcessGroups<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> RemoteProcessGroups<'a>

Source

pub async fn remove_remote_process_group( &self, id: &str, version: Option<&str>, client_id: Option<&str>, disconnected_node_acknowledged: Option<bool>, ) -> Result<RemoteProcessGroupEntity, NifiError>

Deletes a remote process group

Calls DELETE /nifi-api/remote-process-groups/{id}.

§Parameters
  • id: The remote process group id.
  • version: The revision is used to verify the client is working with the latest version of the flow.
  • client_id: If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
  • disconnected_node_acknowledged: Acknowledges that this node is disconnected to allow for mutable requests to proceed.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions
  • Write - /remote-process-groups/{uuid}
  • Write - Parent Process Group - /process-groups/{uuid}
Source

pub async fn get_remote_process_group( &self, id: &str, ) -> Result<RemoteProcessGroupEntity, NifiError>

Gets a remote process group

Calls GET /nifi-api/remote-process-groups/{id}.

§Parameters
  • id: The remote process group id.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Read - /remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group( &self, id: &str, body: &RemoteProcessGroupEntity, ) -> Result<RemoteProcessGroupEntity, NifiError>

Updates a remote process group

Calls PUT /nifi-api/remote-process-groups/{id}.

§Parameters
  • id: The remote process group id.
  • body: The remote process group configuration details.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid}.

Source

pub async fn clear_bulletins( &self, id: &str, body: &ClearBulletinsRequestEntity, ) -> Result<ClearBulletinsResultEntity, NifiError>

Clears bulletins for a remote process group

Calls POST /nifi-api/remote-process-groups/{id}/bulletins/clear-requests.

§Parameters
  • id: The remote process group id.
  • body: The clear bulletin request.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group_input_port( &self, id: &str, port_id: &str, body: &RemoteProcessGroupPortEntity, ) -> Result<RemoteProcessGroupPortEntity, NifiError>

Updates a remote port

Note: This endpoint is subject to change as NiFi and it’s REST API evolve.

Calls PUT /nifi-api/remote-process-groups/{id}/input-ports/{port-id}.

§Parameters
  • id: The remote process group id.
  • port_id: The remote process group port id.
  • body: The remote process group port configuration details.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group_input_port_run_status( &self, id: &str, port_id: &str, body: &RemotePortRunStatusEntity, ) -> Result<RemoteProcessGroupPortEntity, NifiError>

Updates run status of a remote input port

Note: This endpoint is subject to change as NiFi and it’s REST API evolve.

Calls PUT /nifi-api/remote-process-groups/{id}/input-ports/{port-id}/run-status.

§Parameters
  • id: The remote process group id.
  • port_id: The remote process group port id.
  • body: The remote process group port run status details.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid} or /operation/remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group_output_port( &self, id: &str, port_id: &str, body: &RemoteProcessGroupPortEntity, ) -> Result<RemoteProcessGroupPortEntity, NifiError>

Updates a remote port

Note: This endpoint is subject to change as NiFi and it’s REST API evolve.

Calls PUT /nifi-api/remote-process-groups/{id}/output-ports/{port-id}.

§Parameters
  • id: The remote process group id.
  • port_id: The remote process group port id.
  • body: The remote process group port configuration details.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group_output_port_run_status( &self, id: &str, port_id: &str, body: &RemotePortRunStatusEntity, ) -> Result<RemoteProcessGroupPortEntity, NifiError>

Updates run status of a remote output port

Note: This endpoint is subject to change as NiFi and it’s REST API evolve.

Calls PUT /nifi-api/remote-process-groups/{id}/output-ports/{port-id}/run-status.

§Parameters
  • id: The remote process group id.
  • port_id: The remote process group port id.
  • body: The remote process group port run status details.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid} or /operation/remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group_run_statuses( &self, id: &str, body: &RemotePortRunStatusEntity, ) -> Result<RemoteProcessGroupEntity, NifiError>

Updates run status of all remote process groups in a process group (recursively)

Calls PUT /nifi-api/remote-process-groups/process-group/{id}/run-status.

§Parameters
  • id: The process group id.
  • body: The remote process groups run status.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid} or /operation/remote-process-groups/{uuid}.

Source

pub async fn update_remote_process_group_run_status( &self, id: &str, body: &RemotePortRunStatusEntity, ) -> Result<RemoteProcessGroupEntity, NifiError>

Updates run status of a remote process group

Calls PUT /nifi-api/remote-process-groups/{id}/run-status.

§Parameters
  • id: The remote process group id.
  • body: The remote process group run status.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid} or /operation/remote-process-groups/{uuid}.

Source

pub async fn get_state(&self, id: &str) -> Result<ComponentStateDto, NifiError>

Gets the state for a RemoteProcessGroup

Calls GET /nifi-api/remote-process-groups/{id}/state.

§Parameters
  • id: The processor id.
§Errors
  • 400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
  • 401: Client could not be authenticated.
  • 403: Client is not authorized to make this request.
  • 404: The specified resource could not be found.
  • 409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions

Requires Write - /remote-process-groups/{uuid}.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more