This topic describes the types of Object Storage Service (OSS) events that can be published to EventBridge.
Supported regions
OSS events can be published to EventBridge in the following regions: China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Shenzhen), China (Chengdu), US (Silicon Valley), Singapore, and Japan (Tokyo).
Event types
The following table describes the types of OSS events that can be published to EventBridge.
Event type | Value of the type parameter |
oss:BucketCreated:PutBucket | |
oss:BucketRemoved:DeleteBucket | |
An object is uploaded by appending the object to an existing object | oss:ObjectCreated:AppendObject |
oss:ObjectCreated:CopyObject | |
oss:ObjectCreated:PostObject | |
oss:ObjectCreated:PutObject | |
oss:ObjectCreated:PutSymlink | |
oss:ObjectRemoved:DeleteObject | |
oss:ObjectCreated:InitiateMultipartUpload | |
oss:ObjectCreated:UploadPart | |
One or more object parts are uploaded by copying data from an existing object | oss:ObjectCreated:UploadPartCopy |
oss:ObjectCreated:CompleteMultipartUpload | |
oss:ObjectRemoved:AbortMultipartUpload | |
oss:ObjectRestore:FinishRestore | |
An object is created by using cross-region replication (CRR) | oss:ObjectReplication:ObjectCreated |
oss:ObjectReplication:ObjectModified | |
oss:ObjectReplication:ObjectRemoved | |
An operation is performed on a resource | oss:ActionTrail:AliyunServiceEvent |
An API operation is called | oss:ActionTrail:ApiCall |
An operation is performed in the console | oss:ActionTrail:ConsoleOperation |
The downstream bandwidth that is used by a bucket exceeds the reporting threshold | oss:CloudMonitor:BucketEgressBandwidth |
The downstream bandwidth that is used by a bucket exceeds the throttling threshold | oss:CloudMonitor:BucketEgressBandwidthThresholdExceeded |
The number of CPU cores that are occupied by a bucket to process Image Service (IMG) requests exceeds the throttling threshold | oss:CloudMonitor:BucketImageCpuThresholdExceeded |
The upstream bandwidth that is used by a bucket exceeds the reporting threshold | oss:CloudMonitor:BucketIngressBandwidth |
The upstream bandwidth that is used by a bucket exceeds the throttling threshold | oss:CloudMonitor:BucketIngressBandwidthThresholdExceeded |
The bandwidth that is used by a bucket to send mirroring-based back-to-origin requests exceeds the throttling threshold | oss:CloudMonitor:BucketMirrorIngressBandwidthThresholdExceeded |
The number of requests that are sent by a bucket per second to implement mirroring-based back-to-origin exceeds the throttling threshold | oss:CloudMonitor:BucketMirrorQpsThresholdExceeded |
The number of requests per second for a bucket exceeds the throttling threshold | oss:CloudMonitor:BucketQpsThresholdExceeded |
The downstream bandwidth of a user exceeds the reporting threshold | oss:CloudMonitor:UserEgressBandwidth |
The downstream bandwidth of a user exceeds the throttling threshold | oss:CloudMonitor:UserEgressBandwidthThresholdExceeded |
The number of CPU cores that are occupied to process IMG requests for a user exceeds the throttling threshold | oss:CloudMonitor:UserImageCpuThresholdExceeded |
The upstream bandwidth of a user exceeds the reporting threshold | oss:CloudMonitor:UserIngressBandwidth |
The upstream bandwidth of a user exceeds the throttling threshold | oss:CloudMonitor:UserIngressBandwidthThresholdExceeded |
The traffic that is consumed to send mirroring-based back-to-origin requests for a user exceeds the throttling threshold | oss:CloudMonitor:UserMirrorIngressBandwidthThresholdExceeded |
The number of requests that are sent per second to implement mirroring-based back-to-origin for a user exceeds the throttling threshold | oss:CloudMonitor:UserMirrorQpsThresholdExceeded |
The number of requests per second for a user exceeds the throttling threshold | oss:CloudMonitor:UserQpsThresholdExceeded |
A resource change notification is delivered | oss:Config:ConfigurationItemChangeNotification |
A notification that indicates a resource is evaluated as non-compliant is delivered | oss:Config:NonCompliantNotification |
For more information about the parameters defined in the CloudEvents specification, see Overview.
A bucket is created
A bucket is a container for objects stored in OSS. You must create a bucket before you upload an object to OSS. The following example shows the event that EventBridge receives when a bucket is created:
{
"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"
}
The following table describes parameters in the data field.
Parameter | Type | Example | Description |
region | String | cn-beijing | The ID of the region in which the bucket resides. |
eventVersion | String | 1.0 | The version number of the event protocol. |
eventSource | String | acs:oss | The event source. The value is fixed to acs:oss. |
eventName | String | BucketCreated:PutBucket | The event type. |
eventTime | String | 2021-08-13T06:45:43.000Z | The time when the event occurred. The time follows the ISO 8601 standard format. |
requestParameters | String | The request parameters. | |
sourceIPAddress | String | 118.31.XX.XX | The IP address from which the request is sent. |
userIdentity | Map | The information about the user. | |
principalId | String | 28815334868278**** | The user ID of the requester. |
responseElements | Map | The response parameters. | |
requestId | String | 61161517B258223732BC**** | The request ID. |
oss | Map | The content of the OSS event. | |
bucket | Map | The details of the bucket. | |
name | String | oss-source-bucket1-cn-beijing | The bucket name. |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | The Alibaba Cloud Resource Name (ARN) of the bucket. |
ownerIdentity | String | 164901546557**** | The ID of the user that created the bucket. |
ossSchemaVersion | String | 1.0 | The version number of the OSS schema. |
A bucket is deleted
The following example shows the event that EventBridge receives when a bucket is deleted:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
An object is uploaded by appending the object to an existing object
The following example shows the event that EventBridge receives when an object is uploaded by appending the object to an existing object:
{
"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"
}
The following table describes parameters in the data field.
Parameter | Type | Example | Description |
region | String | cn-beijing | The ID of the region in which the bucket resides. |
eventVersion | String | 1.0 | The version number of the event protocol. |
eventSource | String | acs:oss | The event source. The value is fixed to acs:oss. |
eventName | String | ObjectCreated:AppendObject | The event type. |
eventTime | String | 2021-08-13T06:45:43.000Z | The time when the event occurred. The time follows the ISO 8601 standard format. |
requestParameters | String | The request parameters. | |
sourceIPAddress | String | 118.31.XX.XX | The IP address from which the request is sent. |
userIdentity | Map | The information about the user. | |
principalId | String | 28815334868278**** | The user ID of the requester. |
responseElements | Map | The response parameters. | |
requestId | String | 61161517B258223732BC**** | The request ID. |
oss | Map | The content of the OSS event. | |
bucket | Map | The details of the bucket. | |
name | String | oss-source-bucket1-cn-beijing | The bucket name. |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | The ARN of the bucket. |
ownerIdentity | String | 164901546557**** | The ID of the user that created the bucket. |
ossSchemaVersion | String | 1.0 | The version number of the OSS schema. |
object | Map | The details of the object. | |
size | Int | 9 | The object size. Unit: bytes. |
deltaSize | Int | 9 | The variation of the object size. Unit: bytes.
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | The object tag. |
key | String | objectname | The object name. |
position | Int | 0 | The start position to which the object is appended. The value of this parameter in the first AppendObject operation is 0. |
An object is copied
The following example shows the event that EventBridge receives when an object is copied:
{
"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"
}
The following table describes parameters in the data field.
Parameter | Type | Example | Description |
region | String | cn-beijing | The ID of the region in which the bucket resides. |
eventVersion | String | 1.0 | The version number of the event protocol. |
eventSource | String | acs:oss | The event source. The value is fixed to acs:oss. |
eventName | String | ObjectCreated:AppendObject | The event type. |
eventTime | String | 2021-08-13T06:45:43.000Z | The time when the event occurred. The time follows the ISO 8601 standard format. |
requestParameters | String | The request parameters. | |
sourceIPAddress | String | 118.31.XX.XX | The IP address from which the request is sent. |
userIdentity | Map | The information about the user. | |
principalId | String | 28815334868278**** | The user ID of the requester. |
responseElements | Map | The response parameters. | |
requestId | String | 61161517B258223732BC**** | The request ID. |
oss | Map | The content of the OSS event. | |
bucket | Map | The details of the bucket. | |
name | String | oss-source-bucket1-cn-beijing | The bucket name. |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | The ARN of the bucket. |
ownerIdentity | String | 164901546557**** | The ID of the user that created the bucket. |
ossSchemaVersion | String | 1.0 | The version number of the OSS schema. |
object | Map | The details of the object. | |
size | Int | 9 | The object size. Unit: bytes. |
deltaSize | Int | 9 | The variation of the object size. Unit: bytes.
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | The object tag. |
key | String | objectname | The object name. |
An object is uploaded by using an HTML form
The following example shows the event that EventBridge receives when an object is uploaded by using an HTML form:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
An object is uploaded
The following example shows the event that EventBridge receives when an object is uploaded:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
A symbolic link is created
The following example shows the event that EventBridge receives when a symbolic link is created:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
An object is deleted
The following example shows the event that EventBridge receives when an object is deleted:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
A multipart upload task is initialized
The following example shows the event that EventBridge receives when a multipart upload task is initialized:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
One or more object parts are uploaded
The following example shows the event that EventBridge receives when one or more object parts are uploaded:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
One or more object parts are uploaded by copying data from an existing object
The following example shows the event that EventBridge receives when one or more object parts are uploaded by copying data from an existing object:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
A multipart upload task is complete
The following example shows the event that EventBridge receives when a multipart upload task is complete:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
A multipart upload task is canceled
The following example shows the event that EventBridge receives when a multipart upload task is canceled:
{
"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"
}
For information about parameters in the data field, see the parameter description table.
A Cold Archive object is restored
The following example shows the event that EventBridge receives when a Cold Archive object is restored:
{
"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"
}
The following table describes parameters in the data field.
Parameter | Type | Example | Description |
region | String | cn-beijing | The ID of the region in which the bucket resides. |
eventVersion | String | 1.0 | The version number of the event protocol. |
eventSource | String | acs:oss | The event source. The value is fixed to acs.oss. |
eventName | String | ObjectRestore:FinishRestore | The event type. |
eventTime | String | 2021-08-13T06:45:43.000Z | The time when the event occurred. The time follows the ISO 8601 standard format. |
sourceIPAddress | String | 118.31.XX.XX | The IP address from which the request is sent. |
principalId | String | 28815334868278**** | The user ID of the requester. |
requestId | String | 61161517B258223732BC**** | The request ID. |
name | String | oss-source-bucket1-cn-beijing | The bucket name. |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing | The ARN of the bucket. |
ownerIdentity | String | 164901546557**** | The ID of the user that created the bucket. |
ossSchemaVersion | String | 1.0 | The version number of the OSS schema. |
size | Int | 9 | The object size. Unit: bytes. |
deltaSize | Int | 9 | The variation of the object size. Unit: bytes.
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | The object tag. |
key | String | objectname | The object name. |
An object is created by using cross-region CRR
The following example shows the event that EventBridge receives when an object is created by using cross-region CRR:
{
"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"
}
}
}
}
}
The following table describes parameters in the data field.
Parameter | Type | Example | Description |
region | String | cn-hangzhou | The ID of the region in which the bucket resides. |
eventVersion | String | 1.0 | The version number of the event protocol. |
eventSource | String | acs:oss | The event source. The value is fixed to acs.oss. |
eventName | String | ObjectReplication:ObjectCreated | The event type. |
eventTime | String | 2021-08-13T06:45:43.000Z | The time when the event occurred. The time follows the ISO 8601 standard format. |
sourceIPAddress | String | 118.31.XX.XX | The IP address from which the request is sent. |
principalId | String | 28815334868278**** | The user ID of the requester. |
requestId | String | 61161517B258223732BC**** | The request ID. |
name | String | oss-source-bucket1-cn-beijing | The bucket name. |
arn | String | acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-hangzhou | The ARN of the bucket. |
ownerIdentity | String | 164901546557**** | The ID of the user that created the bucket. |
ossSchemaVersion | String | 1.0 | The version number of the OSS schema. |
size | Int | 9 | The object size. Unit: bytes. |
deltaSize | Int | 9 | The variation of the object size. Unit: bytes.
|
eTag | String | F0F18C2C66AE1DD512BDCD4366F7**** | The object tag. |
key | String | objectname | The object name. |
objectMeta | Object | The object attribute. | |
mimeType | String | application/octet-stream | The media type. |
An object is overwritten by using CRR
The following example shows the event that EventBridge receives when an object is overwritten by using CRR:
{
"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"
}
}
}
}
}
For information about parameters in the data field, see the parameter description table.
An object is deleted by using CRR
The following example shows the event that EventBridge receives when an object is deleted by using CRR:
{
"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"
}
}
}
}
}
For information about parameters in the data field, see the parameter description table.