All YANG "rpc" statements are available as RESTCONF operation resources, including the NETCONF operations.


Note about locking:

Each RESTCONF request is treated by the server as a separate session. Therefore a <lock> operation will be honored, but the lock will immediately be released by the server because the session that requested the lock has terminated.


The general form of an operation resource is a POST method. The RPC "input" parameters are sent in the message-body.



POST /restconf/operations/<operation-name> HTTP/1.1
Host: <hostname>
Content-Type: <media-type>

{input parameters}


The following example shows the <delete-config> operation using JSON encoding:


POST /restconf/operations/ietf-netconf:delete-config HTTP/1.1
Host: example.com
Content-Type: application/yang-data+json

{ "ietf-netconf:input" : {
     "target" : {
        "startup" : [null]
     }
  }
}


For more details refer to RESTCONF [RFC8040]