Operations resource

An operation resource represents an RPC operation defined with the YANG "rpc" statement or a data-model-specific action defined with a YANG "action" statement. The statement is invoked using a POST method on the operation resource.

Use the GET Method on the /restconf/operations to check the list of RPCs it supports.

The following example uses the POST operation to retrieve the operation resource statement:

root@admin11:~# curl -v -k -X POST -H "Accept: application/yang-data+xml" -d "<show-system-monitor></show-system-monitor>" 
-u admin:password https://10.20.192.67:443/restconf/operations/show-system-monitor
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 10.20.192.67...
* Connected to 10.20.192.67 (10.20.192.67) port 443 (#0)
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt
* found 614 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
* 	 server certificate verification SKIPPED
* 	 server certificate status verification SKIPPED
* 	 common name: 10.20.199.211 (does not match '10.20.192.67')
* 	 server certificate expiration date OK
* 	 server certificate activation date OK
* 	 certificate public key: RSA
* 	 certificate version: #3
* 	 subject: C=IN,ST=TN,L=CHN,O=HCL,OU=SQA,CN=10.20.199.211
* 	 start date: Wed, 26 Jun 2019 10:57:22 GMT