What do you want to automate

with File Store and Alibaba Cloud?

Prompt, edit and deploy AI agents that connect to File Store, Alibaba Cloud and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Integrate the File Store API with the Alibaba Cloud API
Setup the File Store API trigger to run a workflow which integrates with the Alibaba Cloud API. Pipedream's integration platform allows you to integrate File Store and Alibaba Cloud remarkably fast. Free for developers.

Connect File Store

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default defineComponent({
  async run({ steps, $ }) {
    // list all contents of the root File Stores directory in this project
    const dirs = $.files.dir();
    let files = [];

    for await(const dir of dirs) {
      // if this is a file, let's open it
      if(dir.isFile()) {
        files.push(await $.files.open(dir.path))
      }
    }

    return files
  },
})

Connect Alibaba Cloud

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import Ecs20140526, * as $Ecs20140526 from '@alicloud/ecs20140526';
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
import Util, * as $Util from '@alicloud/tea-util';

export default defineComponent({
  props: {
    alibaba_cloud: {
      type: "app",
      app: "alibaba_cloud",
    }
  },
  async run({ steps, $ }) {
    //Creates a new Alibaba Cloud SDK client
    let config = new OpenApi.Config({
      accessKeyId: this.alibaba_cloud.$auth.access_key_id,
      accessKeySecret: this.alibaba_cloud.$auth.access_key_secret,
    });
    config.endpoint = this.alibaba_cloud.$auth.endpoint;

    //Creates and executes a request
    let client = new Ecs20140526.default(config);
    let describeRegionsRequest = new $Ecs20140526.DescribeRegionsRequest({});
    let runtime = new $Util.RuntimeOptions({});
    return await client.describeRegionsWithOptions(describeRegionsRequest, runtime);
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo