mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
commit
47ecaa02f5
@ -4,7 +4,7 @@
|
|||||||
HTTP-API
|
HTTP-API
|
||||||
########
|
########
|
||||||
|
|
||||||
VyOS provide a HTTP API. You can use it to execute op-mode commands,
|
VyOS provide an HTTP API. You can use it to execute op-mode commands,
|
||||||
update VyOS, set or delete config.
|
update VyOS, set or delete config.
|
||||||
|
|
||||||
Please take a look at the :ref:`vyosapi` page for an detailed how-to.
|
Please take a look at the :ref:`vyosapi` page for an detailed how-to.
|
||||||
@ -15,7 +15,7 @@ Configuration
|
|||||||
|
|
||||||
.. cfgcmd:: set service https api keys id <name> key <apikey>
|
.. cfgcmd:: set service https api keys id <name> key <apikey>
|
||||||
|
|
||||||
Set an named api key, every key have the same, full permissions
|
Set a named api key. Every key has the same, full permissions
|
||||||
on the system.
|
on the system.
|
||||||
|
|
||||||
.. cfgcmd:: set service https api debug
|
.. cfgcmd:: set service https api debug
|
||||||
@ -25,7 +25,7 @@ Configuration
|
|||||||
|
|
||||||
.. cfgcmd:: set service https api port
|
.. cfgcmd:: set service https api port
|
||||||
|
|
||||||
Set the listen port of the local API, this have non effect of the
|
Set the listen port of the local API, this has no effect on the
|
||||||
webserver. The default is port 8080
|
webserver. The default is port 8080
|
||||||
|
|
||||||
.. cfgcmd:: set service https api strict
|
.. cfgcmd:: set service https api strict
|
||||||
@ -42,11 +42,11 @@ Configuration
|
|||||||
|
|
||||||
.. cfgcmd:: set service https virtual-host <vhost> server-name <text>
|
.. cfgcmd:: set service https virtual-host <vhost> server-name <text>
|
||||||
|
|
||||||
Server names for virtual hosts it ca be exact, wildcard or regex.
|
Server names for virtual hosts it can be exact, wildcard or regex.
|
||||||
|
|
||||||
.. cfgcmd:: set service https api-restrict virtual-host <vhost>
|
.. cfgcmd:: set service https api-restrict virtual-host <vhost>
|
||||||
|
|
||||||
Nginx exposes the local API on all virtual servers, by default
|
By default, nginx exposes the local API on all virtual servers.
|
||||||
Use this to restrict nginx to one or more virtual hosts.
|
Use this to restrict nginx to one or more virtual hosts.
|
||||||
|
|
||||||
.. cfgcmd:: set service https certificates certbot domain-name <text>
|
.. cfgcmd:: set service https certificates certbot domain-name <text>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user