Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create a replicate config through the HTTP API? #41

Open
hoanglm97 opened this issue Aug 7, 2024 · 3 comments
Open

Comments

@hoanglm97
Copy link

Hi there, I want to ask about the API. Can it create one or multiple configurations?

@arttor
Copy link
Collaborator

arttor commented Aug 7, 2024

I don't fully understand the question but there is openapi spec for chorus management API:
https://petstore.swagger.io/?url=https://raw.githubusercontent.com/clyso/chorus/main/proto/gen/openapi/chorus/chorus.swagger.json

You can use API directly or with chorctl CLI.

There are methods to create replication policies per user and per bucket. It is also possible to to replicate bucket to multiple storages.

Available storages are configured in Chorus yaml config. I hope that it helps.

@hoanglm97
Copy link
Author

hoanglm97 commented Aug 7, 2024

Well, i have many users with many buckets and their credentials, could i create each config with params is user, bucket and credential of them with HTTP API?

@arttor
Copy link
Collaborator

arttor commented Aug 7, 2024

user credentials currently can only be set in yaml config. Replication policy (which bucket should be copied to which storage) can be configured with api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants