2.15.8. 알림 구성 관리
명령줄 인터페이스를 사용하여 버킷의 알림 구성을 나열, 가져오기 및 제거할 수 있습니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터.
- Ceph Object Gateway가 구성되어 있습니다.
프로세스
모든 버킷 알림 구성을 나열합니다.
구문
radosgw-admin notification list --bucket=BUCKET_NAME예
[root@host04 ~]# radosgw-admin notification list --bucket bkt2 { "notifications": [ { "TopicArn": "arn:aws:sns:default::topic1", "Id": "notif1", "Events": [ "s3:ObjectCreated:*", "s3:ObjectRemoved:*" ], "Filter": { "S3Key": {}, "S3Metadata": {}, "S3Tags": {} } }, { "TopicArn": "arn:aws:sns:default::topic1", "Id": "notif2", "Events": [ "s3:ObjectSynced:*" ], "Filter": { "S3Key": {}, "S3Metadata": {}, "S3Tags": {} } } ] }버킷 알림 구성을 가져옵니다.
구문
radosgw-admin notification get --bucket BUCKET_NAME --notification-id NOTIFICATION_ID예
[root@host04 ~]# radosgw-admin notification get --bucket bkt2 --notification-id notif2 { "TopicArn": "arn:aws:sns:default::topic1", "Id": "notif2", "Events": [ "s3:ObjectSynced:*" ], "Filter": { "S3Key": {}, "S3Metadata": {}, "S3Tags": {} } }특정 버킷 알림 구성을 제거합니다.
구문
radosgw-admin notification rm --bucket BUCKET_NAME [--notification-id NOTIFICATION_ID]여기에서 NOTIFICATION_ID 는 선택 사항입니다. 지정하지 않으면 명령에서 해당 버킷의 모든 알림 구성을 제거합니다.
예
[root@host04 ~]# radosgw-admin notification rm --bucket bkt2 --notification-id notif1