REST Resources
-
/ -
/acknowledge-device-fingerprint -
/change-device-credentials -
/delete-device-discovery-rules -
/delete-devices -
/device-discovery-rules -
/device-discovery-rules /{id} -
/devices -
/devices /{device-id} /activate-modeled-device -
/devices /{device-id} /applicable-configlets -
/devices /{device-id} /apply-cli-configlet -
/devices /{device-id} /associated-softwares -
/devices /{device-id} /clone -
/devices /{device-id} /compute-configlet-parameter-values -
/devices /{device-id} /configlet -
/devices /{device-id} /configurations /expanded -
/devices /{device-id} /configurations /raw -
/devices /{device-id} /submit-cli-configlet -
/devices /{device-id} /validate-cli-configlet -
/devices /{deviceid} /customized-attribute-values -
/devices /{deviceid} /customized-attribute-values /{id} -
/devices /{id} -
/devices /{id} /associated-scripts -
/devices /{id} /change-requests -
/devices /{id} /configurations -
/devices /{id} /configurations /expanded /match-content -
/devices /{id} /configurations /raw /match-content -
/devices /{id} /connection-status -
/devices /{id} /exec-resync -
/devices /{id} /exec-rpc -
/devices /{id} /managed-elements -
/devices /{id} /managed-status -
/devices /{id} /modify-device-target-ip -
/devices /{id} /view-customized-attributes -
/discover-devices -
/discoveryresult /{id} -
/get-device-statistics -
/get-syslog-events -
/job-instances /{job-id} /acknowledge-fingerprint-job-results -
/job-instances /{job-id} /delete-devices-job-results -
/job-instances /{job-id} /discovery-job-results -
/job-instances /{job-id} /exec-rpc-job-results -
/job-instances /{job-id} /reboot-devices-job-results -
/job-instances /{job-id} /resync-devices-job-results -
/job-instances /{job-id} /rsa-key-transfer-job-results -
/reactivate-devices-from-rma -
/reboot-devices -
/resolve-key-conflict -
/resync-devices -
/stop-syslog-events -
/stop-syslog-events /{id} -
/upload-keys
/api/space/device-management/devices/{id}/exec-rpc
The following operation is supported on this resource:
- POST - Create RPC request on the device
POST /devices/{id}/exec-rpc | Version 3 |
This API creates a schedulable RPC request on the specified device. It executes the different RPC commands after opening a channel to the device and sets the status of the executed RPC commmands.
Note: The RPC command to be executed must not contain any <rpc> tags. For example, the following is incorrect:
![CDATA[<rpc><get-system-information/><rpc/>]]
is incorrect.
The following input is correct:
![CDATA[<get-system-information/>]]
.Sample Usage
This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:
POST /devices/{id}/exec-rpc?queue=<queue>&schedule=<schedule>
Note: The queue URL denoted by <queue> must have been created already.
-
Parameters:
Name Type URI Type Description Required device-id Integer Path The ID of the device on which to perform the RPC command. Y queue Queue URL Query A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) N schedule cron-like-expression Query Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) N
-
Content-Type Headers:
application/vnd.net.juniper.space.device-management.rpc+xml;version=3;charset=UTF-8
application/vnd.net.juniper.space.device-management.rpc+json;version=3;charset=UTF-8 -
Accept Headers:
application/vnd.net.juniper.space.device-management.rpc+xml;version=3
application/vnd.net.juniper.space.device-management.rpc+json;version=3
Using CDATA
<netconf>
<rpcCommands>
<rpcCommand>
<![CDATA[<get-system-information/>]]>
</rpcCommand>
</rpcCommands>
</netconf>
<task href="/api/space/job-management/jobs/1212438">
<id>1212438</id>
</task>
{
"netconf":{
"rpcCommands":{
"rpcCommand":
["{\"get-system-information\":\"\"}"]
}
}
}
{
"task":{
"@href":"/api/space/job-management/jobs/1212438",
"id":1212438
}
}
Access Control
The following capabilities are required to access this API: OpenSSH