Skip to main content

remote_op_call

Function remote_op_call 

Source
pub(crate) async fn remote_op_call(
    cx: &ToolCtx<'_>,
    host: &str,
    op: &str,
    params: Value,
    reason: &str,
) -> Result<Value>
Expand description

Run op with params on host as this agent. The answer is srv’s RemoteOpResult as JSON (status, result, audit_id, refused_reason); an error is only a failure to ask.