netgate-ip API (21.07)

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

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

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

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
object (netgate.ip.IpConfig)

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

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/netgate-ip:reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/netgate-ip: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/netgate-ip: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":
    {
    }
}

creates netgate.ip.ipconfig.Reassembly

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

Example URL

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

creates netgate.ip.ipconfig.Reassembly

Request Body schema: application/yang-data+json

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

virtual
object (netgate.ip.ReassemblyGrouping)
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
{
  • "virtual":
    {
    },
  • "full":
    {
    }
}

creates or updates netgate.ip.ipconfig.Reassembly

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

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/netgate-ip: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
object (netgate.ip.ipconfig.Reassembly)

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

removes netgate.ip.ipconfig.Reassembly

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

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/netgate-ip: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/netgate-ip: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/netgate-ip:reassembly/netgate-ip:full

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/netgate-ip:reassembly/netgate-ip: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/netgate-ip:reassembly/netgate-ip: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":
    {
    }
}

creates netgate.ip.ReassemblyGrouping

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

Example URL

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

creates netgate.ip.ReassemblyGrouping

Request Body schema: application/yang-data+json

netgate.ip.ReassemblyGrouping to be added to list

ipv4
object (netgate.ip.reassemblygrouping.Ipv4)
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
{
  • "ipv4":
    {
    },
  • "ipv6":
    {
    }
}

creates or updates netgate.ip.ReassemblyGrouping

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

Example URL

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

creates or updates netgate.ip.ReassemblyGrouping

Request Body schema: application/yang-data+json

netgate.ip.ReassemblyGrouping to be added or updated

ipv4
object (netgate.ip.reassemblygrouping.Ipv4)
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
{
  • "ipv4":
    {
    },
  • "ipv6":
    {
    }
}

removes netgate.ip.ReassemblyGrouping

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

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/netgate-ip:reassembly/netgate-ip: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/netgate-ip:reassembly/netgate-ip: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/netgate-ip:reassembly/netgate-ip:full/netgate-ip:ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip-config/netgate-ip:reassembly/netgate-ip:full/netgate-ip: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/netgate-ip:reassembly/netgate-ip:full/netgate-ip: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