diff options
author | John Estabrook <jestabro@vyos.io> | 2021-11-14 19:03:25 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-11-15 14:50:28 -0600 |
commit | 8915a19f7761253b7bdf6ca847069539ee33851d (patch) | |
tree | 7e30fcb40c7e103de23a056b3bc5dc3d1d7e804f /src/services/api/graphql/README.graphql | |
parent | 9e2694b24b06d928240522322c9a6d60c7a7d290 (diff) | |
download | vyos-1x-8915a19f7761253b7bdf6ca847069539ee33851d.tar.gz vyos-1x-8915a19f7761253b7bdf6ca847069539ee33851d.zip |
graphql: T3993: add config file save/load
Diffstat (limited to 'src/services/api/graphql/README.graphql')
-rw-r--r-- | src/services/api/graphql/README.graphql | 24 |
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 |