Torch Object Storage
Name | Location | Parameter type | Required | Sample value | Note |
Name | Location | Parameter type | Required | Sample value | Note |
notification_v2 | Query | String | Yes | - | Special identifier representing the GetBucketNotificationV2 request. |
Name | Type | Sample value | Note |
Name | Type | Sample value | Note |
Rules | Array | - | Event notification rule information. |
Events | Array | ["tos:ObjectCreated:", "tos:ObjectRemoved:"] | Parent node: Rules |
Filter | Container | - | Filter rules. Parent node: Rules |
TOSKey | Container | - | Filter information for the object. Parent node: Filter |
FilterRules | Array | [ {"Name": "prefix", "Value": "test_" }, { "Name": "suffix", "Value": ".jpg" } ] | Filter rules that objects must match. Supports setting prefix and suffix, which filter event objects based on prefix and suffix rules respectively.
Parent node: TOSKey |
Name | String | prefix | Matching condition. The fields are described as follows:
Parent node: FilterRules |
Value | String | test_ | Matching prefix and suffix information. Parent node: FilterRules |
RuleId | String | TestNotification | Event notification rule name must follow this convention:
If not set, TOS will automatically generate a rule name. Parent node: Rules |
Destination | Container | - | Event notification push targets must include at least one target and support up to five different targets. Parent node: Rules |
ServiceManaged | Boolean | true | The default value is true, indicating that the rule is a managed rule. Parent node: Rules |
ServiceManagedBy | String | ServiceCode | The hosting provider's Service Code identifies the management service to which this rule belongs. Parent node: Rules |
VeFaaS | Array | [ {"FunctionId": "l2u0****"} ] | The event delivery target is the function service. Parent node: Destination |
FunctionId | String | l2u0**** | The function ID for event delivery. You can log in to the Function Service Console and check the Function ID on the Configuration page of the function. Parent node: VeFaaS |
Kafka | Array | "Kafka":[ { "Role":"trn:iam::214748****:role/aaa", "InstanceId":"kafka-cnoeb1pq83rs****", "Topic":"test-aaa", "User":"bbbbb" } ] | The event delivery target is the Kafka version of the message queue. Parent node: Destination |
Role | String | trn:iam::214748****:role/aaa | Role TRN for authorizing TOS to access Kafka services. Parent node: Kafka |
InstanceId | String | kafka-cnoeb1pq83rs**** | Kafka instance ID. Parent node: Kafka |
Topic | String | test-aaa | Name of the Kafka topic. Parent node: Kafka |
User | String | bbb | Kafka user name. Parent node: Kafka |
Version | String | 1698031811529301000 | Version number of the event notification rule. Same level as Rules. |