netgate-trace API (20.10)

This YANG module provides packet tracing operations.

Copyright 2020 Rubicon Communications, LLC.

trace-filter-clear

<no summary>

post /operations/netgate-trace:trace-filter-clear

Example URL

https://hostname/restconf/operations/netgate-trace:trace-filter-clear

Responses

201

No response

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/operations/netgate-trace:trace-filter-clear"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

trace-filter-set

creates netgate.trace.TraceFilterSet

post /operations/netgate-trace:trace-filter-set

Example URL

https://hostname/restconf/operations/netgate-trace:trace-filter-set

creates netgate.trace.TraceFilterSet

Request Body schema: application/yang-data+json
input
object (netgate.trace.tracefilterset.Input)

Responses

201

No response

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

trace-packets-capture

creates netgate.trace.TracePacketsCapture

post /operations/netgate-trace:trace-packets-capture

Example URL

https://hostname/restconf/operations/netgate-trace:trace-packets-capture

creates netgate.trace.TracePacketsCapture

Request Body schema: application/yang-data+json
input
object (netgate.trace.tracepacketscapture.Input)

Responses

201

No response

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

trace-packets-clear

<no summary>

post /operations/netgate-trace:trace-packets-clear

Example URL

https://hostname/restconf/operations/netgate-trace:trace-packets-clear

Responses

201

No response

400

Internal error

Request samples

Copy
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/operations/netgate-trace:trace-packets-clear"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

trace-packets-get

creates netgate.trace.TracePacketsGet

post /operations/netgate-trace:trace-packets-get

Example URL

https://hostname/restconf/operations/netgate-trace:trace-packets-get

creates netgate.trace.TracePacketsGet

Request Body schema: application/yang-data+json
input
object (netgate.trace.tracepacketsget.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}