All Products
Search
Document Center

Execute a template

Last Updated: Sep 05, 2019

After creating a template, you can execute the template.

Procedure

  1. Log on to the ECS console. Choose Maintenance & Monitoring > Operation Orchestration Service in the left-side navigation pane.

  2. Click the Custom Templates tab, find the new template DescribeInstances, and then click Create Execution in the Actions column.

  3. On the Create Execution page that appears, set the parameters in the Basic Information section.

    oos

    In this example, set Execution Mode to Automatic. The following table describes the parameters.

    Parameter Description
    Execution Mode - Automatic: After the configuration is completed, the template will be automatically executed.
    - Manual: After the configuration is completed, you must manually execute the template.
    Risk Confirmation - Require Confirmation for High-risk Tasks: You need to confirm the execution of high-risk tasks, such as instance release.
    - Skip Confirmation for High-risk Tasks: All tasks are executed automatically. Make sure that you have considered all high-risk tasks.
    Template Category - Public Templates: templates provided by the platform for common scenarios.
    - Custom Templates: templates created based on your own needs.
    Template The template to be executed. In this example, select the template you created.
    Template Details The details of the template that you select.

    1. Click Next: Parameter Settings. On the page that appears, set the parameters and confirm the permissions of the RAM role.

      • In this example, set Status to Stopped.
      • To ensure that the template can be successfully executed, follow these steps to check the authorization policies of the RAM role that OOS will use:
        Click View Authorization Policies. Then, log on to the RAM console. Verify that the RAM role to be used by OOS exists and that this RAM role has the permissions required for template execution. That is, the permissions of this role are not fewer than the result of View Authorization Policies. If the RAM role to be used by OOS is not created, or this role is created but is not granted the permissions required for template execution, click Automatic Authorization. You can also click Manual Authorization, and grant the required permissions to the role. For more information, see Configure RAM permissions for OOS.**

        oos

    2. Click Next: Preview.

    3. Click Create Execution.

    4. On the Executions tab, view the execution result.

      • If you set the execution mode to Automatic, the template will be automatically executed. After the execution is completed, the execution status becomes Success.**
      • If you set the execution mode to Manual or set the risk conformation mode to Require Confirmation for High-risk Tasks, you need to manually execute the template.
    5. To view the execution details, click the execution ID or click Details in the Actions column.**

      oos