1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. ServiceTemplate
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.ServiceTemplate

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This resource can manage the Service Template configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Lbrlabs.PulumiPackage.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Iosxe.ServiceTemplate("example", new()
        {
            AbsoluteTimer = 45,
            AccessGroups = new[]
            {
                new Iosxe.Inputs.ServiceTemplateAccessGroupArgs
                {
                    Name = "ag1",
                },
            },
            Description = "service_template_desc",
            DnsAclPreauth = "dns_acl_name",
            IanctivityTimer = 25,
            InactivityTimerProbe = false,
            InterfaceTemplates = new[]
            {
                new Iosxe.Inputs.ServiceTemplateInterfaceTemplateArgs
                {
                    Name = "template1",
                },
            },
            LinksecPolicy = "must-secure",
            RedirectAppendClientMac = "00:01:00:01:00:01",
            RedirectAppendSwitchMac = "00:01:00:01:00:02",
            RedirectUrl = "valid_url",
            RedirectUrlMatchAcl = "acl_name",
            RedirectUrlMatchAction = "redirect-on-no-match",
            ServicePolicyQosInput = "input_qos",
            ServicePolicyQosOutput = "output_qos",
            Sgt = 57,
            Tags = new[]
            {
                new Iosxe.Inputs.ServiceTemplateTagArgs
                {
                    Name = "tag_name",
                },
            },
            TunnelCapwapName = "TUN1",
            Vlan = 27,
            Vnid = "12345",
            VoiceVlan = false,
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.NewServiceTemplate(ctx, "example", &iosxe.ServiceTemplateArgs{
    			AbsoluteTimer: pulumi.Int(45),
    			AccessGroups: iosxe.ServiceTemplateAccessGroupArray{
    				&iosxe.ServiceTemplateAccessGroupArgs{
    					Name: pulumi.String("ag1"),
    				},
    			},
    			Description:          pulumi.String("service_template_desc"),
    			DnsAclPreauth:        pulumi.String("dns_acl_name"),
    			IanctivityTimer:      pulumi.Int(25),
    			InactivityTimerProbe: pulumi.Bool(false),
    			InterfaceTemplates: iosxe.ServiceTemplateInterfaceTemplateArray{
    				&iosxe.ServiceTemplateInterfaceTemplateArgs{
    					Name: pulumi.String("template1"),
    				},
    			},
    			LinksecPolicy:           pulumi.String("must-secure"),
    			RedirectAppendClientMac: pulumi.String("00:01:00:01:00:01"),
    			RedirectAppendSwitchMac: pulumi.String("00:01:00:01:00:02"),
    			RedirectUrl:             pulumi.String("valid_url"),
    			RedirectUrlMatchAcl:     pulumi.String("acl_name"),
    			RedirectUrlMatchAction:  pulumi.String("redirect-on-no-match"),
    			ServicePolicyQosInput:   pulumi.String("input_qos"),
    			ServicePolicyQosOutput:  pulumi.String("output_qos"),
    			Sgt:                     pulumi.Int(57),
    			Tags: iosxe.ServiceTemplateTagArray{
    				&iosxe.ServiceTemplateTagArgs{
    					Name: pulumi.String("tag_name"),
    				},
    			},
    			TunnelCapwapName: pulumi.String("TUN1"),
    			Vlan:             pulumi.Int(27),
    			Vnid:             pulumi.String("12345"),
    			VoiceVlan:        pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.ServiceTemplate;
    import com.pulumi.iosxe.ServiceTemplateArgs;
    import com.pulumi.iosxe.inputs.ServiceTemplateAccessGroupArgs;
    import com.pulumi.iosxe.inputs.ServiceTemplateInterfaceTemplateArgs;
    import com.pulumi.iosxe.inputs.ServiceTemplateTagArgs;
    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 ServiceTemplate("example", ServiceTemplateArgs.builder()        
                .absoluteTimer(45)
                .accessGroups(ServiceTemplateAccessGroupArgs.builder()
                    .name("ag1")
                    .build())
                .description("service_template_desc")
                .dnsAclPreauth("dns_acl_name")
                .ianctivityTimer(25)
                .inactivityTimerProbe(false)
                .interfaceTemplates(ServiceTemplateInterfaceTemplateArgs.builder()
                    .name("template1")
                    .build())
                .linksecPolicy("must-secure")
                .redirectAppendClientMac("00:01:00:01:00:01")
                .redirectAppendSwitchMac("00:01:00:01:00:02")
                .redirectUrl("valid_url")
                .redirectUrlMatchAcl("acl_name")
                .redirectUrlMatchAction("redirect-on-no-match")
                .servicePolicyQosInput("input_qos")
                .servicePolicyQosOutput("output_qos")
                .sgt(57)
                .tags(ServiceTemplateTagArgs.builder()
                    .name("tag_name")
                    .build())
                .tunnelCapwapName("TUN1")
                .vlan(27)
                .vnid("12345")
                .voiceVlan(false)
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_iosxe as iosxe
    
    example = iosxe.ServiceTemplate("example",
        absolute_timer=45,
        access_groups=[iosxe.ServiceTemplateAccessGroupArgs(
            name="ag1",
        )],
        description="service_template_desc",
        dns_acl_preauth="dns_acl_name",
        ianctivity_timer=25,
        inactivity_timer_probe=False,
        interface_templates=[iosxe.ServiceTemplateInterfaceTemplateArgs(
            name="template1",
        )],
        linksec_policy="must-secure",
        redirect_append_client_mac="00:01:00:01:00:01",
        redirect_append_switch_mac="00:01:00:01:00:02",
        redirect_url="valid_url",
        redirect_url_match_acl="acl_name",
        redirect_url_match_action="redirect-on-no-match",
        service_policy_qos_input="input_qos",
        service_policy_qos_output="output_qos",
        sgt=57,
        tags=[iosxe.ServiceTemplateTagArgs(
            name="tag_name",
        )],
        tunnel_capwap_name="TUN1",
        vlan=27,
        vnid="12345",
        voice_vlan=False)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@lbrlabs/pulumi-iosxe";
    
    const example = new iosxe.ServiceTemplate("example", {
        absoluteTimer: 45,
        accessGroups: [{
            name: "ag1",
        }],
        description: "service_template_desc",
        dnsAclPreauth: "dns_acl_name",
        ianctivityTimer: 25,
        inactivityTimerProbe: false,
        interfaceTemplates: [{
            name: "template1",
        }],
        linksecPolicy: "must-secure",
        redirectAppendClientMac: "00:01:00:01:00:01",
        redirectAppendSwitchMac: "00:01:00:01:00:02",
        redirectUrl: "valid_url",
        redirectUrlMatchAcl: "acl_name",
        redirectUrlMatchAction: "redirect-on-no-match",
        servicePolicyQosInput: "input_qos",
        servicePolicyQosOutput: "output_qos",
        sgt: 57,
        tags: [{
            name: "tag_name",
        }],
        tunnelCapwapName: "TUN1",
        vlan: 27,
        vnid: "12345",
        voiceVlan: false,
    });
    
    resources:
      example:
        type: iosxe:ServiceTemplate
        properties:
          absoluteTimer: 45
          accessGroups:
            - name: ag1
          description: service_template_desc
          dnsAclPreauth: dns_acl_name
          ianctivityTimer: 25
          inactivityTimerProbe: false
          interfaceTemplates:
            - name: template1
          linksecPolicy: must-secure
          redirectAppendClientMac: 00:01:00:01:00:01
          redirectAppendSwitchMac: 00:01:00:01:00:02
          redirectUrl: valid_url
          redirectUrlMatchAcl: acl_name
          redirectUrlMatchAction: redirect-on-no-match
          servicePolicyQosInput: input_qos
          servicePolicyQosOutput: output_qos
          sgt: 57
          tags:
            - name: tag_name
          tunnelCapwapName: TUN1
          vlan: 27
          vnid: '12345'
          voiceVlan: false
    

    Create ServiceTemplate Resource

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

    Constructor syntax

    new ServiceTemplate(name: string, args?: ServiceTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceTemplate(resource_name: str,
                        args: Optional[ServiceTemplateArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceTemplate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        absolute_timer: Optional[int] = None,
                        access_groups: Optional[Sequence[ServiceTemplateAccessGroupArgs]] = None,
                        description: Optional[str] = None,
                        device: Optional[str] = None,
                        dns_acl_preauth: Optional[str] = None,
                        ianctivity_timer: Optional[int] = None,
                        inactivity_timer_probe: Optional[bool] = None,
                        interface_templates: Optional[Sequence[ServiceTemplateInterfaceTemplateArgs]] = None,
                        linksec_policy: Optional[str] = None,
                        mdns_service_policy: Optional[str] = None,
                        name: Optional[str] = None,
                        redirect_append_client_mac: Optional[str] = None,
                        redirect_append_switch_mac: Optional[str] = None,
                        redirect_url: Optional[str] = None,
                        redirect_url_match_acl: Optional[str] = None,
                        redirect_url_match_action: Optional[str] = None,
                        service_policy_qos_input: Optional[str] = None,
                        service_policy_qos_output: Optional[str] = None,
                        sgt: Optional[int] = None,
                        tags: Optional[Sequence[ServiceTemplateTagArgs]] = None,
                        tunnel_capwap_name: Optional[str] = None,
                        vlan: Optional[int] = None,
                        vnid: Optional[str] = None,
                        voice_vlan: Optional[bool] = None)
    func NewServiceTemplate(ctx *Context, name string, args *ServiceTemplateArgs, opts ...ResourceOption) (*ServiceTemplate, error)
    public ServiceTemplate(string name, ServiceTemplateArgs? args = null, CustomResourceOptions? opts = null)
    public ServiceTemplate(String name, ServiceTemplateArgs args)
    public ServiceTemplate(String name, ServiceTemplateArgs args, CustomResourceOptions options)
    
    type: iosxe:ServiceTemplate
    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 ServiceTemplateArgs
    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 ServiceTemplateArgs
    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 ServiceTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceTemplateArgs
    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 serviceTemplateResource = new Iosxe.ServiceTemplate("serviceTemplateResource", new()
    {
        AbsoluteTimer = 0,
        AccessGroups = new[]
        {
            new Iosxe.Inputs.ServiceTemplateAccessGroupArgs
            {
                Name = "string",
            },
        },
        Description = "string",
        Device = "string",
        DnsAclPreauth = "string",
        IanctivityTimer = 0,
        InactivityTimerProbe = false,
        InterfaceTemplates = new[]
        {
            new Iosxe.Inputs.ServiceTemplateInterfaceTemplateArgs
            {
                Name = "string",
            },
        },
        LinksecPolicy = "string",
        MdnsServicePolicy = "string",
        Name = "string",
        RedirectAppendClientMac = "string",
        RedirectAppendSwitchMac = "string",
        RedirectUrl = "string",
        RedirectUrlMatchAcl = "string",
        RedirectUrlMatchAction = "string",
        ServicePolicyQosInput = "string",
        ServicePolicyQosOutput = "string",
        Sgt = 0,
        Tags = new[]
        {
            new Iosxe.Inputs.ServiceTemplateTagArgs
            {
                Name = "string",
            },
        },
        TunnelCapwapName = "string",
        Vlan = 0,
        Vnid = "string",
        VoiceVlan = false,
    });
    
    example, err := iosxe.NewServiceTemplate(ctx, "serviceTemplateResource", &iosxe.ServiceTemplateArgs{
    	AbsoluteTimer: pulumi.Int(0),
    	AccessGroups: iosxe.ServiceTemplateAccessGroupArray{
    		&iosxe.ServiceTemplateAccessGroupArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Description:          pulumi.String("string"),
    	Device:               pulumi.String("string"),
    	DnsAclPreauth:        pulumi.String("string"),
    	IanctivityTimer:      pulumi.Int(0),
    	InactivityTimerProbe: pulumi.Bool(false),
    	InterfaceTemplates: iosxe.ServiceTemplateInterfaceTemplateArray{
    		&iosxe.ServiceTemplateInterfaceTemplateArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	LinksecPolicy:           pulumi.String("string"),
    	MdnsServicePolicy:       pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    	RedirectAppendClientMac: pulumi.String("string"),
    	RedirectAppendSwitchMac: pulumi.String("string"),
    	RedirectUrl:             pulumi.String("string"),
    	RedirectUrlMatchAcl:     pulumi.String("string"),
    	RedirectUrlMatchAction:  pulumi.String("string"),
    	ServicePolicyQosInput:   pulumi.String("string"),
    	ServicePolicyQosOutput:  pulumi.String("string"),
    	Sgt:                     pulumi.Int(0),
    	Tags: iosxe.ServiceTemplateTagArray{
    		&iosxe.ServiceTemplateTagArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	TunnelCapwapName: pulumi.String("string"),
    	Vlan:             pulumi.Int(0),
    	Vnid:             pulumi.String("string"),
    	VoiceVlan:        pulumi.Bool(false),
    })
    
    var serviceTemplateResource = new ServiceTemplate("serviceTemplateResource", ServiceTemplateArgs.builder()
        .absoluteTimer(0)
        .accessGroups(ServiceTemplateAccessGroupArgs.builder()
            .name("string")
            .build())
        .description("string")
        .device("string")
        .dnsAclPreauth("string")
        .ianctivityTimer(0)
        .inactivityTimerProbe(false)
        .interfaceTemplates(ServiceTemplateInterfaceTemplateArgs.builder()
            .name("string")
            .build())
        .linksecPolicy("string")
        .mdnsServicePolicy("string")
        .name("string")
        .redirectAppendClientMac("string")
        .redirectAppendSwitchMac("string")
        .redirectUrl("string")
        .redirectUrlMatchAcl("string")
        .redirectUrlMatchAction("string")
        .servicePolicyQosInput("string")
        .servicePolicyQosOutput("string")
        .sgt(0)
        .tags(ServiceTemplateTagArgs.builder()
            .name("string")
            .build())
        .tunnelCapwapName("string")
        .vlan(0)
        .vnid("string")
        .voiceVlan(false)
        .build());
    
    service_template_resource = iosxe.ServiceTemplate("serviceTemplateResource",
        absolute_timer=0,
        access_groups=[{
            "name": "string",
        }],
        description="string",
        device="string",
        dns_acl_preauth="string",
        ianctivity_timer=0,
        inactivity_timer_probe=False,
        interface_templates=[{
            "name": "string",
        }],
        linksec_policy="string",
        mdns_service_policy="string",
        name="string",
        redirect_append_client_mac="string",
        redirect_append_switch_mac="string",
        redirect_url="string",
        redirect_url_match_acl="string",
        redirect_url_match_action="string",
        service_policy_qos_input="string",
        service_policy_qos_output="string",
        sgt=0,
        tags=[{
            "name": "string",
        }],
        tunnel_capwap_name="string",
        vlan=0,
        vnid="string",
        voice_vlan=False)
    
    const serviceTemplateResource = new iosxe.ServiceTemplate("serviceTemplateResource", {
        absoluteTimer: 0,
        accessGroups: [{
            name: "string",
        }],
        description: "string",
        device: "string",
        dnsAclPreauth: "string",
        ianctivityTimer: 0,
        inactivityTimerProbe: false,
        interfaceTemplates: [{
            name: "string",
        }],
        linksecPolicy: "string",
        mdnsServicePolicy: "string",
        name: "string",
        redirectAppendClientMac: "string",
        redirectAppendSwitchMac: "string",
        redirectUrl: "string",
        redirectUrlMatchAcl: "string",
        redirectUrlMatchAction: "string",
        servicePolicyQosInput: "string",
        servicePolicyQosOutput: "string",
        sgt: 0,
        tags: [{
            name: "string",
        }],
        tunnelCapwapName: "string",
        vlan: 0,
        vnid: "string",
        voiceVlan: false,
    });
    
    type: iosxe:ServiceTemplate
    properties:
        absoluteTimer: 0
        accessGroups:
            - name: string
        description: string
        device: string
        dnsAclPreauth: string
        ianctivityTimer: 0
        inactivityTimerProbe: false
        interfaceTemplates:
            - name: string
        linksecPolicy: string
        mdnsServicePolicy: string
        name: string
        redirectAppendClientMac: string
        redirectAppendSwitchMac: string
        redirectUrl: string
        redirectUrlMatchAcl: string
        redirectUrlMatchAction: string
        servicePolicyQosInput: string
        servicePolicyQosOutput: string
        sgt: 0
        tags:
            - name: string
        tunnelCapwapName: string
        vlan: 0
        vnid: string
        voiceVlan: false
    

    ServiceTemplate 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 ServiceTemplate resource accepts the following input properties:

    AbsoluteTimer int
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    AccessGroups List<Lbrlabs.PulumiPackage.Iosxe.Inputs.ServiceTemplateAccessGroup>
    Access list to be applied
    Description string
    Enter a description
    Device string
    A device name from the provider configuration.
    DnsAclPreauth string
    pre-authentication
    IanctivityTimer int
    Enter a value between 1 and 65535 - Range: 1-65535
    InactivityTimerProbe bool
    ARP probe
    InterfaceTemplates List<Lbrlabs.PulumiPackage.Iosxe.Inputs.ServiceTemplateInterfaceTemplate>
    Interface template to be applied
    LinksecPolicy string
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    MdnsServicePolicy string
    mdns policy to be applied
    Name string
    Specify a template name (maximum 48 characters)
    RedirectAppendClientMac string
    Append client Mac Address in redirect URL
    RedirectAppendSwitchMac string
    Append switch Mac Address in redirect URL
    RedirectUrl string
    Specify a valid URL
    RedirectUrlMatchAcl string
    Specify the access list name
    RedirectUrlMatchAction string
    • Choices: one-time-redirect, redirect-on-no-match
    ServicePolicyQosInput string
    Configure input Qos policy
    ServicePolicyQosOutput string
    Configure output Qos policy
    Sgt int
    SGT tag - Range: 2-65519
    Tags List<Lbrlabs.PulumiPackage.Iosxe.Inputs.ServiceTemplateTag>
    tag name
    TunnelCapwapName string
    tunnel profile name
    Vlan int
    Vlan to be applied - Range: 1-4094
    Vnid string
    Vnid to be applied
    VoiceVlan bool
    Critical voice vlan
    AbsoluteTimer int
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    AccessGroups []ServiceTemplateAccessGroupArgs
    Access list to be applied
    Description string
    Enter a description
    Device string
    A device name from the provider configuration.
    DnsAclPreauth string
    pre-authentication
    IanctivityTimer int
    Enter a value between 1 and 65535 - Range: 1-65535
    InactivityTimerProbe bool
    ARP probe
    InterfaceTemplates []ServiceTemplateInterfaceTemplateArgs
    Interface template to be applied
    LinksecPolicy string
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    MdnsServicePolicy string
    mdns policy to be applied
    Name string
    Specify a template name (maximum 48 characters)
    RedirectAppendClientMac string
    Append client Mac Address in redirect URL
    RedirectAppendSwitchMac string
    Append switch Mac Address in redirect URL
    RedirectUrl string
    Specify a valid URL
    RedirectUrlMatchAcl string
    Specify the access list name
    RedirectUrlMatchAction string
    • Choices: one-time-redirect, redirect-on-no-match
    ServicePolicyQosInput string
    Configure input Qos policy
    ServicePolicyQosOutput string
    Configure output Qos policy
    Sgt int
    SGT tag - Range: 2-65519
    Tags []ServiceTemplateTagArgs
    tag name
    TunnelCapwapName string
    tunnel profile name
    Vlan int
    Vlan to be applied - Range: 1-4094
    Vnid string
    Vnid to be applied
    VoiceVlan bool
    Critical voice vlan
    absoluteTimer Integer
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    accessGroups List<ServiceTemplateAccessGroup>
    Access list to be applied
    description String
    Enter a description
    device String
    A device name from the provider configuration.
    dnsAclPreauth String
    pre-authentication
    ianctivityTimer Integer
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivityTimerProbe Boolean
    ARP probe
    interfaceTemplates List<ServiceTemplateInterfaceTemplate>
    Interface template to be applied
    linksecPolicy String
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdnsServicePolicy String
    mdns policy to be applied
    name String
    Specify a template name (maximum 48 characters)
    redirectAppendClientMac String
    Append client Mac Address in redirect URL
    redirectAppendSwitchMac String
    Append switch Mac Address in redirect URL
    redirectUrl String
    Specify a valid URL
    redirectUrlMatchAcl String
    Specify the access list name
    redirectUrlMatchAction String
    • Choices: one-time-redirect, redirect-on-no-match
    servicePolicyQosInput String
    Configure input Qos policy
    servicePolicyQosOutput String
    Configure output Qos policy
    sgt Integer
    SGT tag - Range: 2-65519
    tags List<ServiceTemplateTag>
    tag name
    tunnelCapwapName String
    tunnel profile name
    vlan Integer
    Vlan to be applied - Range: 1-4094
    vnid String
    Vnid to be applied
    voiceVlan Boolean
    Critical voice vlan
    absoluteTimer number
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    accessGroups ServiceTemplateAccessGroup[]
    Access list to be applied
    description string
    Enter a description
    device string
    A device name from the provider configuration.
    dnsAclPreauth string
    pre-authentication
    ianctivityTimer number
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivityTimerProbe boolean
    ARP probe
    interfaceTemplates ServiceTemplateInterfaceTemplate[]
    Interface template to be applied
    linksecPolicy string
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdnsServicePolicy string
    mdns policy to be applied
    name string
    Specify a template name (maximum 48 characters)
    redirectAppendClientMac string
    Append client Mac Address in redirect URL
    redirectAppendSwitchMac string
    Append switch Mac Address in redirect URL
    redirectUrl string
    Specify a valid URL
    redirectUrlMatchAcl string
    Specify the access list name
    redirectUrlMatchAction string
    • Choices: one-time-redirect, redirect-on-no-match
    servicePolicyQosInput string
    Configure input Qos policy
    servicePolicyQosOutput string
    Configure output Qos policy
    sgt number
    SGT tag - Range: 2-65519
    tags ServiceTemplateTag[]
    tag name
    tunnelCapwapName string
    tunnel profile name
    vlan number
    Vlan to be applied - Range: 1-4094
    vnid string
    Vnid to be applied
    voiceVlan boolean
    Critical voice vlan
    absolute_timer int
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    access_groups Sequence[ServiceTemplateAccessGroupArgs]
    Access list to be applied
    description str
    Enter a description
    device str
    A device name from the provider configuration.
    dns_acl_preauth str
    pre-authentication
    ianctivity_timer int
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivity_timer_probe bool
    ARP probe
    interface_templates Sequence[ServiceTemplateInterfaceTemplateArgs]
    Interface template to be applied
    linksec_policy str
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdns_service_policy str
    mdns policy to be applied
    name str
    Specify a template name (maximum 48 characters)
    redirect_append_client_mac str
    Append client Mac Address in redirect URL
    redirect_append_switch_mac str
    Append switch Mac Address in redirect URL
    redirect_url str
    Specify a valid URL
    redirect_url_match_acl str
    Specify the access list name
    redirect_url_match_action str
    • Choices: one-time-redirect, redirect-on-no-match
    service_policy_qos_input str
    Configure input Qos policy
    service_policy_qos_output str
    Configure output Qos policy
    sgt int
    SGT tag - Range: 2-65519
    tags Sequence[ServiceTemplateTagArgs]
    tag name
    tunnel_capwap_name str
    tunnel profile name
    vlan int
    Vlan to be applied - Range: 1-4094
    vnid str
    Vnid to be applied
    voice_vlan bool
    Critical voice vlan
    absoluteTimer Number
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    accessGroups List<Property Map>
    Access list to be applied
    description String
    Enter a description
    device String
    A device name from the provider configuration.
    dnsAclPreauth String
    pre-authentication
    ianctivityTimer Number
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivityTimerProbe Boolean
    ARP probe
    interfaceTemplates List<Property Map>
    Interface template to be applied
    linksecPolicy String
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdnsServicePolicy String
    mdns policy to be applied
    name String
    Specify a template name (maximum 48 characters)
    redirectAppendClientMac String
    Append client Mac Address in redirect URL
    redirectAppendSwitchMac String
    Append switch Mac Address in redirect URL
    redirectUrl String
    Specify a valid URL
    redirectUrlMatchAcl String
    Specify the access list name
    redirectUrlMatchAction String
    • Choices: one-time-redirect, redirect-on-no-match
    servicePolicyQosInput String
    Configure input Qos policy
    servicePolicyQosOutput String
    Configure output Qos policy
    sgt Number
    SGT tag - Range: 2-65519
    tags List<Property Map>
    tag name
    tunnelCapwapName String
    tunnel profile name
    vlan Number
    Vlan to be applied - Range: 1-4094
    vnid String
    Vnid to be applied
    voiceVlan Boolean
    Critical voice vlan

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceTemplate 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 ServiceTemplate Resource

    Get an existing ServiceTemplate 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?: ServiceTemplateState, opts?: CustomResourceOptions): ServiceTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            absolute_timer: Optional[int] = None,
            access_groups: Optional[Sequence[ServiceTemplateAccessGroupArgs]] = None,
            description: Optional[str] = None,
            device: Optional[str] = None,
            dns_acl_preauth: Optional[str] = None,
            ianctivity_timer: Optional[int] = None,
            inactivity_timer_probe: Optional[bool] = None,
            interface_templates: Optional[Sequence[ServiceTemplateInterfaceTemplateArgs]] = None,
            linksec_policy: Optional[str] = None,
            mdns_service_policy: Optional[str] = None,
            name: Optional[str] = None,
            redirect_append_client_mac: Optional[str] = None,
            redirect_append_switch_mac: Optional[str] = None,
            redirect_url: Optional[str] = None,
            redirect_url_match_acl: Optional[str] = None,
            redirect_url_match_action: Optional[str] = None,
            service_policy_qos_input: Optional[str] = None,
            service_policy_qos_output: Optional[str] = None,
            sgt: Optional[int] = None,
            tags: Optional[Sequence[ServiceTemplateTagArgs]] = None,
            tunnel_capwap_name: Optional[str] = None,
            vlan: Optional[int] = None,
            vnid: Optional[str] = None,
            voice_vlan: Optional[bool] = None) -> ServiceTemplate
    func GetServiceTemplate(ctx *Context, name string, id IDInput, state *ServiceTemplateState, opts ...ResourceOption) (*ServiceTemplate, error)
    public static ServiceTemplate Get(string name, Input<string> id, ServiceTemplateState? state, CustomResourceOptions? opts = null)
    public static ServiceTemplate get(String name, Output<String> id, ServiceTemplateState 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:
    AbsoluteTimer int
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    AccessGroups List<Lbrlabs.PulumiPackage.Iosxe.Inputs.ServiceTemplateAccessGroup>
    Access list to be applied
    Description string
    Enter a description
    Device string
    A device name from the provider configuration.
    DnsAclPreauth string
    pre-authentication
    IanctivityTimer int
    Enter a value between 1 and 65535 - Range: 1-65535
    InactivityTimerProbe bool
    ARP probe
    InterfaceTemplates List<Lbrlabs.PulumiPackage.Iosxe.Inputs.ServiceTemplateInterfaceTemplate>
    Interface template to be applied
    LinksecPolicy string
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    MdnsServicePolicy string
    mdns policy to be applied
    Name string
    Specify a template name (maximum 48 characters)
    RedirectAppendClientMac string
    Append client Mac Address in redirect URL
    RedirectAppendSwitchMac string
    Append switch Mac Address in redirect URL
    RedirectUrl string
    Specify a valid URL
    RedirectUrlMatchAcl string
    Specify the access list name
    RedirectUrlMatchAction string
    • Choices: one-time-redirect, redirect-on-no-match
    ServicePolicyQosInput string
    Configure input Qos policy
    ServicePolicyQosOutput string
    Configure output Qos policy
    Sgt int
    SGT tag - Range: 2-65519
    Tags List<Lbrlabs.PulumiPackage.Iosxe.Inputs.ServiceTemplateTag>
    tag name
    TunnelCapwapName string
    tunnel profile name
    Vlan int
    Vlan to be applied - Range: 1-4094
    Vnid string
    Vnid to be applied
    VoiceVlan bool
    Critical voice vlan
    AbsoluteTimer int
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    AccessGroups []ServiceTemplateAccessGroupArgs
    Access list to be applied
    Description string
    Enter a description
    Device string
    A device name from the provider configuration.
    DnsAclPreauth string
    pre-authentication
    IanctivityTimer int
    Enter a value between 1 and 65535 - Range: 1-65535
    InactivityTimerProbe bool
    ARP probe
    InterfaceTemplates []ServiceTemplateInterfaceTemplateArgs
    Interface template to be applied
    LinksecPolicy string
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    MdnsServicePolicy string
    mdns policy to be applied
    Name string
    Specify a template name (maximum 48 characters)
    RedirectAppendClientMac string
    Append client Mac Address in redirect URL
    RedirectAppendSwitchMac string
    Append switch Mac Address in redirect URL
    RedirectUrl string
    Specify a valid URL
    RedirectUrlMatchAcl string
    Specify the access list name
    RedirectUrlMatchAction string
    • Choices: one-time-redirect, redirect-on-no-match
    ServicePolicyQosInput string
    Configure input Qos policy
    ServicePolicyQosOutput string
    Configure output Qos policy
    Sgt int
    SGT tag - Range: 2-65519
    Tags []ServiceTemplateTagArgs
    tag name
    TunnelCapwapName string
    tunnel profile name
    Vlan int
    Vlan to be applied - Range: 1-4094
    Vnid string
    Vnid to be applied
    VoiceVlan bool
    Critical voice vlan
    absoluteTimer Integer
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    accessGroups List<ServiceTemplateAccessGroup>
    Access list to be applied
    description String
    Enter a description
    device String
    A device name from the provider configuration.
    dnsAclPreauth String
    pre-authentication
    ianctivityTimer Integer
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivityTimerProbe Boolean
    ARP probe
    interfaceTemplates List<ServiceTemplateInterfaceTemplate>
    Interface template to be applied
    linksecPolicy String
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdnsServicePolicy String
    mdns policy to be applied
    name String
    Specify a template name (maximum 48 characters)
    redirectAppendClientMac String
    Append client Mac Address in redirect URL
    redirectAppendSwitchMac String
    Append switch Mac Address in redirect URL
    redirectUrl String
    Specify a valid URL
    redirectUrlMatchAcl String
    Specify the access list name
    redirectUrlMatchAction String
    • Choices: one-time-redirect, redirect-on-no-match
    servicePolicyQosInput String
    Configure input Qos policy
    servicePolicyQosOutput String
    Configure output Qos policy
    sgt Integer
    SGT tag - Range: 2-65519
    tags List<ServiceTemplateTag>
    tag name
    tunnelCapwapName String
    tunnel profile name
    vlan Integer
    Vlan to be applied - Range: 1-4094
    vnid String
    Vnid to be applied
    voiceVlan Boolean
    Critical voice vlan
    absoluteTimer number
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    accessGroups ServiceTemplateAccessGroup[]
    Access list to be applied
    description string
    Enter a description
    device string
    A device name from the provider configuration.
    dnsAclPreauth string
    pre-authentication
    ianctivityTimer number
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivityTimerProbe boolean
    ARP probe
    interfaceTemplates ServiceTemplateInterfaceTemplate[]
    Interface template to be applied
    linksecPolicy string
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdnsServicePolicy string
    mdns policy to be applied
    name string
    Specify a template name (maximum 48 characters)
    redirectAppendClientMac string
    Append client Mac Address in redirect URL
    redirectAppendSwitchMac string
    Append switch Mac Address in redirect URL
    redirectUrl string
    Specify a valid URL
    redirectUrlMatchAcl string
    Specify the access list name
    redirectUrlMatchAction string
    • Choices: one-time-redirect, redirect-on-no-match
    servicePolicyQosInput string
    Configure input Qos policy
    servicePolicyQosOutput string
    Configure output Qos policy
    sgt number
    SGT tag - Range: 2-65519
    tags ServiceTemplateTag[]
    tag name
    tunnelCapwapName string
    tunnel profile name
    vlan number
    Vlan to be applied - Range: 1-4094
    vnid string
    Vnid to be applied
    voiceVlan boolean
    Critical voice vlan
    absolute_timer int
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    access_groups Sequence[ServiceTemplateAccessGroupArgs]
    Access list to be applied
    description str
    Enter a description
    device str
    A device name from the provider configuration.
    dns_acl_preauth str
    pre-authentication
    ianctivity_timer int
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivity_timer_probe bool
    ARP probe
    interface_templates Sequence[ServiceTemplateInterfaceTemplateArgs]
    Interface template to be applied
    linksec_policy str
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdns_service_policy str
    mdns policy to be applied
    name str
    Specify a template name (maximum 48 characters)
    redirect_append_client_mac str
    Append client Mac Address in redirect URL
    redirect_append_switch_mac str
    Append switch Mac Address in redirect URL
    redirect_url str
    Specify a valid URL
    redirect_url_match_acl str
    Specify the access list name
    redirect_url_match_action str
    • Choices: one-time-redirect, redirect-on-no-match
    service_policy_qos_input str
    Configure input Qos policy
    service_policy_qos_output str
    Configure output Qos policy
    sgt int
    SGT tag - Range: 2-65519
    tags Sequence[ServiceTemplateTagArgs]
    tag name
    tunnel_capwap_name str
    tunnel profile name
    vlan int
    Vlan to be applied - Range: 1-4094
    vnid str
    Vnid to be applied
    voice_vlan bool
    Critical voice vlan
    absoluteTimer Number
    Enter a value between 1 and 1073741823 - Range: 1-1073741823
    accessGroups List<Property Map>
    Access list to be applied
    description String
    Enter a description
    device String
    A device name from the provider configuration.
    dnsAclPreauth String
    pre-authentication
    ianctivityTimer Number
    Enter a value between 1 and 65535 - Range: 1-65535
    inactivityTimerProbe Boolean
    ARP probe
    interfaceTemplates List<Property Map>
    Interface template to be applied
    linksecPolicy String
    Set the link security policy - Choices: must-not-secure, must-secure, should-secure
    mdnsServicePolicy String
    mdns policy to be applied
    name String
    Specify a template name (maximum 48 characters)
    redirectAppendClientMac String
    Append client Mac Address in redirect URL
    redirectAppendSwitchMac String
    Append switch Mac Address in redirect URL
    redirectUrl String
    Specify a valid URL
    redirectUrlMatchAcl String
    Specify the access list name
    redirectUrlMatchAction String
    • Choices: one-time-redirect, redirect-on-no-match
    servicePolicyQosInput String
    Configure input Qos policy
    servicePolicyQosOutput String
    Configure output Qos policy
    sgt Number
    SGT tag - Range: 2-65519
    tags List<Property Map>
    tag name
    tunnelCapwapName String
    tunnel profile name
    vlan Number
    Vlan to be applied - Range: 1-4094
    vnid String
    Vnid to be applied
    voiceVlan Boolean
    Critical voice vlan

    Supporting Types

    ServiceTemplateAccessGroup, ServiceTemplateAccessGroupArgs

    Name string
    Name string
    name String
    name string
    name str
    name String

    ServiceTemplateInterfaceTemplate, ServiceTemplateInterfaceTemplateArgs

    Name string
    Name string
    name String
    name string
    name str
    name String

    ServiceTemplateTag, ServiceTemplateTagArgs

    Name string
    Name string
    name String
    name string
    name str
    name String

    Import

     $ pulumi import iosxe:index/serviceTemplate:ServiceTemplate example "Cisco-IOS-XE-native:native/Cisco-IOS-XE-switch:service-template=MY_TEMPLATE"
    

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

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs