Juniper Networks · Capability

Juniper Networks Junos Space Network Management Platform REST API — Scripts

Juniper Networks Junos Space Network Management Platform REST API — Scripts. 2 operations. Lead operation: Juniper Networks List scripts. Self-contained Naftiko capability covering one Juniper Networks business surface.

Run with Naftiko Juniper NetworksScripts

What You Can Do

GET
Listscripts — Juniper Networks List scripts
/v1/script-management/scripts
POST
Executescript — Juniper Networks Execute script on devices
/v1/script-management/scripts/{script-id}/exec-scripts

MCP Tools

juniper-networks-list-scripts

Juniper Networks List scripts

read-only idempotent
juniper-networks-execute-script-devices

Juniper Networks Execute script on devices

Capability Spec

junos-space-scripts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Juniper Networks Junos Space Network Management Platform REST API — Scripts
  description: 'Juniper Networks Junos Space Network Management Platform REST API — Scripts. 2 operations. Lead operation:
    Juniper Networks List scripts. Self-contained Naftiko capability covering one Juniper Networks business surface.'
  tags:
  - Juniper Networks
  - Scripts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    JUNIPER_NETWORKS_API_KEY: JUNIPER_NETWORKS_API_KEY
capability:
  consumes:
  - type: http
    namespace: junos-space-scripts
    baseUri: https://{space_server}/api/space
    description: Juniper Networks Junos Space Network Management Platform REST API — Scripts business capability. Self-contained,
      no shared references.
    resources:
    - name: script-management-scripts
      path: /script-management/scripts
      operations:
      - name: listscripts
        method: GET
        description: Juniper Networks List scripts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: script-management-scripts-script_id-exec-scripts
      path: /script-management/scripts/{script_id}/exec-scripts
      operations:
      - name: executescript
        method: POST
        description: Juniper Networks Execute script on devices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: script_id
          in: path
          type: integer
          description: Script unique identifier.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.JUNIPER_NETWORKS_USER}}'
      password: '{{env.JUNIPER_NETWORKS_PASS}}'
  exposes:
  - type: rest
    namespace: junos-space-scripts-rest
    port: 8080
    description: REST adapter for Juniper Networks Junos Space Network Management Platform REST API — Scripts. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/script-management/scripts
      name: script-management-scripts
      description: REST surface for script-management-scripts.
      operations:
      - method: GET
        name: listscripts
        description: Juniper Networks List scripts
        call: junos-space-scripts.listscripts
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/script-management/scripts/{script-id}/exec-scripts
      name: script-management-scripts-script-id-exec-scripts
      description: REST surface for script-management-scripts-script_id-exec-scripts.
      operations:
      - method: POST
        name: executescript
        description: Juniper Networks Execute script on devices
        call: junos-space-scripts.executescript
        with:
          script_id: rest.script_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: junos-space-scripts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Juniper Networks Junos Space Network Management Platform REST API — Scripts. One tool per
      consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: juniper-networks-list-scripts
      description: Juniper Networks List scripts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: junos-space-scripts.listscripts
      outputParameters:
      - type: object
        mapping: $.
    - name: juniper-networks-execute-script-devices
      description: Juniper Networks Execute script on devices
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: junos-space-scripts.executescript
      with:
        script_id: tools.script_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.