Function: buildOperation()
ts
function buildOperation(name, args?): OperationRequest;Defined in: netconf/src/operations/descriptors.ts:303
Build a base operation's request from plain arguments, keyed as in its descriptor in BASE_OPERATIONS: buildOperation('lock', { target: 'candidate' }). Sends nothing; the result is the same element the matching client.ops method sends, with the capabilities it needs. Content must already be XML (JSON config or filter needs a client), and extensions' parameters are not applied: use client.ops.run() for both.
Parameters
name
string
args?
RequestArgs = {}
Returns
Throws
TypeError for an unknown operation, or arguments the operation can't take.