netgate-crypto API (24.06)

This YANG module provides a Netgate-defined data model for configuration of cryptographic parameters.

Copyright 2022 Rubicon Communications, LLC.

crypto-config

returns netgate.crypto.CryptoConfig

Crypography configurations.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-crypto:crypto-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
{
  • "netgate-crypto:crypto-config": {
    }
}

creates netgate.crypto.CryptoConfig

Crypography configurations.

Request Body schema: application/yang-data+json

netgate.crypto.CryptoConfig to be added to list

object (netgate.crypto.cryptoconfig.Asynchronous)

Asynchronous processing of cryptographic operations.

Responses

Request samples

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

creates or updates netgate.crypto.CryptoConfig

Crypography configurations.

Request Body schema: application/yang-data+json

netgate.crypto.CryptoConfig to be added or updated

object (netgate.crypto.CryptoConfig)

Crypography configurations.

Responses

Request samples

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

removes netgate.crypto.CryptoConfig

Crypography configurations.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-crypto:crypto-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.crypto.cryptoconfig.Asynchronous

Asynchronous processing of cryptographic operations.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous"

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

creates netgate.crypto.cryptoconfig.Asynchronous

Asynchronous processing of cryptographic operations.

Request Body schema: application/yang-data+json

netgate.crypto.cryptoconfig.Asynchronous to be added to list

netgate-crypto:dispatch-mode
string (netgate.crypto.AsynchronousDispatchMode)
Enum: "adaptive" "polling" "interrupt"

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-crypto:dispatch-mode": "adaptive"
}

creates or updates netgate.crypto.cryptoconfig.Asynchronous

Asynchronous processing of cryptographic operations.

Request Body schema: application/yang-data+json

netgate.crypto.cryptoconfig.Asynchronous to be added or updated

object (netgate.crypto.cryptoconfig.Asynchronous)

Asynchronous processing of cryptographic operations.

Responses

Request samples

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

removes netgate.crypto.cryptoconfig.Asynchronous

Asynchronous processing of cryptographic operations.

Responses

Request samples

package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous"

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

}