netgate-package API (22.06)

This YANG module provides a data model for network interfaces.

Copyright 2018-2020 Rubicon Communications, LLC.

package-cache-cleanup

<no summary>

post /operations/netgate-package:package-cache-cleanup

Example URL

https://hostname/restconf/operations/netgate-package:package-cache-cleanup

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-package:package-cache-cleanup"

	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

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

package-info

creates netgate.package.PackageInfo

post /operations/netgate-package:package-info

Example URL

https://hostname/restconf/operations/netgate-package:package-info

creates netgate.package.PackageInfo

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

package-install

creates netgate.package.PackageInstall

post /operations/netgate-package:package-install

Example URL

https://hostname/restconf/operations/netgate-package:package-install

creates netgate.package.PackageInstall

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

package-list

creates netgate.package.PackageList

post /operations/netgate-package:package-list

Example URL

https://hostname/restconf/operations/netgate-package:package-list

creates netgate.package.PackageList

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

package-reinstall

creates netgate.package.PackageReinstall

post /operations/netgate-package:package-reinstall

Example URL

https://hostname/restconf/operations/netgate-package:package-reinstall

creates netgate.package.PackageReinstall

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

package-remove

creates netgate.package.PackageRemove

post /operations/netgate-package:package-remove

Example URL

https://hostname/restconf/operations/netgate-package:package-remove

creates netgate.package.PackageRemove

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

creates netgate.package.PackageSearch

post /operations/netgate-package:package-search

Example URL

https://hostname/restconf/operations/netgate-package:package-search

creates netgate.package.PackageSearch

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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

package-upgrade

creates netgate.package.PackageUpgrade

post /operations/netgate-package:package-upgrade

Example URL

https://hostname/restconf/operations/netgate-package:package-upgrade

creates netgate.package.PackageUpgrade

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

Responses

200

Correct response

201

No response

400

Internal error

Request samples

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

Response samples

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