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}/associated-scripts
The following operations are supported on this resource:
GET /devices/{id}/associated-scripts | Version 1 |
This API finds all available scripts associated with a device and returns a list of them.
Sample Usage
GET /devices/{id}/associated-scripts
-
Parameters:
Name Type URI Type Description Required device-id Integer Path The ID of the device from which to get a list of scripts associated with the device. Y
-
Accept Headers:
application/vnd.net.juniper.space.device-management.associated-scripts+xml;version=1
application/vnd.net.juniper.space.device-management.associated-scripts+json;version=1
<script-device-associations size="2"
uri="/api/space/device-management/devices/327690/associated-scripts">
<script-device-association>
<script href=
"/api/space/script-management/scripts/163856">
<script-id>163856</script-id>
<script-name>show-interfaces.slax</script-name>
<script-type>Op Script</script-type>
</script >
<script-category>Switch</script-category>
<device-name>Ex4200240</device-name>
<deployed-version>1.0</deployed-version
>
<script-status>ENABLED</script-status>
</script-device-association>
<script-device-association>
<script href=
"/api/space/script-management/scripts/163860">
<script-id>163860</script-id>
<script-name>ex-interface.slax</script-
name>
<script-type>Op Script</script-type>
</script >
<script-category>Switch</script-category>
<device-name>Ex4200240</device-name>
<deployed-version>1.0</deployed-version
>
<script-status>ENABLED</script-status>
</script-device-association>
</script-device-associations>
{
"script-device-associations":{
"@size":"2",
"@uri":"/api/space/device-management/devices/327690/associated-scripts",
"script-device-association":[
{
"script":{
"@href":"/api/space/script-management/scripts/163856",
"script-id":"163856",
"script-name":"show-interfaces.slax",
"script-type":"Op Script"
},
"script-category":"Switch",
"device-name":"Ex4200240",
"deployed-version":"1.0",
"script-status":"ENABLED"
},
{
"script":{
"@href":"/api/space/script-management/scripts/163860",
"script-id":"163860",
"script-name":"ex-interface.slax",
"script-type":"Op Script"
},
"script-category":"Switch",
"device-name":"Ex4200240",
"deployed-version":"1.0",
"script-status":"ENABLED"
}
]
}
}
Access Control
The following capabilities are required to access this API: ViewAssociatedScriptsCap
GET /devices/{id}/associated-scripts | Version 2 |
This API finds all available scripts associated with a device and returns a list of the scripts.
Sample Usage
GET /devices/{id}/associated-scripts
-
Parameters:
Name Type URI Type Description Required device-id Integer Path The ID of the device from which to the get the list of scripts associated with the device. Y
-
Accept Headers:
application/vnd.net.juniper.space.device-management.view-associated-scripts+xml;version=2
application/vnd.net.juniper.space.device-management.view-associated-scripts+json;version=2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<script-device-associations size="2"
uri="/api/space/device-management/devices/327690/view-associated-scripts">
<script-device-association>
<script href="/api/space/script-management/scripts/163856">
<script-id>163856</script-id>
<script-name>show-interfaces.slax</script-name>
<script-type>Op Script</script-type>
</script >
<script-category>Switch</script-category>
<device-name>Ex4200240</device-name>
<deployed-version>1.0</deployed-version>
<script-status>ENABLED</script-status>
</script-device-association>
<script-device-association>
<script href="/api/space/script-management/scripts/163860">
<script-id>163860</script-id>
<script-name>ex-interface.slax</script-name>
<script-type>Op Script</script-type>
</script >
<script-category>Router</script-category>
<device-name>Ex4200240</device-name>
<deployed-version>1.0</deployed-version>
<script-status>ENABLED</script-status>
</script-device-association>
</script-device-associations>
{
"script-device-associations":{
"@size":"2",
"@uri":"/api/space/device-management/devices/327690/view-associated-scripts",
"script-device-association":[
{
"script":{
"@href":"/api/space/script-management/scripts/163856",
"script-id":"163856",
"script-name":"show-interfaces.slax",
"script-type":"Op Script"
},
"script-category":"Switch",
"device-name":"Ex4200240",
"deployed-version":"1.0",
"script-status":"ENABLED"
},
{
"script":{
"@href":"/api/space/script-management/scripts/163860",
"script-id":"163860",
"script-name":"ex-interface.slax",
"script-type":"Op Script"
},
"script-category":"Router",
"device-name":"Ex4200240",
"deployed-version":"1.0",
"script-status":"ENABLED"
}
]
}
}
Access Control
The following capabilities are required to access this API: ViewAssociatedScriptsCap