netgate-license API (25.06)

This YANG module provides a Netgate-defined data-model for License data.

Copyright 2025 Rubicon Communications, LLC.

license

returns netgate.license.License

License configuration.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-license:license"

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

creates netgate.license.License

License configuration.

Request Body schema: application/yang-data+json

netgate.license.License to be added to list

netgate-license:license-phrase
string

The license phrase for the License.

netgate-license:name
string

The name of a contact for the License holder.

netgate-license:text
string

The text of the License.

netgate-license:email
string

The email of a contact for the License holder.

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-license:license-phrase": "string",
  • "netgate-license:name": "string",
  • "netgate-license:text": "string",
  • "netgate-license:email": "string"
}

creates or updates netgate.license.License

License configuration.

Request Body schema: application/yang-data+json

netgate.license.License to be added or updated

object (netgate.license.License)

License configuration.

Responses

Request samples

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

removes netgate.license.License

License configuration.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-license:license"

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

}

license-get

/operations/netgate-license:license-get

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/operations/netgate-license:license-get"

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

}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

license-get-sign-request

operates on netgate.license.LicenseGetSignRequest

operates on netgate.license.LicenseGetSignRequest

Request Body schema: application/yang-data+json
object (netgate.license.licensegetsignrequest.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}

license-sign-request

operates on netgate.license.LicenseSignRequest

operates on netgate.license.LicenseSignRequest

Request Body schema: application/yang-data+json
object (netgate.license.licensesignrequest.Input)

Responses

Request samples

Content type
application/yang-data+json
{
  • "input": {
    }
}

Response samples

Content type
application/yang-data+json
{
  • "output": {
    }
}