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 (v2)
The following operations are supported on this resource:
-
GET- Get all scripts
(Deprecated) | Version 2 |
This API locates and returns a list of available scripts in the Junos Space database and supports the paging, filtering, and sorting of data.
Filtering and sorting is supported on the key and scriptName columns.
.Sample Usage
GET /scripts
-
Accept Headers:
application/vnd.net.juniper.space.script-management.scripts+xml;version=2
application/vnd.net.juniper.space.script-management.scripts+json;version=2
<scripts uri="/api/space/script-management/scripts"
size="1">
<script key="524288"
href=
"/api/space/script-management/scripts/524288"
uri="/api/space/script-management/scripts/524288">
<scriptName>slax-event1.slax</scriptName>
<category>sample</category>
</script>
<method
href="/api/space/script-management/scripts/exec-deploy" rel="deploy-scripts"/>
<method
href="/api/space/script-management/scripts/exec-scripts" rel="execute-scripts"/>
<method
href="/api/space/script-management/scripts/exec-disable" rel="disable-scripts"/>
<method
href="/api/space/script-management/scripts/exec-enable" rel="enable-scripts"/>
<method
href="/api/space/script-management/scripts/exec-remove" rel="remove-scripts"/>
<method
href="/api/space/script-management/scripts/exec-verify" rel="verify-scripts"/>
</scripts>
{"scripts":
{"@uri":"/api/space/script-management/scripts",
"@size":"1",
"script":
{"@key":"524288",
"@href":"/api/space/script-management/scripts/524288",
"@uri":"/api/space/script-management/scripts/524288",
"scriptName":"slax-event1.slax",
"category":"sample"},
"method":
[{"@href":
"/api/space/script-management/scripts/exec-deploy",
"@rel":"deploy-scripts"},
{"@href":
"/api/space/script-management/scripts/exec-scripts",
"@rel":"execute-scripts"},
{"@href":
"/api/space/script-management/scripts/exec-disable",
"@rel":"disable-scripts"},
{"@href":"/api/space/script-management/scripts/exec-enable"
,
"@rel":"enable-scripts"},
{"@href":"/api/space/script-management/scripts/exec-remove"
,
"@rel":"remove-scripts"},
{"@href":"/api/space/script-management/scripts/exec-verify"
,
"@rel":"verify-scripts"
}]
}}
Access Control
The following capabilities are required to access this API: ViewScriptsCap
For the current version of this API, refer to :