All Products
Search
Document Center

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

Last Updated:Feb 19, 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 OOS console.

  2. In the left-side navigation pane, choose Automated O&M > My Templates.

  3. On the My Templates page, click Create Template.

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

Usage notes on 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

  • Tasks section

image

  • Outputs section

image

  • 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.

image

  • 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

  • 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.

image

  • 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.

image

Usage notes on 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

image

  • Tasks section

image

  • Outputs section

image

  • 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.

image

  • 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.

image

  • 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.

image

  • 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.

image