netgate-crypto API (24.02)

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

get /data/netgate-crypto:crypto-config

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config

Crypography configurations.

Responses

200

netgate.crypto.CryptoConfig

400

Internal error

Request samples

Copy
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
Copy
Expand all Collapse all
{
  • "netgate-crypto:crypto-config-wrapper":
    {
    }
}

creates netgate.crypto.CryptoConfig

post /data/netgate-crypto:crypto-config

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config

Crypography configurations.

Request Body schema: application/yang-data+json

netgate.crypto.CryptoConfig to be added to list

netgate-crypto:crypto-config
object (netgate.crypto.CryptoConfig)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.crypto.CryptoConfig

put /data/netgate-crypto:crypto-config

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config

Crypography configurations.

Request Body schema: application/yang-data+json

netgate.crypto.CryptoConfig to be added or updated

netgate-crypto:crypto-config-wrapper
object (netgate.crypto.CryptoConfigWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-crypto:crypto-config-wrapper":
    {
    }
}

removes netgate.crypto.CryptoConfig

delete /data/netgate-crypto:crypto-config

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config

Crypography configurations.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
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

get /data/netgate-crypto:crypto-config/asynchronous

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous

Asynchronous processing of cryptographic operations.

Responses

200

netgate.crypto.cryptoconfig.Asynchronous

400

Internal error

Request samples

Copy
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
Copy
Expand all Collapse all
{
  • "netgate-crypto:asynchronous-wrapper":
    {
    }
}

creates netgate.crypto.cryptoconfig.Asynchronous

post /data/netgate-crypto:crypto-config/asynchronous

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous

Asynchronous processing of cryptographic operations.

Request Body schema: application/yang-data+json

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

asynchronous
object (netgate.crypto.cryptoconfig.Asynchronous)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

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

creates or updates netgate.crypto.cryptoconfig.Asynchronous

put /data/netgate-crypto:crypto-config/asynchronous

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous

Asynchronous processing of cryptographic operations.

Request Body schema: application/yang-data+json

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

netgate-crypto:asynchronous-wrapper
object (netgate.crypto.cryptoconfig.AsynchronousWrapper)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-crypto:asynchronous-wrapper":
    {
    }
}

removes netgate.crypto.cryptoconfig.Asynchronous

delete /data/netgate-crypto:crypto-config/asynchronous

Example URL

https://hostname/restconf/data/netgate-crypto:crypto-config/asynchronous

Asynchronous processing of cryptographic operations.

Responses

204

Object deleted

400

Internal error

Request samples

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

}