clyso / chorus

s3 multi provider data lifecycle management
Apache License 2.0
54 stars 6 forks source link

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

Open hoanglm97 opened 1 month ago

hoanglm97 commented 1 month ago

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

arttor commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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.