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}/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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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 >
<device-name>Ex4200240</device-name>
<deployed-version>1.0</deployed-version
>
<script-status>ENABLED</script-status&
gt;
</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 >
<category>Ex4200240</category>
<device-name>Ex4200240</device-name>
<deployed-version>1.0</deployed-version
>
<script-status>ENABLED</script-status&
gt;
</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
},
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
},
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 >
<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 >
<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
},
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
},
device-name:Ex4200240
deployed-version:1.0
script-status:ENABLED
}]
Access Control
The following capabilities are required to access this API: ViewAssociatedScriptsCap