1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. oos
  5. Template
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.oos.Template

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a OOS Template resource. For information about Alicloud OOS Template and how to use it, see What is Resource Alicloud OOS Template.

    NOTE: Available in 1.92.0+.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.oos.Template("example", {
        content: `  {
        "FormatVersion": "OOS-2019-06-01",
        "Description": "Update Describe instances of given status",
        "Parameters":{
          "Status":{
            "Type": "String",
            "Description": "(Required) The status of the Ecs instance."
          }
        },
        "Tasks": [
          {
            "Properties" :{
              "Parameters":{
                "Status": "{{ Status }}"
              },
              "API": "DescribeInstances",
              "Service": "Ecs"
            },
            "Name": "foo",
            "Action": "ACS::ExecuteApi"
          }]
      }
    `,
        templateName: "test-name",
        versionName: "test",
        tags: {
            Created: "TF",
            For: "acceptance Test",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.oos.Template("example",
        content="""  {
        "FormatVersion": "OOS-2019-06-01",
        "Description": "Update Describe instances of given status",
        "Parameters":{
          "Status":{
            "Type": "String",
            "Description": "(Required) The status of the Ecs instance."
          }
        },
        "Tasks": [
          {
            "Properties" :{
              "Parameters":{
                "Status": "{{ Status }}"
              },
              "API": "DescribeInstances",
              "Service": "Ecs"
            },
            "Name": "foo",
            "Action": "ACS::ExecuteApi"
          }]
      }
    """,
        template_name="test-name",
        version_name="test",
        tags={
            "Created": "TF",
            "For": "acceptance Test",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oos.NewTemplate(ctx, "example", &oos.TemplateArgs{
    			Content: pulumi.String(`  {
        "FormatVersion": "OOS-2019-06-01",
        "Description": "Update Describe instances of given status",
        "Parameters":{
          "Status":{
            "Type": "String",
            "Description": "(Required) The status of the Ecs instance."
          }
        },
        "Tasks": [
          {
            "Properties" :{
              "Parameters":{
                "Status": "{{ Status }}"
              },
              "API": "DescribeInstances",
              "Service": "Ecs"
            },
            "Name": "foo",
            "Action": "ACS::ExecuteApi"
          }]
      }
    `),
    			TemplateName: pulumi.String("test-name"),
    			VersionName:  pulumi.String("test"),
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("TF"),
    				"For":     pulumi.String("acceptance Test"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.Oos.Template("example", new()
        {
            Content = @"  {
        ""FormatVersion"": ""OOS-2019-06-01"",
        ""Description"": ""Update Describe instances of given status"",
        ""Parameters"":{
          ""Status"":{
            ""Type"": ""String"",
            ""Description"": ""(Required) The status of the Ecs instance.""
          }
        },
        ""Tasks"": [
          {
            ""Properties"" :{
              ""Parameters"":{
                ""Status"": ""{{ Status }}""
              },
              ""API"": ""DescribeInstances"",
              ""Service"": ""Ecs""
            },
            ""Name"": ""foo"",
            ""Action"": ""ACS::ExecuteApi""
          }]
      }
    ",
            TemplateName = "test-name",
            VersionName = "test",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "acceptance Test" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.oos.Template;
    import com.pulumi.alicloud.oos.TemplateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Template("example", TemplateArgs.builder()
                .content("""
      {
        "FormatVersion": "OOS-2019-06-01",
        "Description": "Update Describe instances of given status",
        "Parameters":{
          "Status":{
            "Type": "String",
            "Description": "(Required) The status of the Ecs instance."
          }
        },
        "Tasks": [
          {
            "Properties" :{
              "Parameters":{
                "Status": "{{ Status }}"
              },
              "API": "DescribeInstances",
              "Service": "Ecs"
            },
            "Name": "foo",
            "Action": "ACS::ExecuteApi"
          }]
      }
                """)
                .templateName("test-name")
                .versionName("test")
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "acceptance Test")
                ))
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:oos:Template
        properties:
          content: |2
              {
                "FormatVersion": "OOS-2019-06-01",
                "Description": "Update Describe instances of given status",
                "Parameters":{
                  "Status":{
                    "Type": "String",
                    "Description": "(Required) The status of the Ecs instance."
                  }
                },
                "Tasks": [
                  {
                    "Properties" :{
                      "Parameters":{
                        "Status": "{{ Status }}"
                      },
                      "API": "DescribeInstances",
                      "Service": "Ecs"
                    },
                    "Name": "foo",
                    "Action": "ACS::ExecuteApi"
                  }]
              }
          templateName: test-name
          versionName: test
          tags:
            Created: TF
            For: acceptance Test
    

    Create Template Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Template(name: string, args: TemplateArgs, opts?: CustomResourceOptions);
    @overload
    def Template(resource_name: str,
                 args: TemplateArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Template(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 content: Optional[str] = None,
                 template_name: Optional[str] = None,
                 auto_delete_executions: Optional[bool] = None,
                 resource_group_id: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 version_name: Optional[str] = None)
    func NewTemplate(ctx *Context, name string, args TemplateArgs, opts ...ResourceOption) (*Template, error)
    public Template(string name, TemplateArgs args, CustomResourceOptions? opts = null)
    public Template(String name, TemplateArgs args)
    public Template(String name, TemplateArgs args, CustomResourceOptions options)
    
    type: alicloud:oos:Template
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var templateResource = new AliCloud.Oos.Template("templateResource", new()
    {
        Content = "string",
        TemplateName = "string",
        AutoDeleteExecutions = false,
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        VersionName = "string",
    });
    
    example, err := oos.NewTemplate(ctx, "templateResource", &oos.TemplateArgs{
    	Content:              pulumi.String("string"),
    	TemplateName:         pulumi.String("string"),
    	AutoDeleteExecutions: pulumi.Bool(false),
    	ResourceGroupId:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VersionName: pulumi.String("string"),
    })
    
    var templateResource = new Template("templateResource", TemplateArgs.builder()
        .content("string")
        .templateName("string")
        .autoDeleteExecutions(false)
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .versionName("string")
        .build());
    
    template_resource = alicloud.oos.Template("templateResource",
        content="string",
        template_name="string",
        auto_delete_executions=False,
        resource_group_id="string",
        tags={
            "string": "string",
        },
        version_name="string")
    
    const templateResource = new alicloud.oos.Template("templateResource", {
        content: "string",
        templateName: "string",
        autoDeleteExecutions: false,
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
        versionName: "string",
    });
    
    type: alicloud:oos:Template
    properties:
        autoDeleteExecutions: false
        content: string
        resourceGroupId: string
        tags:
            string: string
        templateName: string
        versionName: string
    

    Template Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Template resource accepts the following input properties:

    Content string
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    TemplateName string
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    AutoDeleteExecutions bool
    When deleting a template, whether to delete its related executions. Default to false.
    ResourceGroupId string
    The ID of resource group which the template belongs.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    VersionName string
    The name of template version.
    Content string
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    TemplateName string
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    AutoDeleteExecutions bool
    When deleting a template, whether to delete its related executions. Default to false.
    ResourceGroupId string
    The ID of resource group which the template belongs.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    VersionName string
    The name of template version.
    content String
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    templateName String
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    autoDeleteExecutions Boolean
    When deleting a template, whether to delete its related executions. Default to false.
    resourceGroupId String
    The ID of resource group which the template belongs.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    versionName String
    The name of template version.
    content string
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    templateName string
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    autoDeleteExecutions boolean
    When deleting a template, whether to delete its related executions. Default to false.
    resourceGroupId string
    The ID of resource group which the template belongs.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    versionName string
    The name of template version.
    content str
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    template_name str
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    auto_delete_executions bool
    When deleting a template, whether to delete its related executions. Default to false.
    resource_group_id str
    The ID of resource group which the template belongs.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    version_name str
    The name of template version.
    content String
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    templateName String
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    autoDeleteExecutions Boolean
    When deleting a template, whether to delete its related executions. Default to false.
    resourceGroupId String
    The ID of resource group which the template belongs.
    tags Map<String>
    A mapping of tags to assign to the resource.
    versionName String
    The name of template version.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Template resource produces the following output properties:

    CreatedBy string
    The creator of the template.
    CreatedDate string
    The time when the template is created.
    Description string
    The description of the template.
    HasTrigger bool
    Is it triggered successfully.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShareType string
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    TemplateFormat string
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    TemplateId string
    The id of OOS Template.
    TemplateType string
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    TemplateVersion string
    The version of OOS Template.
    UpdatedBy string
    The user who updated the template.
    UpdatedDate string
    The time when the template was updated.
    CreatedBy string
    The creator of the template.
    CreatedDate string
    The time when the template is created.
    Description string
    The description of the template.
    HasTrigger bool
    Is it triggered successfully.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShareType string
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    TemplateFormat string
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    TemplateId string
    The id of OOS Template.
    TemplateType string
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    TemplateVersion string
    The version of OOS Template.
    UpdatedBy string
    The user who updated the template.
    UpdatedDate string
    The time when the template was updated.
    createdBy String
    The creator of the template.
    createdDate String
    The time when the template is created.
    description String
    The description of the template.
    hasTrigger Boolean
    Is it triggered successfully.
    id String
    The provider-assigned unique ID for this managed resource.
    shareType String
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    templateFormat String
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    templateId String
    The id of OOS Template.
    templateType String
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    templateVersion String
    The version of OOS Template.
    updatedBy String
    The user who updated the template.
    updatedDate String
    The time when the template was updated.
    createdBy string
    The creator of the template.
    createdDate string
    The time when the template is created.
    description string
    The description of the template.
    hasTrigger boolean
    Is it triggered successfully.
    id string
    The provider-assigned unique ID for this managed resource.
    shareType string
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    templateFormat string
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    templateId string
    The id of OOS Template.
    templateType string
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    templateVersion string
    The version of OOS Template.
    updatedBy string
    The user who updated the template.
    updatedDate string
    The time when the template was updated.
    created_by str
    The creator of the template.
    created_date str
    The time when the template is created.
    description str
    The description of the template.
    has_trigger bool
    Is it triggered successfully.
    id str
    The provider-assigned unique ID for this managed resource.
    share_type str
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    template_format str
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    template_id str
    The id of OOS Template.
    template_type str
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    template_version str
    The version of OOS Template.
    updated_by str
    The user who updated the template.
    updated_date str
    The time when the template was updated.
    createdBy String
    The creator of the template.
    createdDate String
    The time when the template is created.
    description String
    The description of the template.
    hasTrigger Boolean
    Is it triggered successfully.
    id String
    The provider-assigned unique ID for this managed resource.
    shareType String
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    templateFormat String
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    templateId String
    The id of OOS Template.
    templateType String
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    templateVersion String
    The version of OOS Template.
    updatedBy String
    The user who updated the template.
    updatedDate String
    The time when the template was updated.

    Look up Existing Template Resource

    Get an existing Template resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TemplateState, opts?: CustomResourceOptions): Template
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_delete_executions: Optional[bool] = None,
            content: Optional[str] = None,
            created_by: Optional[str] = None,
            created_date: Optional[str] = None,
            description: Optional[str] = None,
            has_trigger: Optional[bool] = None,
            resource_group_id: Optional[str] = None,
            share_type: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            template_format: Optional[str] = None,
            template_id: Optional[str] = None,
            template_name: Optional[str] = None,
            template_type: Optional[str] = None,
            template_version: Optional[str] = None,
            updated_by: Optional[str] = None,
            updated_date: Optional[str] = None,
            version_name: Optional[str] = None) -> Template
    func GetTemplate(ctx *Context, name string, id IDInput, state *TemplateState, opts ...ResourceOption) (*Template, error)
    public static Template Get(string name, Input<string> id, TemplateState? state, CustomResourceOptions? opts = null)
    public static Template get(String name, Output<String> id, TemplateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoDeleteExecutions bool
    When deleting a template, whether to delete its related executions. Default to false.
    Content string
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    CreatedBy string
    The creator of the template.
    CreatedDate string
    The time when the template is created.
    Description string
    The description of the template.
    HasTrigger bool
    Is it triggered successfully.
    ResourceGroupId string
    The ID of resource group which the template belongs.
    ShareType string
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    TemplateFormat string
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    TemplateId string
    The id of OOS Template.
    TemplateName string
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    TemplateType string
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    TemplateVersion string
    The version of OOS Template.
    UpdatedBy string
    The user who updated the template.
    UpdatedDate string
    The time when the template was updated.
    VersionName string
    The name of template version.
    AutoDeleteExecutions bool
    When deleting a template, whether to delete its related executions. Default to false.
    Content string
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    CreatedBy string
    The creator of the template.
    CreatedDate string
    The time when the template is created.
    Description string
    The description of the template.
    HasTrigger bool
    Is it triggered successfully.
    ResourceGroupId string
    The ID of resource group which the template belongs.
    ShareType string
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    TemplateFormat string
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    TemplateId string
    The id of OOS Template.
    TemplateName string
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    TemplateType string
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    TemplateVersion string
    The version of OOS Template.
    UpdatedBy string
    The user who updated the template.
    UpdatedDate string
    The time when the template was updated.
    VersionName string
    The name of template version.
    autoDeleteExecutions Boolean
    When deleting a template, whether to delete its related executions. Default to false.
    content String
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    createdBy String
    The creator of the template.
    createdDate String
    The time when the template is created.
    description String
    The description of the template.
    hasTrigger Boolean
    Is it triggered successfully.
    resourceGroupId String
    The ID of resource group which the template belongs.
    shareType String
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    templateFormat String
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    templateId String
    The id of OOS Template.
    templateName String
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    templateType String
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    templateVersion String
    The version of OOS Template.
    updatedBy String
    The user who updated the template.
    updatedDate String
    The time when the template was updated.
    versionName String
    The name of template version.
    autoDeleteExecutions boolean
    When deleting a template, whether to delete its related executions. Default to false.
    content string
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    createdBy string
    The creator of the template.
    createdDate string
    The time when the template is created.
    description string
    The description of the template.
    hasTrigger boolean
    Is it triggered successfully.
    resourceGroupId string
    The ID of resource group which the template belongs.
    shareType string
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    templateFormat string
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    templateId string
    The id of OOS Template.
    templateName string
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    templateType string
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    templateVersion string
    The version of OOS Template.
    updatedBy string
    The user who updated the template.
    updatedDate string
    The time when the template was updated.
    versionName string
    The name of template version.
    auto_delete_executions bool
    When deleting a template, whether to delete its related executions. Default to false.
    content str
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    created_by str
    The creator of the template.
    created_date str
    The time when the template is created.
    description str
    The description of the template.
    has_trigger bool
    Is it triggered successfully.
    resource_group_id str
    The ID of resource group which the template belongs.
    share_type str
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    template_format str
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    template_id str
    The id of OOS Template.
    template_name str
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    template_type str
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    template_version str
    The version of OOS Template.
    updated_by str
    The user who updated the template.
    updated_date str
    The time when the template was updated.
    version_name str
    The name of template version.
    autoDeleteExecutions Boolean
    When deleting a template, whether to delete its related executions. Default to false.
    content String
    The content of the template. The template must be in the JSON or YAML format. Maximum size: 64 KB.
    createdBy String
    The creator of the template.
    createdDate String
    The time when the template is created.
    description String
    The description of the template.
    hasTrigger Boolean
    Is it triggered successfully.
    resourceGroupId String
    The ID of resource group which the template belongs.
    shareType String
    The sharing type of the template. The sharing type of templates created by users are set to Private. The sharing type of common templates provided by OOS are set to Public.
    tags Map<String>
    A mapping of tags to assign to the resource.
    templateFormat String
    The format of the template. The format can be JSON or YAML. The system automatically identifies the format.
    templateId String
    The id of OOS Template.
    templateName String
    The name of the template. The template name can be up to 200 characters in length. The name can contain letters, digits, hyphens (-), and underscores (_). It cannot start with ALIYUN, ACS, ALIBABA, or ALICLOUD.
    templateType String
    The type of OOS Template. Automation means the implementation of Alibaba Cloud API template, Package means represents a template for installing software.
    templateVersion String
    The version of OOS Template.
    updatedBy String
    The user who updated the template.
    updatedDate String
    The time when the template was updated.
    versionName String
    The name of template version.

    Import

    OOS Template can be imported using the id or template_name, e.g.

    $ pulumi import alicloud:oos/template:Template example template_name
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi