All Products
Search
Document Center

:OSS events

最終更新日:Sep 04, 2024

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 (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

A bucket is created

oss:BucketCreated:PutBucket

A bucket is deleted

oss:BucketRemoved:DeleteBucket

An object is uploaded by being appended to an existing object

oss:ObjectCreated:AppendObject

An object is copied

oss:ObjectCreated:CopyObject

An object is uploaded by using an HTML form

oss:ObjectCreated:PostObject

An object is uploaded

oss:ObjectCreated:PutObject

A symbolic link is created

oss:ObjectCreated:PutSymlink

An object is deleted

oss:ObjectRemoved:DeleteObject

A multipart upload task is initialized

oss:ObjectCreated:InitiateMultipartUpload

One or more object parts are uploaded

oss:ObjectCreated:UploadPart

One or more object parts are uploaded by copying data from an existing object

oss:ObjectCreated:UploadPartCopy

A multipart upload task is complete

oss:ObjectCreated:CompleteMultipartUpload

A multipart upload task is canceled

oss:ObjectRemoved:AbortMultipartUpload

A Cold Archive object is restored

oss:ObjectRestore:FinishRestore

Alibaba Cloud performs an operation 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 report 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 report 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 report 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 report 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 log is delivered

oss:Config:ConfigurationItemChangeNotification

A notification that a resource is evaluated as non-compliant is sent

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 the parameters contained in data.

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 type of the event.

eventTime

String

2021-08-13T06:45:43.000Z

The time when the event occurs. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ 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 ID of the request.

oss

Map

The content of the OSS event.

bucket

Map

The details of 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 ID of the user who creates 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 the parameters contained in data, see the parameter description table.

An object is uploaded by being appended to an existing object

The following example shows the event that EventBridge receives when an object is uploaded by being appended 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 the parameters contained in data.

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 type of the event.

eventTime

String

2021-08-13T06:45:43.000Z

The time when the event occurs. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ 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 ID of the request.

oss

Map

The content of the OSS event.

bucket

Map

The details of 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 ARN of the bucket.

ownerIdentity

String

164901546557****

The ID of the user who creates the bucket.

ossSchemaVersion

String

1.0

The version number of the OSS schema.

object

Map

The details of the object.

size

Int

9

The size of the object. Unit: byte.

deltaSize

Int

9

The variation of the size of the object. Unit: byte.

  • If a new object is added, the value of this parameter indicates the size of the object.

  • If a new object that has the same name as an existing object overwrites the existing object, the value of this parameter indicates the size difference between the new object and the original object.

eTag

String

F0F18C2C66AE1DD512BDCD4366F7****

The tag of the object.

key

String

objectname

The name of the object.

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 the parameters contained in data.

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 type of the event.

eventTime

String

2021-08-13T06:45:43.000Z

The time when the event occurs. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ 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 ID of the request.

oss

Map

The content of the OSS event.

bucket

Map

The details of 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 ARN of the bucket.

ownerIdentity

String

164901546557****

The ID of the user who creates the bucket.

ossSchemaVersion

String

1.0

The version number of the OSS schema.

object

Map

The details of the object.

size

Int

9

The size of the object. Unit: byte.

deltaSize

Int

9

The variation of the size of the object. Unit: byte.

  • If a new object is added, the value of this parameter indicates the size of the object.

  • If a new object that has the same name as an existing object overwrites the existing object, the value of this parameter indicates the size difference between the new object and the original object.

eTag

String

F0F18C2C66AE1DD512BDCD4366F7****

The tag of the object.

key

String

objectname

The name of the object.

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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data, 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 the parameters contained in data.

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 type of the event.

eventTime

String

2021-08-13T06:45:43.000Z

The time when the event occurs. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ 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 ID of the request.

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 ARN of the bucket.

ownerIdentity

String

164901546557****

The ID of the user who creates the bucket.

ossSchemaVersion

String

1.0

The version number of the OSS schema.

size

Int

9

The size of the object. Unit: byte.

deltaSize

Int

9

The variation of the size of the object. Unit: byte.

  • If a new object is added, the value of this parameter indicates the size of the object.

  • If a new object that has the same name as an existing object overwrites the existing object, the value of this parameter indicates the size difference between the new object and the original object.

eTag

String

F0F18C2C66AE1DD512BDCD4366F7****

The tag of the object.

key

String

objectname

The name of the object.