netgate-ip API (22.10)

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":
    {