netgate-pki API (19.05)

This YANG module provides specifications of operations and data related to PKI management on TNSR.

Copyright 2018-2019 Rubicon Communications, LLC.

pki-ca-append

creates netgate.pki.PkiCaAppend

post /operations/netgate-pki:pki-ca-append

Example URL

https://hostname/restconf/operations/netgate-pki:pki-ca-append

creates netgate.pki.PkiCaAppend

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicaappend.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-ca-delete

creates netgate.pki.PkiCaDelete

post /operations/netgate-pki:pki-ca-delete

Example URL

https://hostname/restconf/operations/netgate-pki:pki-ca-delete

creates netgate.pki.PkiCaDelete

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicadelete.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-ca-get

creates netgate.pki.PkiCaGet

post /operations/netgate-pki:pki-ca-get

Example URL

https://hostname/restconf/operations/netgate-pki:pki-ca-get

creates netgate.pki.PkiCaGet

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicaget.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-ca-import

creates netgate.pki.PkiCaImport

post /operations/netgate-pki:pki-ca-import

Example URL

https://hostname/restconf/operations/netgate-pki:pki-ca-import

creates netgate.pki.PkiCaImport

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicaimport.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-ca-list

<no summary>

post /operations/netgate-pki:pki-ca-list

Example URL

https://hostname/restconf/operations/netgate-pki:pki-ca-list

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-cert-delete

creates netgate.pki.PkiCertDelete

post /operations/netgate-pki:pki-cert-delete

Example URL

https://hostname/restconf/operations/netgate-pki:pki-cert-delete

creates netgate.pki.PkiCertDelete

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicertdelete.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-cert-get

creates netgate.pki.PkiCertGet

post /operations/netgate-pki:pki-cert-get

Example URL

https://hostname/restconf/operations/netgate-pki:pki-cert-get

creates netgate.pki.PkiCertGet

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicertget.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-cert-import

creates netgate.pki.PkiCertImport

post /operations/netgate-pki:pki-cert-import

Example URL

https://hostname/restconf/operations/netgate-pki:pki-cert-import

creates netgate.pki.PkiCertImport

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicertimport.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-cert-list

<no summary>

post /operations/netgate-pki:pki-cert-list

Example URL

https://hostname/restconf/operations/netgate-pki:pki-cert-list

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-csr-delete

creates netgate.pki.PkiCsrDelete

post /operations/netgate-pki:pki-csr-delete

Example URL

https://hostname/restconf/operations/netgate-pki:pki-csr-delete

creates netgate.pki.PkiCsrDelete

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicsrdelete.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-csr-generate

creates netgate.pki.PkiCsrGenerate

post /operations/netgate-pki:pki-csr-generate

Example URL

https://hostname/restconf/operations/netgate-pki:pki-csr-generate

creates netgate.pki.PkiCsrGenerate

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicsrgenerate.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-csr-get

creates netgate.pki.PkiCsrGet

post /operations/netgate-pki:pki-csr-get

Example URL

https://hostname/restconf/operations/netgate-pki:pki-csr-get

creates netgate.pki.PkiCsrGet

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicsrget.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-csr-list

<no summary>

post /operations/netgate-pki:pki-csr-list

Example URL

https://hostname/restconf/operations/netgate-pki:pki-csr-list

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-csr-sign

creates netgate.pki.PkiCsrSign

post /operations/netgate-pki:pki-csr-sign

Example URL

https://hostname/restconf/operations/netgate-pki:pki-csr-sign

creates netgate.pki.PkiCsrSign

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkicsrsign.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-private-key-delete

creates netgate.pki.PkiPrivateKeyDelete

post /operations/netgate-pki:pki-private-key-delete

Example URL

https://hostname/restconf/operations/netgate-pki:pki-private-key-delete

creates netgate.pki.PkiPrivateKeyDelete

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkiprivatekeydelete.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-private-key-generate

creates netgate.pki.PkiPrivateKeyGenerate

post /operations/netgate-pki:pki-private-key-generate

Example URL

https://hostname/restconf/operations/netgate-pki:pki-private-key-generate

creates netgate.pki.PkiPrivateKeyGenerate

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkiprivatekeygenerate.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-private-key-get

creates netgate.pki.PkiPrivateKeyGet

post /operations/netgate-pki:pki-private-key-get

Example URL

https://hostname/restconf/operations/netgate-pki:pki-private-key-get

creates netgate.pki.PkiPrivateKeyGet

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkiprivatekeyget.Input)

Responses

200

Correct response

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}

pki-private-key-import

creates netgate.pki.PkiPrivateKeyImport

post /operations/netgate-pki:pki-private-key-import

Example URL

https://hostname/restconf/operations/netgate-pki:pki-private-key-import

creates netgate.pki.PkiPrivateKeyImport

Request Body schema: application/yang-data+json
input
object (netgate.pki.pkiprivatekeyimport.Input)

Responses

201

No response

400

Internal error

Request samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "input":
    {
    }
}

pki-private-key-list

<no summary>

post /operations/netgate-pki:pki-private-key-list

Example URL

https://hostname/restconf/operations/netgate-pki:pki-private-key-list

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

}

Response samples

application/yang-data+json
Copy
Expand all Collapse all
{
  • "output":
    {
    }
}