All Products
Search
Document Center

CloudOps Orchestration Service:Use the online YAML or JSON template editor of OOS to edit a template

Last Updated:Jun 12, 2024

This topic describes how to use an online template editor of CloudOps Orchestration Service (OOS) to edit a template. The online template editors of OOS provide a variety of features, such as automatic code completion and hinting.

Prerequisites

You are familiar with the syntax and basic structure of OOS templates. For more information, see Template structure.

Procedure

  1. Log on to the CloudOps Orchestration Service console.

  2. In the left-side navigation pane, choose Automated Task > Custom Template.

  3. On the Custom Template page, click Create Template.

  4. On the Create Template page, click the YAML or JSON tab and edit your template.

Use the YAML template editor

The YAML template editor provides features such as automatic code completion and hinting.

  • Automatic code completion

When you configure the Parameters, Tasks, and Outputs sections of an OOS template, the YAML template editor responsively displays properties based on the content that you enter.

  • Parameters section

image.png

  • Tasks section

image.png

  • Outputs section

Screenshot 2023-03-16 at 15.49.21.png

  • Intelligent code hinting for parameter types and properties

When you configure the Parameters section of an OOS template, the YAML template editor responsively displays hints about parameter types and properties such as AssocioationProperty. Screenshot 2023-03-16 at 15.12.57.png

  • Intelligent code hinting for task types

When you configure the Tasks section of an OOS template, the YAML template editor responsively displays hints about atomic actions and Alibaba Cloud service actions.

image.png

  • Intelligent code hinting for the properties of an Alibaba Cloud service action

When you configure the Tasks section of an OOS template, the YAML template editor responsively displays hints about the properties of an Alibaba Cloud service action.

Screenshot 2023-03-16 at 16.06.24.png

  • Intelligent code hinting for the name and parameters of an API operation

When you configure the Tasks section of an OOS template, the YAML template editor responsively displays hints about the name and parameters of an API operation called by an atomic action.

Screenshot 2023-03-16 at 16.15.40.png

Use the JSON template editor

The JSON template editor provides features such as automatic code completion and hinting.

  • Automatic code completion

When you configure the Parameters, Tasks, and Outputs sections of an OOS template, the JSON template editor responsively displays properties based on the content that you enter.

  • Parameters section

Screenshot 2023-03-16 at 16.19.40.png

  • Tasks section

Screenshot 2023-03-16 at 16.48.14.png

  • Outputs section

Screenshot 2023-03-16 at 16.51.30.png

  • Intelligent code hinting for parameter types and properties

When you configure the Parameters section of an OOS template, the JSON template editor responsively displays hints about parameter types and properties such as AssocioationProperty. Screenshot 2023-03-16 at 16.20.34.png

  • Intelligent code hinting for task types

When you configure the Tasks section of an OOS template, the JSON template editor responsively displays hints about atomic actions and Alibaba Cloud service actions.

Screenshot 2023-03-16 at 16.52.44.png

  • Intelligent code hinting for the properties of an Alibaba Cloud service action

When you configure the Tasks section of an OOS template, the JSON template editor responsively displays hints about the properties of an Alibaba Cloud service action.

Screenshot 2023-03-16 at 16.53.27.png

  • Intelligent code hinting for the name and parameters of an API operation

When you configure the Tasks section of an OOS template, the JSON template editor responsively displays hints about the name and parameters of an API operation called by an atomic action.

Screenshot 2023-03-16 at 16.55.02.png