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 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:
- Template
Name string - Template
Type string - Sites List<string>
- Template
Id string - Tenant
Id string
- Template
Name string - Template
Type string - Sites []string
- Template
Id string - Tenant
Id string
- template
Name String - template
Type String - sites List<String>
- template
Id String - tenant
Id String
- template
Name string - template
Type string - sites string[]
- template
Id string - tenant
Id string
- template_
name str - template_
type str - sites Sequence[str]
- template_
id str - tenant_
id str
- template
Name String - template
Type String - sites List<String>
- template
Id String - tenant
Id 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.
- Sites List<string>
- Template
Id string - Template
Name string - Template
Type string - Tenant
Id string
- Sites []string
- Template
Id string - Template
Name string - Template
Type string - Tenant
Id string
- sites List<String>
- template
Id String - template
Name String - template
Type String - tenant
Id String
- sites string[]
- template
Id string - template
Name string - template
Type string - tenant
Id string
- sites Sequence[str]
- template_
id str - template_
name str - template_
type str - tenant_
id str
- sites List<String>
- template
Id String - template
Name String - template
Type String - tenant
Id String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.