This topic lists the event types published by OSS as an event source to EventBridge.
Supported regions
You can publish events from OSS to EventBridge in China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), China (Shenzhen), China (Chengdu), US (Silicon Valley), Singapore, Japan (Tokyo), and South Korea (Seoul).
Event types
OSS can publish the following event types to EventBridge.
|
Event type |
type value |
|
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 |
|
|
An Alibaba Cloud service performs an operation on a resource |
oss:ActionTrail:AliyunServiceEvent |
|
An API call is made |
oss:ActionTrail:ApiCall |
|
A console operation is performed |
oss:ActionTrail:ConsoleOperation |
|
A bucket's egress bandwidth exceeds the reporting threshold |
oss:CloudMonitor:BucketEgressBandwidth |
|
A bucket's egress bandwidth exceeds the throttling threshold |
oss:CloudMonitor:BucketEgressBandwidthThresholdExceeded |
|
A bucket's image processing CPU usage exceeds the throttling threshold |
oss:CloudMonitor:BucketImageCpuThresholdExceeded |
|
A bucket's ingress bandwidth exceeds the reporting threshold |
oss:CloudMonitor:BucketIngressBandwidth |
|
A bucket's ingress bandwidth exceeds the throttling threshold |
oss:CloudMonitor:BucketIngressBandwidthThresholdExceeded |
|
A bucket's mirroring-based back-to-origin bandwidth exceeds the throttling threshold |
oss:CloudMonitor:BucketMirrorIngressBandwidthThresholdExceeded |
|
A bucket's mirroring-based back-to-origin requests per second (QPS) exceeds the throttling threshold |
oss:CloudMonitor:BucketMirrorQpsThresholdExceeded |
|
A bucket's requests per second (QPS) exceeds the throttling threshold |
oss:CloudMonitor:BucketQpsThresholdExceeded |
|
A user's egress bandwidth exceeds the reporting threshold |
oss:CloudMonitor:UserEgressBandwidth |
|
A user's egress bandwidth exceeds the throttling threshold |
oss:CloudMonitor:UserEgressBandwidthThresholdExceeded |
|
A user's image processing CPU usage exceeds the throttling threshold |
oss:CloudMonitor:UserImageCpuThresholdExceeded |
|
A user's ingress bandwidth exceeds the reporting threshold |
oss:CloudMonitor:UserIngressBandwidth |
|
A user's ingress bandwidth exceeds the throttling threshold |
oss:CloudMonitor:UserIngressBandwidthThresholdExceeded |
|
A user's mirroring-based back-to-origin bandwidth exceeds the throttling threshold |
oss:CloudMonitor:UserMirrorIngressBandwidthThresholdExceeded |
|
A user's mirroring-based back-to-origin requests per second (QPS) exceeds the throttling threshold |
oss:CloudMonitor:UserMirrorQpsThresholdExceeded |
|
A user's requests per second (QPS) exceeds the throttling threshold |
oss:CloudMonitor:UserQpsThresholdExceeded |
|
A resource change notification is delivered |
oss:Config:ConfigurationItemChangeNotification |
|
A resource is evaluated as non-compliant |
oss:Config:NonCompliantNotification |
For more information about the parameters defined in the CloudEvents specification, see Event overview.
Create a bucket
A bucket is a container that stores objects. You must create a bucket before uploading an object. The following example shows the event received by EventBridge 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 data field contains the following parameters.
|
Parameter |
Type |
Value |
Description |
|
region |
String |
cn-beijing |
The region where the bucket is located. |
|
eventVersion |
String |
1.0 |
The version of the event schema. |
|
eventSource |
String |
acs:oss |
The event source. The value is always 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 is in ISO 8601 format. |
|
requestParameters |
String |
The request parameters. |
|
|
sourceIPAddress |
String |
118.31.XX.XX |
The source IP address of the request. |
|
userIdentity |
Map |
Information about the user who initiated the request. |
|
|
principalId |
String |
28815334868278**** |
The user ID of the requester. |
|
responseElements |
Map |
The response parameters. |
|
|
requestId |
String |
61161517B258223732BC**** |
The unique ID of the request. |
|
oss |
Map |
A container for details specific to the OSS event. |
|
|
bucket |
Map |
A container for details about 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 user ID of the bucket creator. |
|
ossSchemaVersion |
String |
1.0 |
The version of the OSS event schema. |
Delete a bucket
The following is an example of 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":"BucketDeleted: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:BucketDeleted: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 a description of the parameters in the data field, see parameter description.
Append an object
The following example shows the event EventBridge receives when an object is uploaded by appending data:
{
"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 the parameters in the data field.
|
Parameter |
Type |
Value |
Description |
|
region |
String |
cn-beijing |
The ID of the region where the bucket is located. |
|
eventVersion |
String |
1.0 |
The version of the event schema. |
|
eventSource |
String |
acs:oss |
The event source. The value is always 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 is in ISO 8601 format. |
|
requestParameters |
String |
The request parameters. |
|
|
sourceIPAddress |
String |
118.31.XX.XX |
The source IP address of the request. |
|
userIdentity |
Map |
Information about the user who initiated the request. |
|
|
principalId |
String |
28815334868278**** |
The user ID of the requester. |
|
responseElements |
Map |
The response parameters. |
|
|
requestId |
String |
61161517B258223732BC**** |
The request ID. |
|
oss |
Map |
A container for details specific to the OSS event. |
|
|
bucket |
Map |
A container for details about the bucket. |
|
|
name |
String |
oss-source-bucket1-cn-beijing |
The name of the bucket. |
|
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 user ID of the account that created the bucket. |
|
ossSchemaVersion |
String |
1.0 |
The version of the OSS event schema. |
|
object |
Map |
A container for details about the object. |
|
|
size |
Int |
9 |
The size of the object, in bytes. |
|
deltaSize |
Int |
9 |
The change in the object size, in bytes.
|
|
eTag |
String |
F0F18C2C66AE1DD512BDCD4366F7**** |
The ETag of the object. |
|
key |
String |
objectname |
The name of the object. |
|
position |
Int |
0 |
The starting position for the append operation, in bytes. For the first append operation, this value is 0. |
Copy an object
When an object is copied, EventBridge receives the following event:
{
"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 the parameters in the data field.
|
Parameter |
Type |
Example |
Description |
|
|
String |
cn-beijing |
The ID of the region where the |
|
|
String |
1.0 |
The version of the event schema. |
|
|
String |
acs:oss |
The event source. The value is fixed to acs:oss. |
|
|
String |
ObjectCreated:CopyObject |
The event type. |
|
|
String |
2021-08-13T06:45:43.000Z |
The time when the event occurred. The time is in ISO 8601 format. |
|
|
String |
The request parameters. |
|
|
|
String |
118.31.XX.XX |
The source IP address of the request. |
|
|
Map |
Details of the user who initiated the request. |
|
|
|
String |
28815334868278**** |
The user ID of the requester. |
|
|
Map |
The response parameters. |
|
|
|
String |
61161517B258223732BC**** |
The request ID. |
|
|
Map |
A container for details specific to the OSS event. |
|
|
|
Map |
A container for details about the |
|
|
|
String |
oss-source-bucket1-cn-beijing |
The bucket name. |
|
|
String |
acs:oss:cn-beijing:164901546557****:oss-source-bucket1-cn-beijing |
The ARN of the bucket. |
|
|
String |
164901546557**** |
The ID of the account that owns the bucket. |
|
|
String |
1.0 |
The version of the OSS schema. |
|
|
Map |
A container for details about the |
|
|
|
Int |
9 |
The size of the object, in bytes. |
|
|
Int |
9 |
The change in the object size, in bytes.
|
|
|
String |
F0F18C2C66AE1DD512BDCD4366F7**** |
The ETag of the object. |
|
|
String |
objectname |
The key of the object. |
Upload an object using an HTML form
This example shows the event that EventBridge receives when you upload an object 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 the parameters in the data field, see Parameter descriptions.
Upload an object
The following example shows the event that EventBridge receives when you upload an object:
{
"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 a description of the parameters in the data field, see Parameter descriptions.
Creating a symbolic link
When you create a symbolic link, the sample event received by EventBridge is as follows.
{
"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 details about the parameters in the data field, see Parameter descriptions.
Delete an object
When an object is deleted, EventBridge receives the following event:
{
"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 descriptions of the parameters in the data field, see Parameter descriptions.
Initialize a multipart upload
When a multipart upload is initialized, EventBridge receives a sample event as follows.
{
"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 the parameters in the data field, see Parameter Descriptions.
Upload an object part
Uploading an object part generates the following event in 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"
}
For a description of the parameters in the data field, see Parameter descriptions.
Upload a part by copying
When you upload a part by copying, EventBridge receives this sample event.
{
"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 descriptions of the parameters in the data field, see parameter descriptions.
Multipart upload completed
The following example shows the event that EventBridge receives when a multipart upload completes:
{
"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 a description of the parameters in the data field, see Parameter Descriptions.
Multipart upload canceled
When a multipart upload is canceled, EventBridge receives the following event.
{
"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"
}
See Parameter descriptions for details on the parameters in the data field.
Object restoration complete
When an object is restored, EventBridge receives the following event:
{
"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"
}
This table describes the parameters in the data field.
|
Parameter |
Type |
Example |
Description |
|
region |
String |
cn-beijing |
The region where the bucket is located. |
|
eventVersion |
String |
1.0 |
The version of the event schema. |
|
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, in ISO 8601 format. |
|
sourceIPAddress |
String |
118.31.XX.XX |
The source IP address. |
|
principalId |
String |
28815334868278**** |
The ID of the user who initiated the request. |
|
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 Alibaba Cloud Resource Name (ARN) of the bucket. |
|
ownerIdentity |
String |
164901546557**** |
The user ID of the account that created the bucket. |
|
ossSchemaVersion |
String |
1.0 |
The version of the OSS schema. |
|
size |
Int |
9 |
The size of the object, in bytes. |
|
deltaSize |
Int |
9 |
The change in the object size, in bytes.
|
|
ETag |
String |
F0F18C2C66AE1DD512BDCD4366F7**** |
The ETag of the object. |
|
key |
String |
objectname |
The object name. |
Cross-region object replication
The following example shows the event EventBridge receives when an object is created using cross-region replication:
{
"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 the parameters in the data field.
|
Parameter |
Type |
Example |
Description |
|
region |
String |
cn-hangzhou |
The region where the bucket is located. |
|
eventVersion |
String |
1.0 |
The version of the event schema. |
|
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 of the event, in ISO 8601 format. |
|
sourceIPAddress |
String |
118.31.XX.XX |
The source IP address of the request. |
|
principalId |
String |
28815334868278**** |
The user ID of the requester. |
|
requestId |
String |
61161517B258223732BC**** |
The request ID. |
|
name |
String |
oss-source-bucket1-cn-hangzhou |
The bucket name. |
|
arn |
String |
acs:oss:cn-hangzhou:123456789098****:oss-source-bucket1-cn-hangzhou |
The Alibaba Cloud Resource Name (ARN) of the bucket. |
|
ownerIdentity |
String |
164901546557**** |
The user ID of the account that created the bucket. |
|
ossSchemaVersion |
String |
1.0 |
The version of the OSS schema. |
|
size |
Int |
9 |
The size of the object, in bytes. |
|
deltaSize |
Int |
9 |
The change in the object size, in bytes.
|
|
eTag |
String |
F0F18C2C66AE1DD512BDCD4366F7**** |
The eTag of the object. |
|
key |
String |
objectname |
The object key. |
|
objectMeta |
Object |
A container for metadata about the object. |
|
|
mimeType |
String |
application/octet-stream |
The MIME type of the object. |
Overwrite object via cross-region replication
The following example shows the event that EventBridge receives when an object is overwritten using cross-region replication.
{
"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"
}
}
}
}
}
See Parameter descriptions for an explanation of the parameters in the data field.
Delete an object using cross-region replication
When you delete an object using cross-region replication, EventBridge receives the following event:
{
"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 the parameters in the data field, see Parameter descriptions.