Skip to content

Commit fd8723e

Browse files
Merge pull request ceph#64768 from bluikko/doc-notifications-fixes-cephadm2
doc/radosgw: Small fixes and improvements in notifications.rst, part 2
2 parents bf5ad2f + f682244 commit fd8723e

File tree

1 file changed

+95
-90
lines changed

1 file changed

+95
-90
lines changed

doc/radosgw/notifications.rst

Lines changed: 95 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -428,31 +428,33 @@ The response has the following format:
428428
</ResponseMetadata>
429429
</GetTopicAttributesResponse>
430430

431-
- User: the name of the user that created the topic.
432-
- Name: the name of the topic.
433-
- EndPoint: The JSON-formatted endpoint parameters, including:
434-
- EndpointAddress: The push-endpoint URL.
435-
- EndpointArgs: The push-endpoint args.
436-
- EndpointTopic: The topic name to be sent to the endpoint (can be different
437-
than the above topic name).
438-
- HasStoredSecret: This is "true" if the endpoint URL contains user/password
431+
- ``User``: the name of the user that created the topic
432+
- ``Name``: the name of the topic
433+
- ``EndPoint``: the JSON-formatted endpoint parameters, including:
434+
435+
- ``EndpointAddress``: the push-endpoint URL
436+
- ``EndpointArgs``: the push-endpoint arguments
437+
- ``EndpointTopic``: the topic name to be sent to the endpoint (can be different
438+
than the above topic name)
439+
- ``HasStoredSecret``: This is "true" if the endpoint URL contains ``user``/``password``
439440
information. In this case, the request must be made over HTTPS. The "topic
440441
get" request will otherwise be rejected.
441-
- Persistent: This is "true" if the topic is persistent.
442-
- TimeToLive: This will limit the time (in seconds) to retain the notifications.
443-
- MaxRetries: This will limit the max retries before expiring notifications.
444-
- RetrySleepDuration: This will control the frequency of retrying the notifications.
445-
- TopicArn: topic `ARN
446-
<https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_.
447-
- OpaqueData: The opaque data set on the topic.
448-
- Policy: Any access permission set on the topic.
442+
- ``Persistent``: This is "true" if the topic is persistent.
443+
- ``TimeToLive``: This will limit the time (in seconds) to retain the notifications.
444+
- ``MaxRetries``: This will limit the max retries before expiring notifications.
445+
- ``RetrySleepDuration``: This will control the frequency of retrying the notifications.
446+
447+
- ``TopicArn``: topic `ARN
448+
<https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_
449+
- ``OpaqueData``: the opaque data set on the topic
450+
- ``Policy``: any access permission set on the topic
449451

450452
Get Topic Information
451453
`````````````````````
452454

453455
This returns information about a specific topic. This includes push-endpoint
454456
information, if provided. Note that this API is now deprecated in favor of the
455-
AWS compliant `GetTopicAttributes` API.
457+
AWS compliant ``GetTopicAttributes`` API.
456458

457459
::
458460

@@ -486,20 +488,20 @@ The response has the following format:
486488
</ResponseMetadata>
487489
</GetTopicResponse>
488490

489-
- User: The name of the user that created the topic.
490-
- Name: The name of the topic.
491-
- EndpointAddress: The push-endpoint URL.
492-
- EndpointArgs: The push-endpoint args.
493-
- EndpointTopic: The topic name to be sent to the endpoint (which can be
494-
different than the above topic name).
495-
- HasStoredSecret: This is "true" if the endpoint URL contains user/password
491+
- ``User``: the name of the user that created the topic
492+
- ``Name``: the name of the topic
493+
- ``EndpointAddress``: the push-endpoint URL
494+
- ``EndpointArgs``: the push-endpoint arguments
495+
- ``EndpointTopic``: the topic name to be sent to the endpoint (which can be
496+
different than the above topic name)
497+
- ``HasStoredSecret``: This is "true" if the endpoint URL contains user/password
496498
information. In this case, the request must be made over HTTPS. The "topic
497499
get" request will otherwise be rejected.
498-
- Persistent: "true" if topic is persistent.
499-
- TopicArn: topic `ARN
500-
<https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_.
501-
- OpaqueData: the opaque data set on the topic.
502-
- Policy: Any access permission set on the topic.
500+
- ``Persistent``: "true" if topic is persistent
501+
- ``TopicArn``: topic `ARN
502+
<https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`_
503+
- ``OpaqueData``: the opaque data set on the topic
504+
- ``Policy``: any access permission set on the topic
503505

504506
Delete Topic
505507
````````````
@@ -515,10 +517,10 @@ This deletes the specified topic.
515517

516518
.. note::
517519

518-
- Deleting an unknown notification (for example, double delete) is not
519-
considered an error.
520-
- Deleting a topic does not automatically delete all notifications associated
521-
with it.
520+
- Deleting an unknown notification (for example, double delete) is not
521+
considered an error.
522+
- Deleting a topic does not automatically delete all notifications associated
523+
with it.
522524

523525
The response has the following format:
524526

@@ -584,8 +586,9 @@ This allows to set/modify existing attributes on the specified topic.
584586

585587
.. note::
586588

587-
- The AttributeName passed will either be updated or created (if not exist) with AttributeValue passed.
588-
- Any unsupported AttributeName passed will result in error 400.
589+
- The ``AttributeName`` passed will either be updated or created (if not
590+
exist) with ``AttributeValue`` passed.
591+
- Any unsupported ``AttributeName`` passed will result in error 400.
589592

590593
The response has the following format:
591594

@@ -597,34 +600,35 @@ The response has the following format:
597600
</ResponseMetadata>
598601
</SetTopicAttributesResponse>
599602

600-
Valid AttributeName that can be passed:
601-
602-
- push-endpoint: This is the URI of an endpoint to send push notifications to.
603-
- OpaqueData: Opaque data is set in the topic configuration and added to all
604-
notifications that are triggered by the topic.
605-
- persistent: This indicates whether notifications to this endpoint are
606-
persistent (=asynchronous) or not persistent. (This is "false" by default.)
607-
- time_to_live: This will limit the time (in seconds) to retain the notifications.
608-
- max_retries: This will limit the max retries before expiring notifications.
609-
- retry_sleep_duration: This will control the frequency of retrying the notifications.
610-
- Policy: This will control who can access the topic other than owner of the topic.
611-
- verify-ssl: This indicates whether the server certificates must be validated by
612-
the client. This is "true" by default.
613-
- ``use-ssl``: If this is set to "true", a secure connection is used to
614-
connect to the broker. This is "false" by default.
615-
- cloudevents: This indicates whether the HTTP header should contain
616-
attributes according to the `S3 CloudEvents Spec`_.
617-
- amqp-exchange: The exchanges must exist and must be able to route messages
618-
based on topics.
619-
- amqp-ack-level: No end2end acknowledgement is required. Messages may persist in the
620-
broker before being delivered to their final destinations.
621-
- ``ca-location``: If this is provided and a secure connection is used, the
622-
specified CA will be used instead of the default CA to authenticate the
623-
broker.
624-
- mechanism: may be provided together with user/password (default: ``PLAIN``).
625-
- kafka-ack-level: No end2end acknowledgement is required. Messages may persist in the
626-
broker before being delivered to their final destinations.
627-
- kafka-brokers: Set endpoint with broker(s) as a comma-separated list of host or host:port (default port 9092).
603+
Valid ``AttributeName`` that can be passed:
604+
605+
- ``push-endpoint``: This is the URI of an endpoint to send push notifications to.
606+
- ``OpaqueData``: Opaque data is set in the topic configuration and added to all
607+
notifications that are triggered by the topic.
608+
- ``persistent``: This indicates whether notifications to this endpoint are
609+
persistent (=asynchronous) or not persistent. (This is "false" by default.)
610+
- ``time_to_live``: This will limit the time (in seconds) to retain the notifications.
611+
- ``max_retries``: This will limit the max retries before expiring notifications.
612+
- ``retry_sleep_duration``: This will control the frequency of retrying the notifications.
613+
- ``Policy``: This will control who can access the topic other than owner of the topic.
614+
- ``verify-ssl``: This indicates whether the server certificates must be validated by
615+
the client. This is "true" by default.
616+
- ``use-ssl``: If this is set to "true", a secure connection is used to
617+
connect to the broker. This is "false" by default.
618+
- ``cloudevents``: This indicates whether the HTTP header should contain
619+
attributes according to the `S3 CloudEvents Spec`_.
620+
- ``amqp-exchange``: The exchanges must exist and must be able to route messages
621+
based on topics.
622+
- ``amqp-ack-level``: No end2end acknowledgement is required. Messages may persist in the
623+
broker before being delivered to their final destinations.
624+
- ``ca-location``: If this is provided and a secure connection is used, the
625+
specified CA will be used instead of the default CA to authenticate the
626+
broker.
627+
- ``mechanism``: may be provided together with ``user``/``password`` (default: ``PLAIN``)
628+
- ``kafka-ack-level``: No end2end acknowledgement is required. Messages may persist in the
629+
broker before being delivered to their final destinations.
630+
- ``kafka-brokers``: Set endpoint with broker(s) as a comma-separated list of
631+
``host`` or ``host:port`` (default port 9092).
628632

629633
Notifications
630634
~~~~~~~~~~~~~
@@ -633,8 +637,9 @@ Detailed under: :ref:`radosgw-bucketops`.
633637

634638
.. note::
635639

636-
- "Abort Multipart Upload" request does not emit a notification
637-
- Both "Initiate Multipart Upload" and "POST Object" requests will emit an ``s3:ObjectCreated:Post`` notification
640+
- "Abort Multipart Upload" request does not emit a notification.
641+
- Both "Initiate Multipart Upload" and "POST Object" requests will emit
642+
an ``s3:ObjectCreated:Post`` notification.
638643

639644
Events
640645
~~~~~~
@@ -687,36 +692,36 @@ For example:
687692
}
688693
]}
689694

690-
- awsRegion: The zonegroup.
691-
- eventTime: The timestamp, indicating when the event was triggered.
692-
- eventName: For the list of supported events see: :ref:`radosgw-s3-notification-compatibility`.
693-
Note that eventName values do not start with the `s3:` prefix.
694-
- userIdentity.principalId: The user that triggered the change.
695-
- requestParameters.sourceIPAddress: not supported
696-
- responseElements.x-amz-request-id: The request ID of the original change.
697-
- responseElements.x_amz_id_2: The RGW on which the change was made.
698-
- s3.configurationId: The notification ID that created the event.
699-
- s3.bucket.name: The name of the bucket.
700-
- s3.bucket.ownerIdentity.principalId: The owner of the bucket.
701-
- s3.bucket.arn: The ARN of the bucket.
702-
- s3.bucket.id: The ID of the bucket. (This is an extension to the S3
695+
- ``awsRegion``: the zonegroup
696+
- ``eventTime``: the timestamp, indicating when the event was triggered
697+
- ``eventName``: For a list of supported events, see: :ref:`radosgw-s3-notification-compatibility`.
698+
Note that ``eventName`` values do not start with the ``s3:`` prefix.
699+
- ``userIdentity.principalId``: the user that triggered the change
700+
- ``requestParameters.sourceIPAddress``: not supported
701+
- ``responseElements.x-amz-request-id``: the request ID of the original change
702+
- ``responseElements.x_amz_id_2``: the RGW on which the change was made
703+
- ``s3.configurationId``: the notification ID that created the event
704+
- ``s3.bucket.name``: the name of the bucket
705+
- ``s3.bucket.ownerIdentity.principalId``: the owner of the bucket
706+
- ``s3.bucket.arn``: the ARN of the bucket
707+
- ``s3.bucket.id``: the ID of the bucket (This is an extension to the S3
703708
notification API.)
704-
- s3.object.key: The object key.
705-
- s3.object.size: The object size.
706-
- s3.object.eTag: The object etag.
707-
- s3.object.versionId: The object version, if the bucket is versioned. When a
708-
copy is made, it includes the version of the target object. When a delete
709-
marker is created, it includes the version of the delete marker.
710-
- s3.object.sequencer: The monotonically-increasing identifier of the "change
711-
per object" (hexadecimal format).
712-
- s3.object.metadata: Any metadata set on the object that is sent as
709+
- ``s3.object.key``: the object key
710+
- ``s3.object.size``: the object size
711+
- ``s3.object.eTag``: the object etag
712+
- ``s3.object.versionId``: This contains the object version, if the bucket is
713+
versioned. When a copy is made, it includes the version of the target object.
714+
When a delete marker is created, it includes the version of the delete marker.
715+
- ``s3.object.sequencer``: the monotonically-increasing identifier of the "change
716+
per object" (hexadecimal format)
717+
- ``s3.object.metadata``: Any metadata set on the object that is sent as
713718
``x-amz-meta-`` (that is, any metadata set on the object that is sent as an
714719
extension to the S3 notification API).
715-
- s3.object.tags: Any tags set on the object. (This is an extension to the S3
720+
- ``s3.object.tags``: any tags set on the object (This is an extension to the S3
716721
notification API.)
717-
- s3.eventId: The unique ID of the event, which could be used for acking. (This
722+
- ``s3.eventId``: the unique ID of the event, which could be used for acking (This
718723
is an extension to the S3 notification API.)
719-
- s3.opaqueData: This means that "opaque data" is set in the topic configuration
724+
- ``s3.opaqueData``: This means that "opaque data" is set in the topic configuration
720725
and is added to all notifications triggered by the topic. (This is an
721726
extension to the S3 notification API.)
722727

0 commit comments

Comments
 (0)