REST Resources
-
/ -
/acknowledge-device-fingerprint -
/change-device-credentials -
/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} /validate-cli-configlet -
/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-syslog-events -
/stop-syslog-events -
/stop-syslog-events /{id}
/api/space/device-management/devices/{id}
The following operations are supported on this resource:
GET /devices/{id} | Version 1 |
This API is used to retrieve information for a specified device. It retrieves the name, ID, and other important device attributes.
Sample Usage
GET /devices/{id}
-
Parameters:
Name Type URI Type Description Required device-id Integer Path The ID of the device for which information will be retrieved. Y
-
Accept Headers:
application/vnd.net.juniper.space.device-management.device+xml;version=1
application/vnd.net.juniper.space.device-management.device+json;version=1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<device uri="/api/space/device-management/devices/229377">
<deviceFamily>junos-es</deviceFamily>
<OSVersion>10.0R2.10</OSVersion>
<platform>SRX100-LM</platform>
<serialNumber>AT5109AF0621</serialNumber>
<name>hsc-srx_100_lehar</name>
<hostName>hsc-srx_100_lehar</hostName>
<id>229377</id>
<ipAddr>192.168.21.9</ipAddr>
<change-requests uri="/api/space/device-management/devices/229377/change-requests">
<change-request key="262186" href="/api/space/configuration-management/change-requests/262186">
<deviceId>229377</deviceId>
<name>TEST_NAME</name>
</change-request>
</change-requests>
<managed-elements uri="/api/space/device-management/devices/229377/managed-elements">
<managed-element key="262148" href="/api/space/managed-domain/managed-elements/262148">
<ipAddr>192.168.21.9< /ipAddr>
<deviceId>229377</
deviceId>
</managed-element>
</managed-elements>
<managed-status uri="/api/space/device-management/devices/229377/managed-status">
<status>In Sync</status>
</managed-status>
<connection-status uri="/api/space/device-management/devices/229377/connection-status">
<status>up</status>
</connection-status>
<collection href="/api/space/device-management/devices/229377/configurations"
rel="device configurations"/>
<method href="/api/space/device-management/devices/229377/exec-rpc" rel="rpc"/>
<method href="/api/space/device-management/devices/229377/synch-config"rel="synch device configuration"/>
<associated-scripts href="/api/space/device-management/devices/229377/associated-scripts " rel="associated scripts"/>
<associated-softwares href="/api/space/device-management/devices/229377/associated-softwares" rel="associated softwares"/>
</device>
{
"device": {
"@uri":
"/api/space/device-management/devices/229377",
"deviceFamily":"junos-es",
"OSVersion":"10.0R2.10",
"platform":"SRX100-LM",
"serialNumber":"AT5109AF0621",
"name":"hsc-srx_100_lehar",
"hostName":"hsc-srx_100_lehar",
"id":229377,"ipAddr":"192.168.21.9",
"change-requests": {
"@uri": "/api/space/device-management/devices/229377/change-requests",
"change-request":{
"@key":"262186",
"@href":"/api/space/configuration-management/change-requests/262186",
"deviceId":229377,
"name":"TEST_NAME"
}
},
"managed-elements":{
"@uri": "/api/space/device-management/devices/229377/managed-elements",
"managed-element":{
"@key":"262148",
"@href":"/api/space/managed-domain/managed-elements/262148",
"ipAddr":"192.168.21.9",
"deviceId":229377
}
},
"managed-status":{
"@uri":"/api/space/device-management/devices/229377/managed-status",
"status":"In Sync"
}
},
"connection-status":{
"@uri": "/api/space/device-management/devices/229377/connection-status",
"status":"up"
},
"collection":{
"@href": "/api/space/device-management/devices/229377/configurations",
"@rel":"device configurations"
},
"method": [
{
"@href": "/api/space/device-management/devices/229377/exec-rpc",
"@rel":"rpc"
},
{
"@href": "/api/space/device-management/devices/229377/synch-config",
"@rel": "synch device configuration"
},
{
"@href":"/api/space/device-management/devices/229377/associated-scripts",
"@rel": "associated scripts"
},
{
"@href": "/api/space/device-management/devices/229377/associated-softwares",
"@rel":"associated softwares"
} ]
Access Control
The following capabilities are required to access this API: ReadDevices
DELETE /devices/{id} | Version 1 |
This API is used to delete a device from the database.
Sample Usage
This API makes an asynchronous method call, so you can, optionally, specify queue and schedule parameters:
DELETE /devices/{id}?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 to be removed from the database. 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
-
Accept Headers:
application/vnd.net.juniper.space.device-management.device+xml;version=1
application/vnd.net.juniper.space.device-management.device+json;version=1
<task href="/api/space/job-management/jobs/98365">
<id>884737</id>
</task>
{"task":
{
"@href":"/api/space/job-management/jobs/3997704",
"id":3997704
}
Access Control
The following capabilities are required to access this API: DeleteDevice