borgbase / borgbase-api-client Goto Github PK
View Code? Open in Web Editor NEWA Python wrapper around the BorgBase GraphQL API to automate administration
Home Page: https://www.borgbase.com/
A Python wrapper around the BorgBase GraphQL API to automate administration
Home Page: https://www.borgbase.com/
The REPO_ADD mutation wrapper does not allow a user to set rsyncKeys
when creating a repo.
Would love for this to be possible.
This issue prevents usecases where repos need to be created with rsync access keys, and one wants to use the "create only" token role.
Currently, using the library to create repositories fails with the following error message:
DEBUG:root:{"errors":[{"message":"Variable \"name\" of type \"String\" used in position expecting type \"String!\".","locations":[{"line":3,"column":3},{"line":13,"column":13}]},{"message":"Variable \"region\" of type \"String\" used in position expecting type \"String!\".","locations":[{"line":9,"column":3},{"line":19,"column":15}]}]}
Steps to reproduce:
$ export TOKEN=<insert your borg base API token here>
$ python3 example-new-repo.py
EDIT : It looks like the id shouldnt change... I am searching why i am having this behavior in my test.
Hi,
In my unit test i am verifing the behavior of my app to know if it's creating/managing well my borgbase repos and keys.
I am currently cleaning/improving my tests, and just found something.
I am not stuck on this, but would like to be sure that it's a normal behavior that the 'id' is changing at each modification of the configuration, or if i am doing something wrong.
Thx
Hi there,
Im currently writing an Ansible module to automate the creation of new repositories (and ssh keys).
Most everything is working, but currently I have no way to query for the ID of an ssh key that is already present in the borgbase account. So currently I cannot write the module to use existing keys, only create new ones and use those.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.