twonote / radosgw-admin4j

A Ceph Object Storage Admin SDK / Client Library for Java ✨🍰✨
https://twonote.github.io/radosgw-admin4j
Apache License 2.0
61 stars 33 forks source link

how to create a bucket ? #34

Closed fallowu closed 2 years ago

fallowu commented 4 years ago

just find to get bucket info ,no create bucket api by using RGW_ADMIN.

hrchu commented 4 years ago

Hi @fallowu, create bucket is an S3 API. However, this is a radosgw admin library.

If what you want are S3 APIs, you should use https://github.com/aws/aws-sdk-java instead.

Here is an usage example: https://github.com/twonote/radosgw-admin4j/blob/master/src/test/java/org/twonote/rgwadmin4j/examples/Example.java#L61