OWASP ZAP · Capability

ZAP API — network

ZAP API — network. 48 operations. Lead operation: network. Self-contained Naftiko capability covering one Owasp Zap business surface.

Run with Naftiko Owasp Zapnetwork

What You Can Do

GET
Networkactionaddalias — Adds an alias for the local servers/proxies.
/v1/json/network/action/addalias
GET
Networkactionaddhttpproxyexclusion — Adds a host to be excluded from the HTTP proxy.
/v1/json/network/action/addhttpproxyexclusion
GET
Networkactionaddlocalserver — Adds a local server/proxy.
/v1/json/network/action/addlocalserver
GET
Networkactionaddpassthrough — Adds an authority to pass-through the local proxies.
/v1/json/network/action/addpassthrough
GET
Networkactionaddpkcs12clientcertificate — Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.
/v1/json/network/action/addpkcs12clientcertificate
GET
Networkactionaddratelimitrule — Adds a rate limit rule
/v1/json/network/action/addratelimitrule
GET
Networkactiongeneraterootcacert — Generates a new Root CA certificate, used to issue server certificates.
/v1/json/network/action/generaterootcacert
GET
Networkactionimportrootcacert — Imports a Root CA certificate to be used to issue server certificates.
/v1/json/network/action/importrootcacert
GET
Networkactionremovealias — Removes an alias.
/v1/json/network/action/removealias
GET
Networkactionremovehttpproxyexclusion — Removes an HTTP proxy exclusion.
/v1/json/network/action/removehttpproxyexclusion
GET
Networkactionremovelocalserver — Removes a local server/proxy.
/v1/json/network/action/removelocalserver
GET
Networkactionremovepassthrough — Removes a pass-through.
/v1/json/network/action/removepassthrough
GET
Networkactionremoveratelimitrule — Remove a rate limit rule
/v1/json/network/action/removeratelimitrule
GET
Networkactionsetaliasenabled — Sets whether or not an alias is enabled.
/v1/json/network/action/setaliasenabled
GET
Networkactionsetconnectiontimeout — Sets the timeout, for reads and connects.
/v1/json/network/action/setconnectiontimeout
GET
Networkactionsetdefaultuseragent — Sets the default user-agent.
/v1/json/network/action/setdefaultuseragent
GET
Networkactionsetdnsttlsuccessfulqueries — Sets the TTL of successful DNS queries.
/v1/json/network/action/setdnsttlsuccessfulqueries
GET
Networkactionsethttpproxy — Sets the HTTP proxy configuration.
/v1/json/network/action/sethttpproxy
GET
Networkactionsethttpproxyauthenabled — Sets whether or not the HTTP proxy authentication is enabled.
/v1/json/network/action/sethttpproxyauthenabled
GET
Networkactionsethttpproxyenabled — Sets whether or not the HTTP proxy is enabled.
/v1/json/network/action/sethttpproxyenabled
GET
Networkactionsethttpproxyexclusionenabled — Sets whether or not an HTTP proxy exclusion is enabled.
/v1/json/network/action/sethttpproxyexclusionenabled
GET
Networkactionsetpassthroughenabled — Sets whether or not a pass-through is enabled.
/v1/json/network/action/setpassthroughenabled
GET
Networkactionsetratelimitruleenabled — Set enabled state for a rate limit rule.
/v1/json/network/action/setratelimitruleenabled
GET
Networkactionsetrootcacertvalidity — Sets the Root CA certificate validity. Used when generating a new Root CA certificate.
/v1/json/network/action/setrootcacertvalidity
GET
Networkactionsetservercertvalidity — Sets the server certificate validity. Used when generating server certificates.
/v1/json/network/action/setservercertvalidity
GET
Networkactionsetsocksproxy — Sets the SOCKS proxy configuration.
/v1/json/network/action/setsocksproxy
GET
Networkactionsetsocksproxyenabled — Sets whether or not the SOCKS proxy is enabled.
/v1/json/network/action/setsocksproxyenabled
GET
Networkactionsetuseclientcertificate — Sets whether or not to use the active client certificate.
/v1/json/network/action/setuseclientcertificate
GET
Networkactionsetuseglobalhttpstate — Sets whether or not to use the global HTTP state.
/v1/json/network/action/setuseglobalhttpstate
GET
Networkviewgetaliases — Gets the aliases used to identify the local servers/proxies.
/v1/json/network/view/getaliases
GET
Networkviewgetconnectiontimeout — Gets the connection timeout, in seconds.
/v1/json/network/view/getconnectiontimeout
GET
Networkviewgetdefaultuseragent — Gets the default user-agent.
/v1/json/network/view/getdefaultuseragent
GET
Networkviewgetdnsttlsuccessfulqueries — Gets the TTL (in seconds) of successful DNS queries.
/v1/json/network/view/getdnsttlsuccessfulqueries
GET
Networkviewgethttpproxy — Gets the HTTP proxy.
/v1/json/network/view/gethttpproxy
GET
Networkviewgethttpproxyexclusions — Gets the HTTP proxy exclusions.
/v1/json/network/view/gethttpproxyexclusions
GET
Networkviewgetlocalservers — Gets the local servers/proxies.
/v1/json/network/view/getlocalservers
GET
Networkviewgetpassthroughs — Gets the authorities that will pass-through the local proxies.
/v1/json/network/view/getpassthroughs
GET
Networkviewgetratelimitrules — List of rate limit rules.
/v1/json/network/view/getratelimitrules
GET
Networkviewgetrootcacertvalidity — Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.
/v1/json/network/view/getrootcacertvalidity
GET
Networkviewgetservercertvalidity — Gets the server certificate validity, in days. Used when generating server certificates.
/v1/json/network/view/getservercertvalidity
GET
Networkviewgetsocksproxy — Gets the SOCKS proxy.
/v1/json/network/view/getsocksproxy
GET
Networkviewishttpproxyauthenabled — Tells whether or not the HTTP proxy authentication is enabled.
/v1/json/network/view/ishttpproxyauthenabled
GET
Networkviewishttpproxyenabled — Tells whether or not the HTTP proxy is enabled.
/v1/json/network/view/ishttpproxyenabled
GET
Networkviewissocksproxyenabled — Tells whether or not the SOCKS proxy is enabled.
/v1/json/network/view/issocksproxyenabled
GET
Networkviewisuseglobalhttpstate — Tells whether or not to use global HTTP state.
/v1/json/network/view/isuseglobalhttpstate
GET
Networkotherproxypac — Provides a PAC file, proxying through the main proxy.
/v1/other/network/other/proxy-pac
GET
Networkotherrootcacert — Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications (e.g. browsers).
/v1/other/network/other/rootcacert
GET
Networkothersetproxy — Sets the HTTP proxy configuration.
/v1/other/network/other/setproxy

MCP Tools

adds-alias-local-servers-proxies

Adds an alias for the local servers/proxies.

read-only idempotent
adds-host-be-excluded-http

Adds a host to be excluded from the HTTP proxy.

read-only idempotent
adds-local-server-proxy

Adds a local server/proxy.

read-only idempotent
adds-authority-pass-through-local

Adds an authority to pass-through the local proxies.

read-only idempotent
adds-client-certificate-contained-pkcs-12

Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active and used.

read-only idempotent
adds-rate-limit-rule

Adds a rate limit rule

read-only idempotent
generates-new-root-ca-certificate

Generates a new Root CA certificate, used to issue server certificates.

read-only idempotent
imports-root-ca-certificate-be

Imports a Root CA certificate to be used to issue server certificates.

read-only idempotent
removes-alias

Removes an alias.

read-only idempotent
removes-http-proxy-exclusion

Removes an HTTP proxy exclusion.

read-only idempotent
removes-local-server-proxy

Removes a local server/proxy.

read-only idempotent
removes-pass-through

Removes a pass-through.

read-only idempotent
remove-rate-limit-rule

Remove a rate limit rule

read-only idempotent
sets-whether-not-alias-is

Sets whether or not an alias is enabled.

read-only idempotent
sets-timeout-reads-and-connects

Sets the timeout, for reads and connects.

read-only idempotent
sets-default-user-agent

Sets the default user-agent.

read-only idempotent
sets-ttl-successful-dns-queries

Sets the TTL of successful DNS queries.

read-only idempotent
sets-http-proxy-configuration

Sets the HTTP proxy configuration.

read-only idempotent
sets-whether-not-http-proxy

Sets whether or not the HTTP proxy authentication is enabled.

read-only idempotent
sets-whether-not-http-proxy-2

Sets whether or not the HTTP proxy is enabled.

read-only idempotent
sets-whether-not-http-proxy-3

Sets whether or not an HTTP proxy exclusion is enabled.

read-only idempotent
sets-whether-not-pass-through

Sets whether or not a pass-through is enabled.

read-only idempotent
set-enabled-state-rate-limit

Set enabled state for a rate limit rule.

read-only idempotent
sets-root-ca-certificate-validity

Sets the Root CA certificate validity. Used when generating a new Root CA certificate.

read-only idempotent
sets-server-certificate-validity-used

Sets the server certificate validity. Used when generating server certificates.

read-only idempotent
sets-socks-proxy-configuration

Sets the SOCKS proxy configuration.

read-only idempotent
sets-whether-not-socks-proxy

Sets whether or not the SOCKS proxy is enabled.

read-only idempotent
sets-whether-not-use-active

Sets whether or not to use the active client certificate.

read-only idempotent
sets-whether-not-use-global

Sets whether or not to use the global HTTP state.

read-only idempotent
gets-aliases-used-identify-local

Gets the aliases used to identify the local servers/proxies.

read-only idempotent
gets-connection-timeout-seconds

Gets the connection timeout, in seconds.

read-only idempotent
gets-default-user-agent

Gets the default user-agent.

read-only idempotent
gets-ttl-seconds-successful-dns

Gets the TTL (in seconds) of successful DNS queries.

read-only idempotent
gets-http-proxy

Gets the HTTP proxy.

read-only idempotent
gets-http-proxy-exclusions

Gets the HTTP proxy exclusions.

read-only idempotent
gets-local-servers-proxies

Gets the local servers/proxies.

read-only idempotent
gets-authorities-that-will-pass

Gets the authorities that will pass-through the local proxies.

read-only idempotent
list-rate-limit-rules

List of rate limit rules.

read-only idempotent
gets-root-ca-certificate-validity

Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.

read-only idempotent
gets-server-certificate-validity-days

Gets the server certificate validity, in days. Used when generating server certificates.

read-only idempotent
gets-socks-proxy

Gets the SOCKS proxy.

read-only idempotent
tells-whether-not-http-proxy

Tells whether or not the HTTP proxy authentication is enabled.

read-only idempotent
tells-whether-not-http-proxy-2

Tells whether or not the HTTP proxy is enabled.

read-only idempotent
tells-whether-not-socks-proxy

Tells whether or not the SOCKS proxy is enabled.

read-only idempotent
tells-whether-not-use-global

Tells whether or not to use global HTTP state.

read-only idempotent
provides-pac-file-proxying-through

Provides a PAC file, proxying through the main proxy.

read-only idempotent
gets-root-ca-certificate-used

Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications (e.g. browsers).

read-only idempotent
sets-http-proxy-configuration-2

Sets the HTTP proxy configuration.

read-only idempotent

Capability Spec

owasp-zap-network.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ZAP API — network
  description: 'ZAP API — network. 48 operations. Lead operation: network. Self-contained Naftiko capability covering one
    Owasp Zap business surface.'
  tags:
  - Owasp Zap
  - network
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OWASP_ZAP_API_KEY: OWASP_ZAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: owasp-zap-network
    baseUri: http://zap
    description: ZAP API — network business capability. Self-contained, no shared references.
    resources:
    - name: JSON-network-action-addAlias
      path: /JSON/network/action/addAlias/
      operations:
      - name: networkactionaddalias
        method: GET
        description: Adds an alias for the local servers/proxies.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-addHttpProxyExclusion
      path: /JSON/network/action/addHttpProxyExclusion/
      operations:
      - name: networkactionaddhttpproxyexclusion
        method: GET
        description: Adds a host to be excluded from the HTTP proxy.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-addLocalServer
      path: /JSON/network/action/addLocalServer/
      operations:
      - name: networkactionaddlocalserver
        method: GET
        description: Adds a local server/proxy.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-addPassThrough
      path: /JSON/network/action/addPassThrough/
      operations:
      - name: networkactionaddpassthrough
        method: GET
        description: Adds an authority to pass-through the local proxies.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-addPkcs12ClientCertificate
      path: /JSON/network/action/addPkcs12ClientCertificate/
      operations:
      - name: networkactionaddpkcs12clientcertificate
        method: GET
        description: Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active
          and used.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-addRateLimitRule
      path: /JSON/network/action/addRateLimitRule/
      operations:
      - name: networkactionaddratelimitrule
        method: GET
        description: Adds a rate limit rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-generateRootCaCert
      path: /JSON/network/action/generateRootCaCert/
      operations:
      - name: networkactiongeneraterootcacert
        method: GET
        description: Generates a new Root CA certificate, used to issue server certificates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-importRootCaCert
      path: /JSON/network/action/importRootCaCert/
      operations:
      - name: networkactionimportrootcacert
        method: GET
        description: Imports a Root CA certificate to be used to issue server certificates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-removeAlias
      path: /JSON/network/action/removeAlias/
      operations:
      - name: networkactionremovealias
        method: GET
        description: Removes an alias.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-removeHttpProxyExclusion
      path: /JSON/network/action/removeHttpProxyExclusion/
      operations:
      - name: networkactionremovehttpproxyexclusion
        method: GET
        description: Removes an HTTP proxy exclusion.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-removeLocalServer
      path: /JSON/network/action/removeLocalServer/
      operations:
      - name: networkactionremovelocalserver
        method: GET
        description: Removes a local server/proxy.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-removePassThrough
      path: /JSON/network/action/removePassThrough/
      operations:
      - name: networkactionremovepassthrough
        method: GET
        description: Removes a pass-through.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-removeRateLimitRule
      path: /JSON/network/action/removeRateLimitRule/
      operations:
      - name: networkactionremoveratelimitrule
        method: GET
        description: Remove a rate limit rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setAliasEnabled
      path: /JSON/network/action/setAliasEnabled/
      operations:
      - name: networkactionsetaliasenabled
        method: GET
        description: Sets whether or not an alias is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setConnectionTimeout
      path: /JSON/network/action/setConnectionTimeout/
      operations:
      - name: networkactionsetconnectiontimeout
        method: GET
        description: Sets the timeout, for reads and connects.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setDefaultUserAgent
      path: /JSON/network/action/setDefaultUserAgent/
      operations:
      - name: networkactionsetdefaultuseragent
        method: GET
        description: Sets the default user-agent.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setDnsTtlSuccessfulQueries
      path: /JSON/network/action/setDnsTtlSuccessfulQueries/
      operations:
      - name: networkactionsetdnsttlsuccessfulqueries
        method: GET
        description: Sets the TTL of successful DNS queries.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setHttpProxy
      path: /JSON/network/action/setHttpProxy/
      operations:
      - name: networkactionsethttpproxy
        method: GET
        description: Sets the HTTP proxy configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setHttpProxyAuthEnabled
      path: /JSON/network/action/setHttpProxyAuthEnabled/
      operations:
      - name: networkactionsethttpproxyauthenabled
        method: GET
        description: Sets whether or not the HTTP proxy authentication is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setHttpProxyEnabled
      path: /JSON/network/action/setHttpProxyEnabled/
      operations:
      - name: networkactionsethttpproxyenabled
        method: GET
        description: Sets whether or not the HTTP proxy is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setHttpProxyExclusionEnabled
      path: /JSON/network/action/setHttpProxyExclusionEnabled/
      operations:
      - name: networkactionsethttpproxyexclusionenabled
        method: GET
        description: Sets whether or not an HTTP proxy exclusion is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setPassThroughEnabled
      path: /JSON/network/action/setPassThroughEnabled/
      operations:
      - name: networkactionsetpassthroughenabled
        method: GET
        description: Sets whether or not a pass-through is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setRateLimitRuleEnabled
      path: /JSON/network/action/setRateLimitRuleEnabled/
      operations:
      - name: networkactionsetratelimitruleenabled
        method: GET
        description: Set enabled state for a rate limit rule.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setRootCaCertValidity
      path: /JSON/network/action/setRootCaCertValidity/
      operations:
      - name: networkactionsetrootcacertvalidity
        method: GET
        description: Sets the Root CA certificate validity. Used when generating a new Root CA certificate.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setServerCertValidity
      path: /JSON/network/action/setServerCertValidity/
      operations:
      - name: networkactionsetservercertvalidity
        method: GET
        description: Sets the server certificate validity. Used when generating server certificates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setSocksProxy
      path: /JSON/network/action/setSocksProxy/
      operations:
      - name: networkactionsetsocksproxy
        method: GET
        description: Sets the SOCKS proxy configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setSocksProxyEnabled
      path: /JSON/network/action/setSocksProxyEnabled/
      operations:
      - name: networkactionsetsocksproxyenabled
        method: GET
        description: Sets whether or not the SOCKS proxy is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setUseClientCertificate
      path: /JSON/network/action/setUseClientCertificate/
      operations:
      - name: networkactionsetuseclientcertificate
        method: GET
        description: Sets whether or not to use the active client certificate.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-action-setUseGlobalHttpState
      path: /JSON/network/action/setUseGlobalHttpState/
      operations:
      - name: networkactionsetuseglobalhttpstate
        method: GET
        description: Sets whether or not to use the global HTTP state.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getAliases
      path: /JSON/network/view/getAliases/
      operations:
      - name: networkviewgetaliases
        method: GET
        description: Gets the aliases used to identify the local servers/proxies.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getConnectionTimeout
      path: /JSON/network/view/getConnectionTimeout/
      operations:
      - name: networkviewgetconnectiontimeout
        method: GET
        description: Gets the connection timeout, in seconds.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getDefaultUserAgent
      path: /JSON/network/view/getDefaultUserAgent/
      operations:
      - name: networkviewgetdefaultuseragent
        method: GET
        description: Gets the default user-agent.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getDnsTtlSuccessfulQueries
      path: /JSON/network/view/getDnsTtlSuccessfulQueries/
      operations:
      - name: networkviewgetdnsttlsuccessfulqueries
        method: GET
        description: Gets the TTL (in seconds) of successful DNS queries.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getHttpProxy
      path: /JSON/network/view/getHttpProxy/
      operations:
      - name: networkviewgethttpproxy
        method: GET
        description: Gets the HTTP proxy.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getHttpProxyExclusions
      path: /JSON/network/view/getHttpProxyExclusions/
      operations:
      - name: networkviewgethttpproxyexclusions
        method: GET
        description: Gets the HTTP proxy exclusions.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getLocalServers
      path: /JSON/network/view/getLocalServers/
      operations:
      - name: networkviewgetlocalservers
        method: GET
        description: Gets the local servers/proxies.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getPassThroughs
      path: /JSON/network/view/getPassThroughs/
      operations:
      - name: networkviewgetpassthroughs
        method: GET
        description: Gets the authorities that will pass-through the local proxies.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getRateLimitRules
      path: /JSON/network/view/getRateLimitRules/
      operations:
      - name: networkviewgetratelimitrules
        method: GET
        description: List of rate limit rules.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getRootCaCertValidity
      path: /JSON/network/view/getRootCaCertValidity/
      operations:
      - name: networkviewgetrootcacertvalidity
        method: GET
        description: Gets the Root CA certificate validity, in days. Used when generating a new Root CA certificate.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getServerCertValidity
      path: /JSON/network/view/getServerCertValidity/
      operations:
      - name: networkviewgetservercertvalidity
        method: GET
        description: Gets the server certificate validity, in days. Used when generating server certificates.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-getSocksProxy
      path: /JSON/network/view/getSocksProxy/
      operations:
      - name: networkviewgetsocksproxy
        method: GET
        description: Gets the SOCKS proxy.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-isHttpProxyAuthEnabled
      path: /JSON/network/view/isHttpProxyAuthEnabled/
      operations:
      - name: networkviewishttpproxyauthenabled
        method: GET
        description: Tells whether or not the HTTP proxy authentication is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-isHttpProxyEnabled
      path: /JSON/network/view/isHttpProxyEnabled/
      operations:
      - name: networkviewishttpproxyenabled
        method: GET
        description: Tells whether or not the HTTP proxy is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-isSocksProxyEnabled
      path: /JSON/network/view/isSocksProxyEnabled/
      operations:
      - name: networkviewissocksproxyenabled
        method: GET
        description: Tells whether or not the SOCKS proxy is enabled.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: JSON-network-view-isUseGlobalHttpState
      path: /JSON/network/view/isUseGlobalHttpState/
      operations:
      - name: networkviewisuseglobalhttpstate
        method: GET
        description: Tells whether or not to use global HTTP state.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: OTHER-network-other-proxy.pac
      path: /OTHER/network/other/proxy.pac/
      operations:
      - name: networkotherproxypac
        method: GET
        description: Provides a PAC file, proxying through the main proxy.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: OTHER-network-other-rootCaCert
      path: /OTHER/network/other/rootCaCert/
      operations:
      - name: networkotherrootcacert
        method: GET
        description: Gets the Root CA certificate used to issue server certificates. Suitable to import into client applications
          (e.g. browsers).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: OTHER-network-other-setProxy
      path: /OTHER/network/other/setProxy/
      operations:
      - name: networkothersetproxy
        method: GET
        description: Sets the HTTP proxy configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-ZAP-API-Key
      value: '{{env.OWASP_ZAP_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: owasp-zap-network-rest
    port: 8080
    description: REST adapter for ZAP API — network. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/json/network/action/addalias
      name: json-network-action-addalias
      description: REST surface for JSON-network-action-addAlias.
      operations:
      - method: GET
        name: networkactionaddalias
        description: Adds an alias for the local servers/proxies.
        call: owasp-zap-network.networkactionaddalias
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/addhttpproxyexclusion
      name: json-network-action-addhttpproxyexclusion
      description: REST surface for JSON-network-action-addHttpProxyExclusion.
      operations:
      - method: GET
        name: networkactionaddhttpproxyexclusion
        description: Adds a host to be excluded from the HTTP proxy.
        call: owasp-zap-network.networkactionaddhttpproxyexclusion
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/addlocalserver
      name: json-network-action-addlocalserver
      description: REST surface for JSON-network-action-addLocalServer.
      operations:
      - method: GET
        name: networkactionaddlocalserver
        description: Adds a local server/proxy.
        call: owasp-zap-network.networkactionaddlocalserver
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/addpassthrough
      name: json-network-action-addpassthrough
      description: REST surface for JSON-network-action-addPassThrough.
      operations:
      - method: GET
        name: networkactionaddpassthrough
        description: Adds an authority to pass-through the local proxies.
        call: owasp-zap-network.networkactionaddpassthrough
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/addpkcs12clientcertificate
      name: json-network-action-addpkcs12clientcertificate
      description: REST surface for JSON-network-action-addPkcs12ClientCertificate.
      operations:
      - method: GET
        name: networkactionaddpkcs12clientcertificate
        description: Adds a client certificate contained in a PKCS#12 file, the certificate is automatically set as active
          and used.
        call: owasp-zap-network.networkactionaddpkcs12clientcertificate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/addratelimitrule
      name: json-network-action-addratelimitrule
      description: REST surface for JSON-network-action-addRateLimitRule.
      operations:
      - method: GET
        name: networkactionaddratelimitrule
        description: Adds a rate limit rule
        call: owasp-zap-network.networkactionaddratelimitrule
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/generaterootcacert
      name: json-network-action-generaterootcacert
      description: REST surface for JSON-network-action-generateRootCaCert.
      operations:
      - method: GET
        name: networkactiongeneraterootcacert
        description: Generates a new Root CA certificate, used to issue server certificates.
        call: owasp-zap-network.networkactiongeneraterootcacert
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/importrootcacert
      name: json-network-action-importrootcacert
      description: REST surface for JSON-network-action-importRootCaCert.
      operations:
      - method: GET
        name: networkactionimportrootcacert
        description: Imports a Root CA certificate to be used to issue server certificates.
        call: owasp-zap-network.networkactionimportrootcacert
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/removealias
      name: json-network-action-removealias
      description: REST surface for JSON-network-action-removeAlias.
      operations:
      - method: GET
        name: networkactionremovealias
        description: Removes an alias.
        call: owasp-zap-network.networkactionremovealias
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/removehttpproxyexclusion
      name: json-network-action-removehttpproxyexclusion
      description: REST surface for JSON-network-action-removeHttpProxyExclusion.
      operations:
      - method: GET
        name: networkactionremovehttpproxyexclusion
        description: Removes an HTTP proxy exclusion.
        call: owasp-zap-network.networkactionremovehttpproxyexclusion
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/removelocalserver
      name: json-network-action-removelocalserver
      description: REST surface for JSON-network-action-removeLocalServer.
      operations:
      - method: GET
        name: networkactionremovelocalserver
        description: Removes a local server/proxy.
        call: owasp-zap-network.networkactionremovelocalserver
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/removepassthrough
      name: json-network-action-removepassthrough
      description: REST surface for JSON-network-action-removePassThrough.
      operations:
      - method: GET
        name: networkactionremovepassthrough
        description: Removes a pass-through.
        call: owasp-zap-network.networkactionremovepassthrough
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/removeratelimitrule
      name: json-network-action-removeratelimitrule
      description: REST surface for JSON-network-action-removeRateLimitRule.
      operations:
      - method: GET
        name: networkactionremoveratelimitrule
        description: Remove a rate limit rule
        call: owasp-zap-network.networkactionremoveratelimitrule
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setaliasenabled
      name: json-network-action-setaliasenabled
      description: REST surface for JSON-network-action-setAliasEnabled.
      operations:
      - method: GET
        name: networkactionsetaliasenabled
        description: Sets whether or not an alias is enabled.
        call: owasp-zap-network.networkactionsetaliasenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setconnectiontimeout
      name: json-network-action-setconnectiontimeout
      description: REST surface for JSON-network-action-setConnectionTimeout.
      operations:
      - method: GET
        name: networkactionsetconnectiontimeout
        description: Sets the timeout, for reads and connects.
        call: owasp-zap-network.networkactionsetconnectiontimeout
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setdefaultuseragent
      name: json-network-action-setdefaultuseragent
      description: REST surface for JSON-network-action-setDefaultUserAgent.
      operations:
      - method: GET
        name: networkactionsetdefaultuseragent
        description: Sets the default user-agent.
        call: owasp-zap-network.networkactionsetdefaultuseragent
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setdnsttlsuccessfulqueries
      name: json-network-action-setdnsttlsuccessfulqueries
      description: REST surface for JSON-network-action-setDnsTtlSuccessfulQueries.
      operations:
      - method: GET
        name: networkactionsetdnsttlsuccessfulqueries
        description: Sets the TTL of successful DNS queries.
        call: owasp-zap-network.networkactionsetdnsttlsuccessfulqueries
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/sethttpproxy
      name: json-network-action-sethttpproxy
      description: REST surface for JSON-network-action-setHttpProxy.
      operations:
      - method: GET
        name: networkactionsethttpproxy
        description: Sets the HTTP proxy configuration.
        call: owasp-zap-network.networkactionsethttpproxy
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/sethttpproxyauthenabled
      name: json-network-action-sethttpproxyauthenabled
      description: REST surface for JSON-network-action-setHttpProxyAuthEnabled.
      operations:
      - method: GET
        name: networkactionsethttpproxyauthenabled
        description: Sets whether or not the HTTP proxy authentication is enabled.
        call: owasp-zap-network.networkactionsethttpproxyauthenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/sethttpproxyenabled
      name: json-network-action-sethttpproxyenabled
      description: REST surface for JSON-network-action-setHttpProxyEnabled.
      operations:
      - method: GET
        name: networkactionsethttpproxyenabled
        description: Sets whether or not the HTTP proxy is enabled.
        call: owasp-zap-network.networkactionsethttpproxyenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/sethttpproxyexclusionenabled
      name: json-network-action-sethttpproxyexclusionenabled
      description: REST surface for JSON-network-action-setHttpProxyExclusionEnabled.
      operations:
      - method: GET
        name: networkactionsethttpproxyexclusionenabled
        description: Sets whether or not an HTTP proxy exclusion is enabled.
        call: owasp-zap-network.networkactionsethttpproxyexclusionenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setpassthroughenabled
      name: json-network-action-setpassthroughenabled
      description: REST surface for JSON-network-action-setPassThroughEnabled.
      operations:
      - method: GET
        name: networkactionsetpassthroughenabled
        description: Sets whether or not a pass-through is enabled.
        call: owasp-zap-network.networkactionsetpassthroughenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setratelimitruleenabled
      name: json-network-action-setratelimitruleenabled
      description: REST surface for JSON-network-action-setRateLimitRuleEnabled.
      operations:
      - method: GET
        name: networkactionsetratelimitruleenabled
        description: Set enabled state for a rate limit rule.
        call: owasp-zap-network.networkactionsetratelimitruleenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setrootcacertvalidity
      name: json-network-action-setrootcacertvalidity
      description: REST surface for JSON-network-action-setRootCaCertValidity.
      operations:
      - method: GET
        name: networkactionsetrootcacertvalidity
        description: Sets the Root CA certificate validity. Used when generating a new Root CA certificate.
        call: owasp-zap-network.networkactionsetrootcacertvalidity
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setservercertvalidity
      name: json-network-action-setservercertvalidity
      description: REST surface for JSON-network-action-setServerCertValidity.
      operations:
      - method: GET
        name: networkactionsetservercertvalidity
        description: Sets the server certificate validity. Used when generating server certificates.
        call: owasp-zap-network.networkactionsetservercertvalidity
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setsocksproxy
      name: json-network-action-setsocksproxy
      description: REST surface for JSON-network-action-setSocksProxy.
      operations:
      - method: GET
        name: networkactionsetsocksproxy
        description: Sets the SOCKS proxy configuration.
        call: owasp-zap-network.networkactionsetsocksproxy
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setsocksproxyenabled
      name: json-network-action-setsocksproxyenabled
      description: REST surface for JSON-network-action-setSocksProxyEnabled.
      operations:
      - method: GET
        name: networkactionsetsocksproxyenabled
        description: Sets whether or not the SOCKS proxy is enabled.
        call: owasp-zap-network.networkactionsetsocksproxyenabled
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setuseclientcertificate
      name: json-network-action-setuseclientcertificate
      description: REST surface for JSON-network-action-setUseClientCertificate.
      operations:
      - method: GET
        name: networkactionsetuseclientcertificate
        description: Sets whether or not to use the active client certificate.
        call: owasp-zap-network.networkactionsetuseclientcertificate
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/json/network/action/setuseglobalhttpstate
      name: json-network-action-setuseglobalhttpstate
      description: REST surface for JSON-network-action-setUseGlobalHttpState.
      operations:
      - method: GET
        name: networkactionsetuseglobalhttpstate
        description: Sets whether or not to use the global HTTP state.
        call: owasp-zap-network.networkactionsetuse

# --- truncated at 32 KB (56 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/owasp-zap/refs/heads/main/capabilities/owasp-zap-network.yaml