netgate-ip API (24.02)

This YANG module provides global ip configuration such as ip-reassembly.

Copyright 2019-2020 Rubicon Communications, LLC.

ip-config

returns netgate.ip.IpConfig

get /data/netgate-ip:ip-config

Example URL

https://hostname/restconf/data/netgate-ip:ip-config

returns netgate.ip.IpConfig

Responses

200

netgate.ip.IpConfig

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-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
Copy
Expand all Collapse all
{
  • "netgate-ip:ip-config-wrapper":
    {
    }
}

creates netgate.ip.IpConfig

post /data/netgate-ip:ip-config

Example URL

https://hostname/restconf/data/netgate-ip:ip-config

creates netgate.ip.IpConfig

Request Body schema: application/yang-data+json

netgate.ip.IpConfig to be added to list

netgate-ip:ip-config
object (netgate.ip.IpConfig)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.IpConfig

put /data/netgate-ip:ip-config

Example URL

https://hostname/restconf/data/netgate-ip:ip-config

creates or updates netgate.ip.IpConfig

Request Body schema: application/yang-data+json

netgate.ip.IpConfig to be added or updated

netgate-ip:ip-config-wrapper
object (netgate.ip.IpConfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ip:ip-config-wrapper":
    {
    }
}

removes netgate.ip.IpConfig

delete /data/netgate-ip:ip-config

Example URL

https://hostname/restconf/data/netgate-ip:ip-config

removes netgate.ip.IpConfig

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-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))

}

returns netgate.ip.ipconfig.Reassembly

get /data/netgate-ip:ip-config/reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly

returns netgate.ip.ipconfig.Reassembly

Responses

200

netgate.ip.ipconfig.Reassembly

400

Internal error

Request samples

Copy
package main

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

func main() {

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

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-wrapper":
    {
    }
}

creates netgate.ip.ipconfig.Reassembly

post /data/netgate-ip:ip-config/reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly

creates netgate.ip.ipconfig.Reassembly

Request Body schema: application/yang-data+json

netgate.ip.ipconfig.Reassembly to be added to list

reassembly
object (netgate.ip.ipconfig.Reassembly)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.ipconfig.Reassembly

put /data/netgate-ip:ip-config/reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly

creates or updates netgate.ip.ipconfig.Reassembly

Request Body schema: application/yang-data+json

netgate.ip.ipconfig.Reassembly to be added or updated

netgate-ip:reassembly-wrapper
object (netgate.ip.ipconfig.ReassemblyWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-wrapper":
    {
    }
}

removes netgate.ip.ipconfig.Reassembly

delete /data/netgate-ip:ip-config/reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly

removes netgate.ip.ipconfig.Reassembly

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

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

	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.ip.ReassemblyGrouping

get /data/netgate-ip:ip-config/reassembly/full

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full

returns netgate.ip.ReassemblyGrouping

Responses

200

netgate.ip.ReassemblyGrouping

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-grouping-wrapper":
    {
    }
}

creates netgate.ip.ReassemblyGrouping

post /data/netgate-ip:ip-config/reassembly/full

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full

creates netgate.ip.ReassemblyGrouping

Request Body schema: application/yang-data+json

netgate.ip.ReassemblyGrouping to be added to list

full
object (netgate.ip.ReassemblyGrouping)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.ReassemblyGrouping

put /data/netgate-ip:ip-config/reassembly/full

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full

creates or updates netgate.ip.ReassemblyGrouping

Request Body schema: application/yang-data+json

netgate.ip.ReassemblyGrouping to be added or updated

full
object (netgate.ip.ReassemblyGrouping)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.ip.ReassemblyGrouping

delete /data/netgate-ip:ip-config/reassembly/full

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full

removes netgate.ip.ReassemblyGrouping

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full"

	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.ip.reassemblygrouping.Ipv4

get /data/netgate-ip:ip-config/reassembly/full/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv4

Ip4-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv4"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv4-wrapper":
    {
    }
}

creates netgate.ip.reassemblygrouping.Ipv4

post /data/netgate-ip:ip-config/reassembly/full/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv4

Ip4-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv4 to be added to list

ipv4
object (netgate.ip.reassemblygrouping.Ipv4)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.reassemblygrouping.Ipv4

put /data/netgate-ip:ip-config/reassembly/full/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv4

Ip4-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv4 to be added or updated

ipv4
object (netgate.ip.reassemblygrouping.Ipv4)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.ip.reassemblygrouping.Ipv4

delete /data/netgate-ip:ip-config/reassembly/full/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv4

Ip4-reassembly settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv4"

	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.ip.reassemblygrouping.Ipv6

get /data/netgate-ip:ip-config/reassembly/full/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv6

Ip6-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv6"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv6-wrapper":
    {
    }
}

creates netgate.ip.reassemblygrouping.Ipv6

post /data/netgate-ip:ip-config/reassembly/full/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv6

Ip6-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv6 to be added to list

ipv6
object (netgate.ip.reassemblygrouping.Ipv6)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.reassemblygrouping.Ipv6

put /data/netgate-ip:ip-config/reassembly/full/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv6

Ip6-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv6 to be added or updated

ipv6
object (netgate.ip.reassemblygrouping.Ipv6)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.ip.reassemblygrouping.Ipv6

delete /data/netgate-ip:ip-config/reassembly/full/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv6

Ip6-reassembly settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/full/ipv6"

	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.ip.ReassemblyGrouping

get /data/netgate-ip:ip-config/reassembly/virtual

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual

returns netgate.ip.ReassemblyGrouping

Responses

200

netgate.ip.ReassemblyGrouping

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-grouping-wrapper":
    {
    }
}

creates netgate.ip.ReassemblyGrouping

post /data/netgate-ip:ip-config/reassembly/virtual

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual

creates netgate.ip.ReassemblyGrouping

Request Body schema: application/yang-data+json

netgate.ip.ReassemblyGrouping to be added to list

full
object (netgate.ip.ReassemblyGrouping)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.ReassemblyGrouping

put /data/netgate-ip:ip-config/reassembly/virtual

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual

creates or updates netgate.ip.ReassemblyGrouping

Request Body schema: application/yang-data+json

netgate.ip.ReassemblyGrouping to be added or updated

full
object (netgate.ip.ReassemblyGrouping)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.ip.ReassemblyGrouping

delete /data/netgate-ip:ip-config/reassembly/virtual

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual

removes netgate.ip.ReassemblyGrouping

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual"

	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.ip.reassemblygrouping.Ipv4

get /data/netgate-ip:ip-config/reassembly/virtual/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv4

Ip4-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv4"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv4-wrapper":
    {
    }
}

creates netgate.ip.reassemblygrouping.Ipv4

post /data/netgate-ip:ip-config/reassembly/virtual/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv4

Ip4-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv4 to be added to list

ipv4
object (netgate.ip.reassemblygrouping.Ipv4)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.reassemblygrouping.Ipv4

put /data/netgate-ip:ip-config/reassembly/virtual/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv4

Ip4-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv4 to be added or updated

ipv4
object (netgate.ip.reassemblygrouping.Ipv4)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.ip.reassemblygrouping.Ipv4

delete /data/netgate-ip:ip-config/reassembly/virtual/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv4

Ip4-reassembly settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv4"

	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.ip.reassemblygrouping.Ipv6

get /data/netgate-ip:ip-config/reassembly/virtual/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv6

Ip6-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv6"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv6-wrapper":
    {
    }
}

creates netgate.ip.reassemblygrouping.Ipv6

post /data/netgate-ip:ip-config/reassembly/virtual/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv6

Ip6-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv6 to be added to list

ipv6
object (netgate.ip.reassemblygrouping.Ipv6)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.ip.reassemblygrouping.Ipv6

put /data/netgate-ip:ip-config/reassembly/virtual/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv6

Ip6-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.reassemblygrouping.Ipv6 to be added or updated

ipv6
object (netgate.ip.reassemblygrouping.Ipv6)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

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

removes netgate.ip.reassemblygrouping.Ipv6

delete /data/netgate-ip:ip-config/reassembly/virtual/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv6

Ip6-reassembly settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-config/reassembly/virtual/ipv6"

	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))

}

ip-state

returns netgate.ip.IpState

get /data/netgate-ip:ip-state

Example URL

https://hostname/restconf/data/netgate-ip:ip-state

returns netgate.ip.IpState

Responses

200

netgate.ip.IpState

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ip-state-wrapper":
    {
    }
}

returns netgate.ip.ipstate.Reassembly

get /data/netgate-ip:ip-state/reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly

returns netgate.ip.ipstate.Reassembly

Responses

200

netgate.ip.ipstate.Reassembly

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-wrapper":
    {
    }
}

returns netgate.ip.ReassemblyGrouping

get /data/netgate-ip:ip-state/reassembly/full

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly/full

returns netgate.ip.ReassemblyGrouping

Responses

200

netgate.ip.ReassemblyGrouping

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly/full"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-grouping-wrapper":
    {
    }
}

returns netgate.ip.reassemblygrouping.Ipv4

get /data/netgate-ip:ip-state/reassembly/full/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly/full/ipv4

Ip4-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly/full/ipv4"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv4-wrapper":
    {
    }
}

returns netgate.ip.reassemblygrouping.Ipv6

get /data/netgate-ip:ip-state/reassembly/full/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly/full/ipv6

Ip6-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly/full/ipv6"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv6-wrapper":
    {
    }
}

returns netgate.ip.ReassemblyGrouping

get /data/netgate-ip:ip-state/reassembly/virtual

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly/virtual

returns netgate.ip.ReassemblyGrouping

Responses

200

netgate.ip.ReassemblyGrouping

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly/virtual"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly-grouping-wrapper":
    {
    }
}

returns netgate.ip.reassemblygrouping.Ipv4

get /data/netgate-ip:ip-state/reassembly/virtual/ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly/virtual/ipv4

Ip4-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly/virtual/ipv4"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv4-wrapper":
    {
    }
}

returns netgate.ip.reassemblygrouping.Ipv6

get /data/netgate-ip:ip-state/reassembly/virtual/ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip-state/reassembly/virtual/ipv6

Ip6-reassembly settings.

Responses

200

netgate.ip.reassemblygrouping.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip-state/reassembly/virtual/ipv6"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv6-wrapper":
    {
    }
}