本文介紹Object Storage Service作為事件來源發布到事件匯流排EventBridge的事件類型。
支援的地區
支援Object Storage Service發布到事件匯流排EventBridge的地區有華東1(杭州)、華東2(上海)、華北2(北京)、華北3(張家口)、華南1(深圳)、西南1(成都)、美國(矽谷)、新加坡和日本(東京)。
事件類型
Object Storage Service支援發布到事件匯流排EventBridge的事件類型如下所示。
事件類型 | type參數值 |
oss:BucketCreated:PutBucket | |
oss:BucketRemoved:DeleteBucket | |
oss:ObjectCreated:AppendObject | |
oss:ObjectCreated:CopyObject | |
oss:ObjectCreated:PostObject | |
oss:ObjectCreated:PutObject | |
oss:ObjectCreated:PutSymlink | |
oss:ObjectRemoved:DeleteObject | |
oss:ObjectCreated:InitiateMultipartUpload | |
oss:ObjectCreated:UploadPart | |
oss:ObjectCreated:UploadPartCopy | |
oss:ObjectCreated:CompleteMultipartUpload | |
oss:ObjectRemoved:AbortMultipartUpload | |
oss:ObjectRestore:FinishRestore | |
oss:ObjectReplication:ObjectCreated | |
oss:ObjectReplication:ObjectModified | |
oss:ObjectReplication:ObjectRemoved | |
阿里雲平台對資源執行的操作事件 | oss:ActionTrail:AliyunServiceEvent |
API調用 | oss:ActionTrail:ApiCall |
控制台的操作事件 | oss:ActionTrail:ConsoleOperation |
Bucket下行頻寬超過彙報閾值 | oss:CloudMonitor:BucketEgressBandwidth |
Bucket下行頻寬超過流控閾值 | oss:CloudMonitor:BucketEgressBandwidthThresholdExceeded |
Bucket圖片處理佔用CPU核心數超過流控閾值 | oss:CloudMonitor:BucketImageCpuThresholdExceeded |
Bucket上行頻寬超過彙報閾值 | oss:CloudMonitor:BucketIngressBandwidth |
Bucket上行頻寬超過流控閾值 | oss:CloudMonitor:BucketIngressBandwidthThresholdExceeded |
Bucket鏡像回源頻寬超過流控閾值 | oss:CloudMonitor:BucketMirrorIngressBandwidthThresholdExceeded |
Bucket鏡像回源QPS超過流控閾值 | oss:CloudMonitor:BucketMirrorQpsThresholdExceeded |
Bucket每秒請求數超過QPS流控閾值 | oss:CloudMonitor:BucketQpsThresholdExceeded |
User下行頻寬超過彙報閾值 | oss:CloudMonitor:UserEgressBandwidth |
User下行頻寬超過流控閾值 | oss:CloudMonitor:UserEgressBandwidthThresholdExceeded |
User圖片處理佔用CPU核心數超過流控閾值 | oss:CloudMonitor:UserImageCpuThresholdExceeded |
User上行頻寬超過彙報閾值 | oss:CloudMonitor:UserIngressBandwidth |
User上行頻寬超過流控閾值 | oss:CloudMonitor:UserIngressBandwidthThresholdExceeded |
User鏡像回源頻寬超過流控閾值 | oss:CloudMonitor:UserMirrorIngressBandwidthThresholdExceeded |
User鏡像回源QPS超過流控閾值 | oss:CloudMonitor:UserMirrorQpsThresholdExceeded |
User QPS超過流控閾值 | oss:CloudMonitor:UserQpsThresholdExceeded |
資源變更投遞 | oss:Config:ConfigurationItemChangeNotification |
資源評估不合規通知 | oss:Config:NonCompliantNotification |
CloudEvents規範中定義的參數解釋,請參見事件概述。
建立儲存空間
儲存空間(Bucket)是用於儲存物件(Object)的容器。在上傳任意類型的Object前,您需要先建立Bucket。建立儲存空間時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"BucketCreated:PutBucket",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0"
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:BucketCreated:PutBucket",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
region | String | cn-beijing | bucket所在的地區。 |
eventVersion | String | 1.0 | 事件協議的版本。 |
eventSource | String | acs:oss | 事件來源,固定為acs.oss。 |
eventName | String | BucketCreated:PutBucket | 事件類型。 |
eventTime | String | 2021-08-13T06:45:43.000Z | 事件產生的時間。使用ISO-8601標準時間格式。 |
requestParameters | String | 請求參數。 | |
sourceIPAddress | String | 118.31.XX.XX | 請求訊息的源IP地址。 |
userIdentity | Map | 使用者資訊。 | |
principalId | String | 28815334868278**** | 請求發起者的使用者ID。 |
responseElements | Map | 返回參數。 | |
requestId | String | 61161517B258223732BC**** | 請求對應的Request ID。 |
oss | Map | OSS事件內容。 | |
bucket | Map | bucket參數內容。 | |
name | String | oss-source-bucket1-cn-beijing | Bucket的名稱。 |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | Bucket的唯一識別碼。 |
ownerIdentity | String | 164901546557**** | 建立Bucket的使用者ID。 |
ossSchemaVersion | String | 1.0 | OSS模式的版本號碼。 |
刪除儲存空間
刪除儲存空間時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"BucketCreated:DeleteBucket",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0"
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:BucketCreated:DeleteBucket",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
以追加寫的方式上傳檔案
以追加寫的方式上傳檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:AppendObject",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname",
"position":0
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:AppendObject",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
region | String | cn-beijing | bucket所在的地區。 |
eventVersion | String | 1.0 | 事件協議的版本。 |
eventSource | String | acs:oss | 事件來源,固定為“acs:oss”。 |
eventName | String | ObjectCreated:AppendObject | 事件類型。 |
eventTime | String | 2021-08-13T06:45:43.000Z | 事件產生的時間。使用ISO-8601標準時間格式。 |
requestParameters | String | 請求參數。 | |
sourceIPAddress | String | 118.31.XX.XX | 請求訊息的源IP地址。 |
userIdentity | Map | 使用者資訊。 | |
principalId | String | 28815334868278**** | 請求發起者的使用者ID。 |
responseElements | Map | 返回參數。 | |
requestId | String | 61161517B258223732BC**** | 請求對應的Request ID。 |
oss | Map | OSS事件內容。 | |
bucket | Map | bucket參數內容。 | |
name | String | oss-source-bucket1-cn-beijing | Bucket的名稱。 |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | Bucket的唯一識別碼。 |
ownerIdentity | String | 164901546557**** | 建立Bucket的使用者ID。 |
ossSchemaVersion | String | 1.0 | OSS模式的版本號碼。 |
object | Map | object參數內容。 | |
size | Int | 9 | object的大小。單位:Byte。 |
deltaSize | Int | 9 | object的大小變化量。單位:Byte。
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | Object的標籤。 |
key | String | objectname | Object的名稱。 |
position | Int | 0 | 以追加寫的方式上傳檔案時,開始追加的位置。首次追加從0位元組開始。 |
拷貝檔案
拷貝檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:CopyObject",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:CopyObject",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
region | String | cn-beijing | bucket所在的地區。 |
eventVersion | String | 1.0 | 事件協議的版本。 |
eventSource | String | acs:oss | 事件來源,固定為“acs:oss”。 |
eventName | String | ObjectCreated:AppendObject | 事件類型。 |
eventTime | String | 2021-08-13T06:45:43.000Z | 事件產生的時間。使用ISO-8601標準時間格式。 |
requestParameters | String | 請求參數。 | |
sourceIPAddress | String | 118.31.XX.XX | 請求訊息的源IP地址。 |
userIdentity | Map | 使用者資訊。 | |
principalId | String | 28815334868278**** | 請求發起者的使用者ID。 |
responseElements | Map | 返回參數。 | |
requestId | String | 61161517B258223732BC**** | 請求對應的Request ID。 |
oss | Map | OSS事件內容。 | |
bucket | Map | bucket參數內容。 | |
name | String | oss-source-bucket1-cn-beijing | Bucket的名稱。 |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | Bucket的唯一識別碼。 |
ownerIdentity | String | 164901546557**** | 建立Bucket的使用者ID。 |
ossSchemaVersion | String | 1.0 | OSS模式的版本號碼。 |
object | Map | object參數內容。 | |
size | Int | 9 | object的大小。單位:Byte。 |
deltaSize | Int | 9 | object的大小變化量。單位:Byte。
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | Object的標籤。 |
key | String | objectname | Object的名稱。 |
通過HTML表單上傳檔案
通過HTML表單上傳檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:PostObject",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:PostObject",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
上傳檔案
上傳檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:PutObject",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:PutObject",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
建立軟連結
建立軟連結時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:PutSymlink",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:PutSymlink",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
刪除檔案
刪除檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectRemoved:DeleteObject",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectRemoved:DeleteObject",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
初始化分區上傳
初始化分區上傳時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:InitiateMultipartUpload",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:InitiateMultipartUpload",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
上傳檔案分區
上傳檔案分區時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:UploadPart",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:UploadPart",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
以拷貝方式上傳檔案分區
以拷貝方式上傳檔案分區時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:UploadPartCopy",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:UploadPartCopy",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
檔案分區上傳已完成
檔案分區上傳已完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectCreated:CompleteMultipartUpload",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectCreated:CompleteMultipartUpload",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
檔案分區上傳已取消
檔案分區上傳已取消時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectRemoved:AbortMultipartUpload",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectRemoved:AbortMultipartUpload",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋,請參見參數解釋。
解凍資料檔案已完成
解凍資料檔案完成時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"datacontenttype":"application/json;charset=utf-8",
"aliyunaccountid":"164901546557****",
"data":{
"region":"cn-beijing",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectRestore:FinishRestore",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-beijing",
"arn":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname"
}
}
},
"subject":"acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing/1628837143916",
"aliyunoriginalaccountid":"164901546557****",
"source":"acs.oss",
"type":"oss:ObjectRestore:FinishRestore",
"aliyunpublishtime":"2021-08-13T06:45:43.986Z",
"specversion":"1.0",
"aliyuneventbusname":"default",
"id":"61161517B258223732BC****",
"time":"2021-08-13T06:45:43Z",
"aliyunregionid":"cn-beijing"
}
關於data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
region | String | cn-beijing | bucket所在的地區。 |
eventVersion | String | 1.0 | 事件協議的版本。 |
eventSource | String | acs:oss | 事件來源,固定為“acs:oss”。 |
eventName | String | ObjectRestore:FinishRestore | 事件類型。 |
eventTime | String | 2021-08-13T06:45:43.000Z | 事件產生的時間。使用ISO-8601標準時間格式。 |
sourceIPAddress | String | 118.31.XX.XX | 請求訊息的源IP地址。 |
principalId | String | 28815334868278**** | 請求發起者的使用者ID。 |
requestId | String | 61161517B258223732BC**** | 請求對應的Request ID。 |
name | String | oss-source-bucket1-cn-beijing | Bucket的名稱。 |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | Bucket的唯一識別碼。 |
ownerIdentity | String | 164901546557**** | 建立Bucket的使用者ID。 |
ossSchemaVersion | String | 1.0 | OSS模式的版本號碼。 |
size | Int | 9 | object的大小。單位:Byte。 |
deltaSize | Int | 9 | object的大小變化量。單位:Byte。
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | Object的標籤。 |
key | String | objectname | Object的名稱。 |
通過跨地區複製組建檔案
通過跨地區複製組建檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.oss",
"specversion": "1.0",
"subject": "acs.oss:cn-hangzhou:161234567890984901546557****:oss-source-bucket1-cn-hangzhou/1628837143916",
"time": "2020-11-19T21:04:41+08:00",
"type": "oss:ObjectReplication:ObjectCreated",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"datacontenttype":"application/json;charset=utf-8",
"data": {
"region":"cn-hangzhou",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectReplication:ObjectCreated",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-hangzhou",
"arn":"acs:oss:cn-hangzhou:123456789098****:oss-source-bucket1-cn-hangzhou",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname",
"objectMeta": {
"mimeType": "application/octet-stream"
}
}
}
}
}
關於data欄位包含的參數解釋如下表所示。
參數 | 類型 | 樣本值 | 描述 |
region | String | cn-hangzhou | bucket所在的地區。 |
eventVersion | String | 1.0 | 事件協議的版本。 |
eventSource | String | acs:oss | 事件來源,固定為“acs:oss”。 |
eventName | String | ObjectReplication:ObjectCreated | 事件類型。 |
eventTime | String | 2021-08-13T06:45:43.000Z | 事件產生的時間。使用ISO-8601標準時間格式。 |
sourceIPAddress | String | 118.31.XX.XX | 請求訊息的源IP地址。 |
principalId | String | 28815334868278**** | 請求發起者的使用者ID。 |
requestId | String | 61161517B258223732BC**** | 請求對應的Request ID。 |
name | String | oss-source-bucket1-cn-beijing | Bucket的名稱。 |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-hangzhou | Bucket的唯一識別碼。 |
ownerIdentity | String | 164901546557**** | 建立Bucket的使用者ID。 |
ossSchemaVersion | String | 1.0 | OSS模式的版本號碼。 |
size | Int | 9 | object的大小。單位:Byte。 |
deltaSize | Int | 9 | object的大小變化量。單位:Byte。
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | Object的標籤。 |
key | String | objectname | Object的名稱。 |
objectMeta | Object | Object的屬性。 | |
mimeType | String | application/octet-stream | 媒體類型。 |
通過跨地區複製覆蓋檔案
通過跨地區複製覆蓋檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.oss",
"specversion": "1.0",
"subject": "acs.oss:cn-hangzhou:161234567890984901546557****:oss-source-bucket1-cn-hangzhou/1628837143916",
"time": "2020-11-19T21:04:41+08:00",
"type": "oss:ObjectReplication:ObjectModified",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"datacontenttype":"application/json;charset=utf-8",
"data": {
"region":"cn-hangzhou",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectReplication:ObjectModified",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-hangzhou",
"arn":"acs:oss:cn-hangzhou:123456789098****:oss-source-bucket1-cn-hangzhou",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname",
"objectMeta": {
"mimeType": "application/octet-stream"
}
}
}
}
}
關於data欄位包含的參數解釋,請參見參數解釋。
通過跨地區複製刪除檔案
通過跨地區複製刪除檔案時,事件匯流排EventBridge接收到的樣本事件如下所示。
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.oss",
"specversion": "1.0",
"subject": "acs.oss:cn-hangzhou:161234567890984901546557****:oss-source-bucket1-cn-hangzhou/1628837143916",
"time": "2020-11-19T21:04:41+08:00",
"type": "oss:ObjectReplication:ObjectRemoved",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"datacontenttype":"application/json;charset=utf-8",
"data": {
"region":"cn-hangzhou",
"eventVersion":"1.0",
"eventSource":"acs:oss",
"eventName":"ObjectReplication:ObjectRemoved",
"eventTime":"2021-08-13T06:45:43.000Z",
"requestParameters":{
"sourceIPAddress":"118.31.XX.XX"
},
"userIdentity":{
"principalId":"28815334868278****"
},
"responseElements":{
"requestId":"61161517B258223732BC****"
},
"oss":{
"bucket":{
"name":"oss-source-bucket1-cn-hangzhou",
"arn":"acs:oss:cn-hangzhou:123456789098****:oss-source-bucket1-cn-hangzhou",
"ownerIdentity":"164901546557****"
},
"ossSchemaVersion":"1.0",
"object":{
"size":9,
"deltaSize":9,
"eTag":"F0F18C2C66AE1DD512BDCD4366F7****",
"key":"objectname",
"objectMeta": {
"mimeType": "application/octet-stream"
}
}
}
}
}
關於data欄位包含的參數解釋,請參見參數解釋。