github.com/qiniu/go-sdk/v7@v7.27.0/storagev2/internal/api-specs/get_bucket_event_rules.yml (about) 1 method: get 2 service_names: 3 - uc 4 base_path: /events/get 5 documentation: 获取存储空间事件通知规则 6 request: 7 authorization: qiniu 8 query_names: 9 - field_name: bucket 10 query_name: bucket 11 query_type: string 12 documentation: 存储空间名称 13 service_bucket: plain_text 14 response: 15 body: 16 json: 17 array: 18 name: BucketEventRules 19 documentation: 所有存储空间事件通知规则 20 type: 21 struct: 22 name: BucketEventRule 23 documentation: 存储空间事件通知规则 24 fields: 25 - field_name: name 26 key: name 27 type: string 28 documentation: 规则名称,bucket 内唯一,长度小于 50,不能为空,只能为字母、数字、下划线 29 - field_name: prefix 30 key: prefix 31 type: string 32 documentation: 匹配文件前缀 33 optional: omitempty 34 - field_name: suffix 35 key: suffix 36 type: string 37 documentation: 匹配文件后缀 38 optional: omitempty 39 - field_name: event_types 40 key: event 41 documentation: 事件类型,可以指定多个,包括 put,mkfile,delete,copy,move,append,disable,enable,deleteMarkerCreate,predelete(删除之前触发),restore:completed 42 type: 43 array: 44 name: EventTypes 45 type: string 46 documentation: 事件类型 47 - field_name: callback_urls 48 key: callbackURL 49 documentation: 回调地址,可以指定多个 50 type: 51 array: 52 name: CallbackURLs 53 type: string 54 documentation: 回调地址 55 - field_name: access_key 56 key: accessKey 57 type: string 58 documentation: 设置的话会对通知请求用对应的 accessKey,secretKey 进行签名 59 optional: omitempty 60 - field_name: host 61 key: host 62 type: string 63 documentation: 通知请求的 Host 64 optional: omitempty