Torch Object Storage
Name | Location | Parameter Type | Required | Sample value | Note |
Name | Location | Parameter Type | Required | Sample value | Note |
notification_v2 | Query | String | Yes | - | Represents a special identifier for the PutBucketNotificationV2 request. |
Name | Type | Required | Sample value | Note |
Name | Type | Required | Sample value | Note |
Rules | Array | No | - | Event notification rule information. |
Events | Array | Yes | ["tos:ObjectCreated:", "tos:ObjectRemoved:"] | Parent node: Rules |
Filter | Container | No | - | Set filter rules. Parent node: Rules |
TOSKey | Container | No | - | Currently supports setting FilterRule, which is the object's filter information. Parent node: Filter |
FilterRules | Array | No | [ {"Name": "prefix", "Value": "test_" }, { "Name": "suffix", "Value": ".jpg" } ] | Set the filtering rules that the target object must match. Supports setting prefix and suffix for filtering event objects by prefix and suffix rules respectively.
Parent node: TOSKey |
Name | String | No | prefix | Set the conditions to match. The options are as follows:
Parent node: FilterRules |
Value | String | Not supported | test_ | Set the prefix and suffix information to match. Parent node: FilterRules |
RuleId | String | No | TestNotification | Specify the event notification rule name, naming rules are as follows:
If not set, TOS will automatically generate the rule name. Parent node: Rules |
Destination | Container | Yes | - | Set event notification push targets, including at least one target and support up to 5 different targets. Parent node: Rules |
VeFaaS | Array | No | [ {"FunctionId": "l2u0****"} ] | Set the event delivery target to a function service, allowing multiple different function services to be set. Parent node: Destination |
FunctionId | String | Yes tip When the event delivery target is a function service, FunctionId is a required parameter. | l2u0**** | Function ID for event delivery. You can log in to the Function Service Console and view the Function ID on the function Configuration page. Parent node: VeFaaS |
Kafka | Array | Yes tip The parameter Kafka is required only when the event delivery target is a Kafka message queue. | "Kafka":[ { "Role":"trn:iam::214748****:role/aaa", "InstanceId":"kafka-cnoeb1pq83rs****", "Topic":"test-aaa", "User":"bbbbb" } ] | Set the event delivery target to Kafka message queue. Multiple different Kafka instances can be configured. Parent node: Destination |
Role | String | Yes | trn:iam::214748****:role/aaa | Role TRN. This role must be bound to the system preset policy KafkaAccessForTOS to authorize TOS to access the Kafka service. Parent node: Kafka tip You need to create a role first, bind the system preset policy KafkaAccessForTOS to the role, and then obtain the role TRN. For detailed operations, see CreateRole and AttachRolePolicy. |
InstanceId | String | Yes | kafka-cnoeb1pq83rs**** | Kafka instance ID. Parent node: Kafka |
Topic | String | Yes | test-aaa | Name of the Kafka topic. Parent node: Kafka |
User | String | Yes | bbb | Kafka user name. Parent node: Kafka |
Version | String | No | 1698031811529301000 | The version number of the event notification rule. Use the GetBucketNotificationV2 API to obtain this value. Configuring the Version parameter ensures the atomicity of event notification rule settings. It is recommended to configure the Version parameter when modifying event notification rules through the PutBucketNotificationV2 API. At the same level as Rules |