Alibaba Cloud Object Storage Service binding spec

Detailed documentation on the Alibaba Cloud Object Storage binding component

Component format

To setup an Alibaba Cloud Object Storage binding create a component of type bindings.alicloud.oss. See this guide on how to create and apply a secretstore configuration. See this guide on referencing secrets to retrieve and use the secret with Dapr components.

kind: Component
  name: alicloudobjectstorage
  namespace: default
  type: bindings.alicloud.oss
  version: v1
  - name: endpoint
    value: "[endpoint]"
  - name: accessKeyID
    value: "[key-id]"
  - name: accessKey
    value: "[access-key]"
  - name: bucket
    value: "[bucket]"

Spec metadata fields

Field Required Details Example
endpoint Y Alicloud OSS endpoint.
accessKeyID Y Access key ID credential.
accessKey Y Access key credential.
bucket Y Name of the storage bucket.

Output operations

The following operations are supported as within the output binding:

Create object

To perform a create object operation, invoke the binding with a POST method and the following JSON body:

  "operation": "create",
  "data": "YOUR_CONTENT"


Saving to a random generated UUID file

curl -d "{ \"operation\": \"create\", \"data\": \"Hello World\" }" http://localhost:<dapr-port>/v1.0/bindings/<binding-name>

Saving to a specific file

curl -d "{ \"operation\": \"create\", \"data\": \"Hello World\", \"metadata\": { \"key\": \"my-key\" } }" http://localhost:<dapr-port>/v1.0/bindings/<binding-name>

Metadata information

Object key

By default, the Alicloud OSS output binding will auto-generate a UUID as the object key. You can set the key with the following metadata:

    "data": "file content",
    "metadata": {
        "key": "my-key"
    "operation": "create"