1. Packages
  2. Mso Provider
  3. API Docs
  4. Template
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

mso.Template

Explore with Pulumi AI

mso logo
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

    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,
                 template_name: Optional[str] = None,
                 template_type: Optional[str] = None,
                 sites: Optional[Sequence[str]] = None,
                 template_id: Optional[str] = None,
                 tenant_id: 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: mso: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 Mso.Template("templateResource", new()
    {
        TemplateName = "string",
        TemplateType = "string",
        Sites = new[]
        {
            "string",
        },
        TemplateId = "string",
        TenantId = "string",
    });
    
    example, err := mso.NewTemplate(ctx, "templateResource", &mso.TemplateArgs{
    	TemplateName: pulumi.String("string"),
    	TemplateType: pulumi.String("string"),
    	Sites: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TemplateId: pulumi.String("string"),
    	TenantId:   pulumi.String("string"),
    })
    
    var templateResource = new Template("templateResource", TemplateArgs.builder()
        .templateName("string")
        .templateType("string")
        .sites("string")
        .templateId("string")
        .tenantId("string")
        .build());
    
    template_resource = mso.Template("templateResource",
        template_name="string",
        template_type="string",
        sites=["string"],
        template_id="string",
        tenant_id="string")
    
    const templateResource = new mso.Template("templateResource", {
        templateName: "string",
        templateType: "string",
        sites: ["string"],
        templateId: "string",
        tenantId: "string",
    });
    
    type: mso:Template
    properties:
        sites:
            - string
        templateId: string
        templateName: string
        templateType: string
        tenantId: 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:

    TemplateName string
    TemplateType string
    Sites List<string>
    TemplateId string
    TenantId string
    TemplateName string
    TemplateType string
    Sites []string
    TemplateId string
    TenantId string
    templateName String
    templateType String
    sites List<String>
    templateId String
    tenantId String
    templateName string
    templateType string
    sites string[]
    templateId string
    tenantId string
    templateName String
    templateType String
    sites List<String>
    templateId String
    tenantId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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,
            sites: Optional[Sequence[str]] = None,
            template_id: Optional[str] = None,
            template_name: Optional[str] = None,
            template_type: Optional[str] = None,
            tenant_id: 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)
    resources:  _:    type: mso:Template    get:      id: ${id}
    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:
    Sites List<string>
    TemplateId string
    TemplateName string
    TemplateType string
    TenantId string
    Sites []string
    TemplateId string
    TemplateName string
    TemplateType string
    TenantId string
    sites List<String>
    templateId String
    templateName String
    templateType String
    tenantId String
    sites string[]
    templateId string
    templateName string
    templateType string
    tenantId string
    sites List<String>
    templateId String
    templateName String
    templateType String
    tenantId String

    Package Details

    Repository
    mso ciscodevnet/terraform-provider-mso
    License
    Notes
    This Pulumi package is based on the mso Terraform Provider.
    mso logo
    mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet