summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/README.graphql
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-11-14 19:03:25 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-11-15 15:36:42 -0600
commit419f81a0c39740de0ff61ce25325ebea76c4a395 (patch)
treebd19031423992efff8151bcc034e57467944f0fd /src/services/api/graphql/README.graphql
parent8e8d3d8e6dfec86c210a1b5874e839ad8adaef4b (diff)
downloadvyos-1x-419f81a0c39740de0ff61ce25325ebea76c4a395.tar.gz
vyos-1x-419f81a0c39740de0ff61ce25325ebea76c4a395.zip
graphql: T3993: add config file save/load
(cherry picked from commit 8915a19f7761253b7bdf6ca847069539ee33851d)
Diffstat (limited to 'src/services/api/graphql/README.graphql')
-rw-r--r--src/services/api/graphql/README.graphql24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/services/api/graphql/README.graphql b/src/services/api/graphql/README.graphql
index 580c0eb7f..c91b70782 100644
--- a/src/services/api/graphql/README.graphql
+++ b/src/services/api/graphql/README.graphql
@@ -42,6 +42,30 @@ mutation {
}
}
+mutation {
+ saveConfigFile(data: {fileName: "/config/config.boot"}) {
+ success
+ errors
+ data {
+ fileName
+ }
+ }
+}
+
+N.B. fileName can be empty (fileName: "") or data can be empty (data: {}) to save to
+/config/config.boot; to save to an alternative path, specify fileName.
+
+mutation {
+ loadConfigFile(data: {fileName: "/home/vyos/config.boot"}) {
+ success
+ errors
+ data {
+ fileName
+ }
+ }
+}
+
+
The GraphQL playground will be found at:
https://{{ host_address }}/graphql