/api/space/script-management/scripts (v2)

The following operations are supported on this resource:

  • GET - Get all scripts
GET /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


  • Sample Output XML:
      <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>

  • Sample Output JSON:

    {"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 :
    • version 3