This YANG module provides specifications of operations and data related to PKI management on TNSR.
Copyright 2018-2022 Rubicon Communications, LLC.
operates on netgate.pki.PkiAllRestconfCert
object (netgate.pki.pkiallrestconfcert.Input) |
{- "input": {
- "netgate-pki:length": 0,
- "netgate-pki:subject-alt-name": [
- "string"
]
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiCaAppend
object (netgate.pki.pkicaappend.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:source-name": "string"
}
}
operates on netgate.pki.PkiCaGet
object (netgate.pki.pkicaget.Input) |
{- "input": {
- "netgate-pki:output-level": 0,
- "netgate-pki:name": "string"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiCaImport
object (netgate.pki.pkicaimport.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:contents": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-ca-list" 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-pki:name": [
- "string"
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-ca-status-list" 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-pki:entry": [
- {
- "netgate-pki:seconds-left": 0,
- "netgate-pki:name": "string",
- "netgate-pki:days-left": 0,
- "netgate-pki:not-after": "string"
}
]
}
}
operates on netgate.pki.PkiCertGet
object (netgate.pki.pkicertget.Input) |
{- "input": {
- "netgate-pki:output-level": 0,
- "netgate-pki:name": "string"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiCertImport
object (netgate.pki.pkicertimport.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:contents": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-cert-list" 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-pki:name": [
- "string"
]
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-cert-status-list" 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-pki:entry": [
- {
- "netgate-pki:seconds-left": 0,
- "netgate-pki:name": "string",
- "netgate-pki:days-left": 0,
- "netgate-pki:not-after": "string"
}
]
}
}
operates on netgate.pki.PkiCsrGenerate
object (netgate.pki.pkicsrgenerate.Input) |
{- "input": {
- "netgate-pki:org-unit": "string",
- "netgate-pki:country": "string",
- "netgate-pki:subject-alt-names": {
- "netgate-pki:subject-alt-name": [
- {
- "netgate-pki:index": 0,
- "netgate-pki:hostname": "string",
- "netgate-pki:ipv4-address": "string",
- "netgate-pki:uri": "string",
- "netgate-pki:email": "string",
- "netgate-pki:ipv6-address": "string"
}
]
}, - "netgate-pki:purpose": "ca",
- "netgate-pki:org": "string",
- "netgate-pki:city": "string",
- "netgate-pki:digest": "sha224",
- "netgate-pki:name": "string",
- "netgate-pki:state": "string",
- "netgate-pki:common-name": "string"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiCsrGet
object (netgate.pki.pkicsrget.Input) |
{- "input": {
- "netgate-pki:name": "string"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-csr-list" 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-pki:name": [
- "string"
]
}
}
operates on netgate.pki.PkiCsrSign
object (netgate.pki.pkicsrsign.Input) |
{- "input": {
- "netgate-pki:digest": "sha224",
- "netgate-pki:name": "string",
- "netgate-pki:days-valid": 365,
- "netgate-pki:purpose": "ca",
- "netgate-pki:ca-name": "string"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiP12Generate
object (netgate.pki.pkip12generate.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:key-pbe-algorithm": "PBE-SHA1-3DES",
- "netgate-pki:export-password": "string",
- "netgate-pki:mac-algorithm": "sha1",
- "netgate-pki:certificate-pbe-algorithm": "PBE-SHA1-3DES",
- "netgate-pki:ca-name": "string"
}
}
{- "output": {
- "netgate-pki:base64": "string"
}
}
operates on netgate.pki.PkiP12Get
object (netgate.pki.pkip12get.Input) |
{- "input": {
- "netgate-pki:name": "string"
}
}
{- "output": {
- "netgate-pki:base64": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-p12-list" 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-pki:name": [
- "string"
]
}
}
operates on netgate.pki.PkiPrivateKeyDelete
object (netgate.pki.pkiprivatekeydelete.Input) |
{- "input": {
- "netgate-pki:name": "string"
}
}
operates on netgate.pki.PkiPrivateKeyGenerate
object (netgate.pki.pkiprivatekeygenerate.Input) |
{- "input": {
- "netgate-pki:length": 0,
- "netgate-pki:name": "string",
- "netgate-pki:algorithm": "RSA"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiPrivateKeyGet
object (netgate.pki.pkiprivatekeyget.Input) |
{- "input": {
- "netgate-pki:name": "string"
}
}
{- "output": {
- "netgate-pki:stdout": "string"
}
}
operates on netgate.pki.PkiPrivateKeyImport
object (netgate.pki.pkiprivatekeyimport.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:contents": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-private-key-list" 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-pki:name": [
- "string"
]
}
}
operates on netgate.pki.PkiSshKeyDelete
object (netgate.pki.pkisshkeydelete.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:which-keys": "private"
}
}
operates on netgate.pki.PkiSshKeyGet
object (netgate.pki.pkisshkeyget.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:which-keys": "private"
}
}
{- "output": {
- "netgate-pki:public-key": "string",
- "netgate-pki:private-key": "string"
}
}
operates on netgate.pki.PkiSshKeyImport
object (netgate.pki.pkisshkeyimport.Input) |
{- "input": {
- "netgate-pki:name": "string",
- "netgate-pki:public-key": "string",
- "netgate-pki:private-key": "string"
}
}
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "http://hostname/restconf/operations/netgate-pki:pki-ssh-key-list" 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-pki:key": [
- {
- "netgate-pki:name": "string",
- "netgate-pki:which-keys": "private"
}
]
}
}