All Products
Search
Document Center

CloudOps Orchestration Service:Batch download files to an instance

Last Updated:May 12, 2025

CloudOps Orchestration Service (OOS) provides batch operation features. For example, you can batch download files to Elastic Compute Service (ECS) instances. This topic describes how to batch download files to ECS instances in different scenarios using different methods.

Scenario 1: Download files to an instance over HTTPS

Prerequisites

An ECS instance is created and the ECS instance can access the Internet. For more information, see Create an ECS instance and Enable Internet access.

Procedure

  1. Go toi the CloudOps Orchestration Service - Common O&M Tasks - Batch Instance Operations page.

  2. Click Create to go to the Create Task Batch Instance Operations page.

  3. For Task Type, select Batch Download Files. Specify the file type and instance as prompted, and then click Create.image.png

  4. After the execution is complete, click Details to view the execution results.

    批量下载-zh

Scenario 2: Download files from Object Storage Service (OSS) to an instance

Prerequisites

The selected instance must be configured with an instance role, and the instance role must include OSS read permissions.

Procedure

  1. Create a role and grant permissions.

    1. Go to the RAM - Create Role page.

    2. On the Create Role page, set Principal Type to Alibaba Cloud Service, then select a specific Alibaba Cloud service, and click OK.

      image

      Note

      The Alibaba Cloud services that can be selected in Principal Name depend on what is displayed in the console interface. In this example, Elastic Compute Service is selected.

    3. In the Create Role dialog box, enter a Role Name (for example, InstanceRole), and then click OK.

    4. Add OSS read permissions to the instance role, and then click Grant Permissions.

      The newly created RAM role does not have any permissions by default. You need to grant permissions to the RAM role, which means you need to add OSS read permissions (AliyunOSSReadOnlyAccess) to the instance role.

      新增权限

    5. Confirm that the permissions are granted, and click Complete.

  2. In the OOS console, batch download files to ECS instances.

    1. Visit the CloudOps Orchestration Service - Common O&M Tasks - Batch Instance Operations page.

    2. Click Create to go to the Create Task Batch Instance Operations page.

    3. For Task Type, select Instance Operations. For Operations to Be Performed, select Add Role, configure the Role Name, select the instance, and click Create.

      piliang

    4. On the Parameter Confirmation page, click OK.

    5. On the Create Task Batch Instance Operations page, for Task Type, select Batch Download Files, configure the relevant parameters and select the instance, and then click Create.

      20pol

    6. After the execution is complete, you can view the execution results in Details.

      执行成功