netgate-ipfix API (25.02)

This YANG module provides a Netgate-defined data-model for IP Flow Information Export.

Copyright 2019-2024 Rubicon Communications, LLC.

ipfix-config

returns netgate.ipfix.IpfixConfig

Configuration for IP Flow Information Export. Data is structured the same as the ietf-ipfix-psamp model.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:ipfix-config": {
    }
}

creates netgate.ipfix.IpfixConfig

Configuration for IP Flow Information Export. Data is structured the same as the ietf-ipfix-psamp model.

Request Body schema: application/yang-data+json

netgate.ipfix.IpfixConfig to be added to list

Array of objects (netgate.ipfix.ipfixconfig.ObservationPoint)

Observation Point of the Monitoring Device.

Array of objects (netgate.ipfix.ipfixconfig.ExportingProcess)

Exporting Process of the Monitoring Device.

Array of objects (netgate.ipfix.ipfixconfig.Cache)

Cache of the Monitoring Device.

Array of objects (netgate.ipfix.ipfixconfig.SelectionProcess)

Selection Process of the Monitoring Device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:observationPoint": [
    ],
  • "netgate-ipfix:exportingProcess": [
    ],
  • "netgate-ipfix:cache": [
    ],
  • "netgate-ipfix:selectionProcess": [
    ]
}

creates or updates netgate.ipfix.IpfixConfig

Configuration for IP Flow Information Export. Data is structured the same as the ietf-ipfix-psamp model.

Request Body schema: application/yang-data+json

netgate.ipfix.IpfixConfig to be added or updated

object (netgate.ipfix.IpfixConfig)

Configuration for IP Flow Information Export. Data is structured the same as the ietf-ipfix-psamp model.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:ipfix-config": {
    }
}

removes netgate.ipfix.IpfixConfig

Configuration for IP Flow Information Export. Data is structured the same as the ietf-ipfix-psamp model.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config"

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

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

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

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

}

creates netgate.ipfix.ipfixconfig.Cache

Cache of the Monitoring Device.

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.Cache to be added to list

netgate-ipfix:name
string

Name of the cache. Only one set of timeoutCache parameters is supported. Cache list is for compatibility with IETF model.

object (netgate.ipfix.ipfixconfig.cache.TimeoutCache)

Flow expiration after active and idle timeout.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:name": "string",
  • "netgate-ipfix:timeoutCache": {
    }
}

returns netgate.ipfix.ipfixconfig.Cache

Cache of the Monitoring Device.

path Parameters
name
required
string

Id of cache

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/cache=%7Bname%7D"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:cache": {
    }
}

creates or updates netgate.ipfix.ipfixconfig.Cache

Cache of the Monitoring Device.

path Parameters
name
required
string

Id of cache

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.Cache to be added or updated

object (netgate.ipfix.ipfixconfig.Cache)

Cache of the Monitoring Device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:cache": {
    }
}

removes netgate.ipfix.ipfixconfig.Cache

Cache of the Monitoring Device.

path Parameters
name
required
string

Id of cache

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/cache=%7Bname%7D"

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

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

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

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

}

returns netgate.ipfix.ipfixconfig.cache.TimeoutCache

Flow expiration after active and idle timeout.

path Parameters
name
required
string

Id of cache

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/cache=%7Bname%7D/timeoutCache"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:timeoutCache": {
    }
}

creates netgate.ipfix.ipfixconfig.cache.TimeoutCache

Flow expiration after active and idle timeout.

path Parameters
name
required
string

Id of cache

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.cache.TimeoutCache to be added to list

netgate-ipfix:activeTimeout
integer <int64>

The time in seconds after which a flow is expired even if packets are still received.

netgate-ipfix:idleTimeout
integer <int64>

The time in seconds after which a flow is expired if no more packets mathing the flow are received.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:activeTimeout": 0,
  • "netgate-ipfix:idleTimeout": 0
}

creates or updates netgate.ipfix.ipfixconfig.cache.TimeoutCache

Flow expiration after active and idle timeout.

path Parameters
name
required
string

Id of cache

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.cache.TimeoutCache to be added or updated

object (netgate.ipfix.ipfixconfig.cache.TimeoutCache)

Flow expiration after active and idle timeout.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:timeoutCache": {
    }
}

removes netgate.ipfix.ipfixconfig.cache.TimeoutCache

Flow expiration after active and idle timeout.

path Parameters
name
required
string

Id of cache

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/cache=%7Bname%7D/timeoutCache"

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

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

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

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

}

creates netgate.ipfix.ipfixconfig.ExportingProcess

Exporting Process of the Monitoring Device.

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.ExportingProcess to be added to list

Array of objects (netgate.ipfix.ipfixconfig.exportingprocess.Destination)

List of export destinations.

netgate-ipfix:name
string

Name of exporting process.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:destination": [
    ],
  • "netgate-ipfix:name": "string"
}

returns netgate.ipfix.ipfixconfig.ExportingProcess

Exporting Process of the Monitoring Device.

path Parameters
name
required
string

Id of exportingProcess

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/exportingProcess=%7Bname%7D"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:exportingProcess": {
    }
}

creates or updates netgate.ipfix.ipfixconfig.ExportingProcess

Exporting Process of the Monitoring Device.

path Parameters
name
required
string

Id of exportingProcess

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.ExportingProcess to be added or updated

object (netgate.ipfix.ipfixconfig.ExportingProcess)

Exporting Process of the Monitoring Device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:exportingProcess": {
    }
}

removes netgate.ipfix.ipfixconfig.ExportingProcess

Exporting Process of the Monitoring Device.

path Parameters
name
required
string

Id of exportingProcess

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/exportingProcess=%7Bname%7D"

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

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

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

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

}

creates netgate.ipfix.ipfixconfig.exportingprocess.Destination

List of export destinations.

path Parameters
name
required
string

Id of exportingProcess

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.exportingprocess.Destination to be added to list

netgate-ipfix:name
string

Name of the destination.

object (netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter)

UDP parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:name": "string",
  • "netgate-ipfix:udpExporter": {
    }
}

returns netgate.ipfix.ipfixconfig.exportingprocess.Destination

List of export destinations.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/exportingProcess=%7Bname%7D/destination=%7Bdestination-name%7D"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:destination": {
    }
}

creates or updates netgate.ipfix.ipfixconfig.exportingprocess.Destination

List of export destinations.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.exportingprocess.Destination to be added or updated

object (netgate.ipfix.ipfixconfig.exportingprocess.Destination)

List of export destinations.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:destination": {
    }
}

removes netgate.ipfix.ipfixconfig.exportingprocess.Destination

List of export destinations.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/exportingProcess=%7Bname%7D/destination=%7Bdestination-name%7D"

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

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

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

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

}

returns netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter

UDP parameters.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/exportingProcess=%7Bname%7D/destination=%7Bdestination-name%7D/udpExporter"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:udpExporter": {
    }
}

creates netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter

UDP parameters.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter to be added to list

netgate-ipfix:destinationPort
integer <int32>

Port of the Collection Process.

netgate-ipfix:destinationIPAddress
string

IP address of the Collection Process.

netgate-ipfix:sourceIPAddress
string

Source IP address used by the Exporting Process.

netgate-ipfix:checksum
boolean

UDP checksum calculation enable flag.

netgate-ipfix:vrf
string

VRF to use to resolve collector address.

netgate-ipfix:templateRefreshTimeout
integer <int64>
Default: 600

Sets interval after which templates are resent.

netgate-ipfix:maxPacketSize
integer <int32>

Maximum size of IP packets sent to the Collector.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:destinationPort": 0,
  • "netgate-ipfix:destinationIPAddress": "string",
  • "netgate-ipfix:sourceIPAddress": "string",
  • "netgate-ipfix:checksum": true,
  • "netgate-ipfix:vrf": "string",
  • "netgate-ipfix:templateRefreshTimeout": 600,
  • "netgate-ipfix:maxPacketSize": 0
}

creates or updates netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter

UDP parameters.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter to be added or updated

object (netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter)

UDP parameters.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:udpExporter": {
    }
}

removes netgate.ipfix.ipfixconfig.exportingprocess.destination.UdpExporter

UDP parameters.

path Parameters
name
required
string

Id of exportingProcess

destination-name
required
string

Id of destination

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/exportingProcess=%7Bname%7D/destination=%7Bdestination-name%7D/udpExporter"

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

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

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

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

}

creates netgate.ipfix.ipfixconfig.ObservationPoint

Observation Point of the Monitoring Device.

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.ObservationPoint to be added to list

netgate-ipfix:name
string

Name of observation point.

netgate-ipfix:observationDomainId
string (netgate.ipfix.ObservationDomainId)
Value: "1"
netgate-ipfix:ifName
Array of strings

Interface where packets are observed.

netgate-ipfix:direction
string (netgate.ipfix.Direction)
Enum: "ingress" "egress" "both"

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:name": "string",
  • "netgate-ipfix:observationDomainId": "1",
  • "netgate-ipfix:ifName": [
    ],
  • "netgate-ipfix:direction": "ingress"
}

returns netgate.ipfix.ipfixconfig.ObservationPoint

Observation Point of the Monitoring Device.

path Parameters
name
required
string

Id of observationPoint

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/observationPoint=%7Bname%7D"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:observationPoint": {
    }
}

creates or updates netgate.ipfix.ipfixconfig.ObservationPoint

Observation Point of the Monitoring Device.

path Parameters
name
required
string

Id of observationPoint

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.ObservationPoint to be added or updated

object (netgate.ipfix.ipfixconfig.ObservationPoint)

Observation Point of the Monitoring Device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:observationPoint": {
    }
}

removes netgate.ipfix.ipfixconfig.ObservationPoint

Observation Point of the Monitoring Device.

path Parameters
name
required
string

Id of observationPoint

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/observationPoint=%7Bname%7D"

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

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

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

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

}

creates netgate.ipfix.ipfixconfig.SelectionProcess

Selection Process of the Monitoring Device.

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.SelectionProcess to be added to list

netgate-ipfix:name
string

Name of selection process.

Array of objects (netgate.ipfix.ipfixconfig.selectionprocess.Selector)

Selectors that define action of selection process.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:name": "string",
  • "netgate-ipfix:selector": [
    ]
}

returns netgate.ipfix.ipfixconfig.SelectionProcess

Selection Process of the Monitoring Device.

path Parameters
name
required
string

Id of selectionProcess

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/selectionProcess=%7Bname%7D"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:selectionProcess": {
    }
}

creates or updates netgate.ipfix.ipfixconfig.SelectionProcess

Selection Process of the Monitoring Device.

path Parameters
name
required
string

Id of selectionProcess

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.SelectionProcess to be added or updated

object (netgate.ipfix.ipfixconfig.SelectionProcess)

Selection Process of the Monitoring Device.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:selectionProcess": {
    }
}

removes netgate.ipfix.ipfixconfig.SelectionProcess

Selection Process of the Monitoring Device.

path Parameters
name
required
string

Id of selectionProcess

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/selectionProcess=%7Bname%7D"

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

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

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

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

}

creates netgate.ipfix.ipfixconfig.selectionprocess.Selector

Selectors that define action of selection process.

path Parameters
name
required
string

Id of selectionProcess

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.selectionprocess.Selector to be added to list

netgate-ipfix:name
string

Name of selector.

netgate-ipfix:selectAll
string

Select all packets.

object (netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch)

Property match filtering.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:name": "string",
  • "netgate-ipfix:selectAll": "string",
  • "netgate-ipfix:filterMatch": {
    }
}

returns netgate.ipfix.ipfixconfig.selectionprocess.Selector

Selectors that define action of selection process.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/selectionProcess=%7Bname%7D/selector=%7Bselector-name%7D"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:selector": {
    }
}

creates or updates netgate.ipfix.ipfixconfig.selectionprocess.Selector

Selectors that define action of selection process.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.selectionprocess.Selector to be added or updated

object (netgate.ipfix.ipfixconfig.selectionprocess.Selector)

Selectors that define action of selection process.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:selector": {
    }
}

removes netgate.ipfix.ipfixconfig.selectionprocess.Selector

Selectors that define action of selection process.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/selectionProcess=%7Bname%7D/selector=%7Bselector-name%7D"

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

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

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

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

}

returns netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch

Property match filtering.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/selectionProcess=%7Bname%7D/selector=%7Bselector-name%7D/filterMatch"

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

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

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

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

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:filterMatch": {
    }
}

creates netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch

Property match filtering.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch to be added to list

netgate-ipfix:value
string (netgate.ipfix.IpfixFilterIpVersionNum)
Enum: "4" "6"
netgate-ipfix:ieId
string (netgate.ipfix.IpfixFilterEid)
Value: "60"

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:value": "4",
  • "netgate-ipfix:ieId": "60"
}

creates or updates netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch

Property match filtering.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Request Body schema: application/yang-data+json

netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch to be added or updated

object (netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch)

Property match filtering.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-ipfix:filterMatch": {
    }
}

removes netgate.ipfix.ipfixconfig.selectionprocess.selector.method.filtermatch.FilterMatch

Property match filtering.

path Parameters
name
required
string

Id of selectionProcess

selector-name
required
string

Id of selector

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ipfix:ipfix-config/selectionProcess=%7Bname%7D/selector=%7Bselector-name%7D/filterMatch"

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

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

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

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

}