This YANG module provides a Netgate-defined data-model for License data.
Copyright 2025 Rubicon Communications, LLC.
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)) }
{- "netgate-license:license": {
- "netgate-license:license-phrase": "string",
- "netgate-license:name": "string",
- "netgate-license:text": "string",
- "netgate-license:email": "string"
}
}
License configuration.
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. |
{- "netgate-license:license-phrase": "string",
- "netgate-license:name": "string",
- "netgate-license:text": "string",
- "netgate-license:email": "string"
}
License configuration.
netgate.license.License to be added or updated
object (netgate.license.License) License configuration. |
{- "netgate-license:license": {
- "netgate-license:license-phrase": "string",
- "netgate-license:name": "string",
- "netgate-license:text": "string",
- "netgate-license:email": "string"
}
}
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)) }
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)) }
{- "output": {
- "netgate-license:license-phrase": "string",
- "netgate-license:name": "string",
- "netgate-license:extensions": {
- "netgate-license:extension": [
- {
- "netgate-license:name": "string",
- "netgate-license:value": "string",
- "netgate-license:oid": "string"
}
]
}, - "netgate-license:text": "string",
- "netgate-license:email": "string"
}
}
operates on netgate.license.LicenseGetSignRequest
object (netgate.license.licensegetsignrequest.Input) |
{- "input": {
- "netgate-license:name": "string",
- "netgate-license:email": "string"
}
}
{- "output": {
- "netgate-license:data": "string",
- "netgate-license:format": "text",
- "netgate-license:encoding": "none"
}
}
operates on netgate.license.LicenseSignRequest
object (netgate.license.licensesignrequest.Input) |
{- "input": {
- "netgate-license:name": "string",
- "netgate-license:email": "string"
}
}
{- "output": {
- "netgate-license:license-phrase": "string",
- "netgate-license:text": "string"
}
}