Connect API with ceph backend
Connect the application with the ceph Object Gateway.
S3 request package with boto3
import boto3
s3 = boto3.resource(
service_name="s3",
endpoint_url=<ceph gateway url>,
aws_access_key_id=<admin access key>,
aws_secret_access_key=<admin secret key>
)
Ceph admin operations with rgwadmin
from rgwadmin import RGWAdmin
rgw = RGWAdmin(
access_key=<admin access key>,
secret_key=<admin secret key>,
server=<ceph gateway url>
)