[ceph-users] Re: Bucket/object create/update/delete notification

2023-11-29 Thread Yuval Lifshitz
Hi Rok,
Please have a look here:
https://github.com/ceph/ceph/tree/main/examples/rgw/boto3
It has both CLI and python examples. Let me know if you need more
information.

Yuval

On Tue, Nov 28, 2023 at 10:21 PM Rok Jaklič  wrote:

> Hi,
>
> I would like to get info if the bucket or object got updated.
>
> I can get this info with a changed etag of an object, but not I cannot get
> etag from bucket, so I am looking at
> https://docs.ceph.com/en/latest/radosgw/notifications/
>
> How do I create a topic and where do I send request with parameters?
>
> Anyone have an example (cli, python, ...) with topic creation where I can
> get notification to a http endpoint when an object got created in a bucket?
>
> Kind regards,
> Rok
> ___
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
>
>
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: Bucket/object create/update/delete notification

2023-11-29 Thread Rok Jaklič
Thx. Got it done with these two python scripts based on examples from your
provided link.

Rok


On Wed, Nov 29, 2023 at 11:13 AM Yuval Lifshitz  wrote:

> Hi Rok,
> Please have a look here:
> https://github.com/ceph/ceph/tree/main/examples/rgw/boto3
> It has both CLI and python examples. Let me know if you need more
> information.
>
> Yuval
>
> On Tue, Nov 28, 2023 at 10:21 PM Rok Jaklič  wrote:
>
>> Hi,
>>
>> I would like to get info if the bucket or object got updated.
>>
>> I can get this info with a changed etag of an object, but not I cannot get
>> etag from bucket, so I am looking at
>> https://docs.ceph.com/en/latest/radosgw/notifications/
>>
>> How do I create a topic and where do I send request with parameters?
>>
>> Anyone have an example (cli, python, ...) with topic creation where I can
>> get notification to a http endpoint when an object got created in a
>> bucket?
>>
>> Kind regards,
>> Rok
>> ___
>> ceph-users mailing list -- ceph-users@ceph.io
>> To unsubscribe send an email to ceph-users-le...@ceph.io
>>
>>
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io