Create a template using Alibaba Cloud Toolkit (Visual Studio Code)

Updated at:

After you install and configure Cloud Toolkit in Visual Studio Code, you can create and manage Operation Orchestration Service (OOS) templates easily and efficiently.

Prerequisites

Background information

Cloud Toolkit is a plug-in that helps developers deploy, test, develop, and diagnose applications more efficiently. For more information about Cloud Toolkit, see What is Alibaba Cloud Toolkit?.

OOS is integrated with Cloud Toolkit. After you install and configure Cloud Toolkit in Visual Studio Code, you can create OOS templates easily and efficiently.

Create a template

Cloud Toolkit identifies OOS template files by their file name extensions, such as .oos.yaml for YAML templates and .oos.json for JSON templates. It supports features such as automatic code completion and parameter hints.

Create a YAML template

In Visual Studio Code, create a template file with the .oos.yaml extension, such as template.oos.yaml.

Template content completion hints

When you define the Parameters, Tasks, and Outputs sections in an OOS template, Cloud Toolkit provides quick hints about the properties for these sections.

image.png

  • Parameter completion

When you define the Parameters section in an OOS template, Cloud Toolkit provides quick hints about the properties for this section.

image.png

  • Complete the task information

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick hints about the properties for this section.

image.png

  • Output completion

When you define the Outputs section in an OOS template, Cloud Toolkit provides quick hints about the properties for this section.

image.png

Intelligent hints for parameter types and properties

When you define the Parameters section in an OOS template, Cloud Toolkit provides quick and accurate hints for required parameter types and parameter properties, such as AssociationProperty.

image.png

image.png

Intelligent hints for task types

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick and accurate hints for the required atomic actions and cloud product actions.

image.png

Intelligent hints for cloud product action properties

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick and accurate hints for the required properties of cloud product actions.

image.png

Intelligent hints for OpenAPI names and parameters called by atomic actions

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick and accurate hints for the names and parameters of the OpenAPI operations called by atomic actions.

image.png

Create a JSON template

In Visual Studio Code, create a template file with the .oos.json extension, such as template.oos.json.

Template content completion hints

When you define the Parameters, Tasks, and Outputs sections in an OOS template, Cloud Toolkit provides quick hints about the properties for these sections.

image.png

  • Parameter completion

When you define the Parameters section in an OOS template, Cloud Toolkit provides quick hints about the properties for this section.

image.png

  • Task completion

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick hints about the properties for this section.

image.png

  • Output completion

When you define the Outputs section in an OOS template, Cloud Toolkit provides quick hints about the properties for this section.

image.png

Intelligent hints for parameter types and properties

When you define the Parameters section in an OOS template, Cloud Toolkit provides quick and accurate hints for required parameter types and parameter properties, such as AssociationProperty.

image.png

image.png

Intelligent hints for task types

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick and accurate hints for the required atomic actions and cloud product actions.

image.png

Intelligent hints for cloud product action properties

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick and accurate hints for the required properties of cloud product actions.

image.png

Intelligent hints for OpenAPI names and parameters called by atomic actions

When you define the Tasks section in an OOS template, Cloud Toolkit provides quick and accurate hints for the names and parameters of the OpenAPI operations called by atomic actions.

image.png