REST Resources
-
/ -
/exec-deploy -
/exec-scripts -
/job-instances /{job-id} /script-mgmt-job-results -
/match-scripts-by-context -
/scripts -
/scripts /exec-deploy -
/scripts /exec-disable -
/scripts /exec-enable -
/scripts /exec-remove -
/scripts /exec-scripts -
/scripts /exec-verify -
/scripts /{script-id} -
/scripts /{script-id} /contents -
/scripts /{script-id} /parameters -
/scripts /{script-id} /results -
/scripts /{script-id} /view-associated-devices
/api/space/script-management/scripts (v1)
The following operations are supported on this resource:
-
GET- Get all scripts
(Deprecated) | Version 1 |
This API finds all available scripts in the Junos Space database and returns a list of available scripts. The API supports the paging, filtering, and sorting of data.
Filtering and Sorting is supported on key and scriptName columns.
.Sample Usage
GET /scripts
-
Accept Headers:
application/vnd.net.juniper.space.script-management.scripts+xml;version=1
application/vnd.net.juniper.space.script-management.scripts+json;version=1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<scripts size="2">
<script key = "1114117"
uri="/api/space/script-management/scripts/1114117">
<scriptName>cpu-usage-60.slax</scriptName>
<category>sample</category>
</script>
<script key = "1114234"
uri="/api/space/script-management/scripts/1114234">
<scriptName>op-pingsweep.slax</scriptName>
<category>test</category>
</script>
<script key = "111412"
uri="/api/space/script-management/scripts/111412">
<scriptName>slax-event1.slax</scriptName>
<category>sample</category>
</script>
<method href="/api/space/script-management/scripts/exec-deploy"
rel="deploy script on device"/>
<method
href="/api/space/script-management/scripts/exec-scripts"
rel="execute script on device"/>
</scripts>
scripts:
{
"@size:" 2
script:
[
@key: 1114117
@uri: /api/space/script-management/scripts/1114117
scriptName: cpu-usage-60.slax
category: sample
@key: 1114234
@uri: /api/space/script-management/scripts/1114234
scriptName: op-pingsweep.slax
category: sample12
@key: 111412
@uri: /api/space/script-management/scripts/111412
scriptName: slax-event1.slax
category: sample
]
method:
[
@href:/api/space/script-management/scripts/exec-deploy
@rel:deploy script on device
@href:/api/space/script-management/scripts/exec-scripts
@rel:execute script on device
]
}
Access Control
The following capabilities are required to access this API: ViewScriptsCap
For the current version of this API, refer to :