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

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 This property is required. string
The unique name of the resource.
args This property is required. TemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. TemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var templateResource = new Template("templateResource", TemplateArgs.builder()
    .templateName("string")
    .templateType("string")
    .sites("string")
    .templateId("string")
    .tenantId("string")
    .build());
Copy
template_resource = mso.Template("templateResource",
    template_name="string",
    template_type="string",
    sites=["string"],
    template_id="string",
    tenant_id="string")
Copy
const templateResource = new mso.Template("templateResource", {
    templateName: "string",
    templateType: "string",
    sites: ["string"],
    templateId: "string",
    tenantId: "string",
});
Copy
type: mso:Template
properties:
    sites:
        - string
    templateId: string
    templateName: string
    templateType: string
    tenantId: string
Copy

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 This property is required. string
TemplateType This property is required. string
Sites List<string>
TemplateId string
TenantId string
TemplateName This property is required. string
TemplateType This property is required. string
Sites []string
TemplateId string
TenantId string
templateName This property is required. String
templateType This property is required. String
sites List<String>
templateId String
tenantId String
templateName This property is required. string
templateType This property is required. string
sites string[]
templateId string
tenantId string
template_name This property is required. str
template_type This property is required. str
sites Sequence[str]
template_id str
tenant_id str
templateName This property is required. String
templateType This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.