Create a template using Alibaba Cloud Toolkit (Visual Studio Code)
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
Download and install Visual Studio Code.
Cloud Toolkit is installed and configured in Visual Studio Code. For more information, see Install and configure Alibaba Cloud Toolkit in Visual Studio Code.
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.

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

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.

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

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.


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.

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.

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.

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.

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

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

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

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.


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.

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.

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.
