iosxe.ServiceTemplate
Explore with Pulumi AI
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:
- Absolute
Timer int - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- Access
Groups List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Service Template Access Group> - Access list to be applied
- Description string
- Enter a description
- Device string
- A device name from the provider configuration.
- Dns
Acl stringPreauth - pre-authentication
- Ianctivity
Timer int - Enter a value between 1 and 65535 - Range:
1
-65535
- Inactivity
Timer boolProbe - ARP probe
- Interface
Templates List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Service Template Interface Template> - Interface template to be applied
- Linksec
Policy string - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- Mdns
Service stringPolicy - mdns policy to be applied
- Name string
- Specify a template name (maximum 48 characters)
- Redirect
Append stringClient Mac - Append client Mac Address in redirect URL
- Redirect
Append stringSwitch Mac - Append switch Mac Address in redirect URL
- Redirect
Url string - Specify a valid URL
- Redirect
Url stringMatch Acl - Specify the access list name
- Redirect
Url stringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- Service
Policy stringQos Input - Configure input Qos policy
- Service
Policy stringQos Output - Configure output Qos policy
- Sgt int
- SGT tag - Range:
2
-65519
- List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Service Template Tag> - tag name
- Tunnel
Capwap stringName - tunnel profile name
- Vlan int
- Vlan to be applied - Range:
1
-4094
- Vnid string
- Vnid to be applied
- Voice
Vlan bool - Critical voice vlan
- Absolute
Timer int - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- Access
Groups []ServiceTemplate Access Group Args - Access list to be applied
- Description string
- Enter a description
- Device string
- A device name from the provider configuration.
- Dns
Acl stringPreauth - pre-authentication
- Ianctivity
Timer int - Enter a value between 1 and 65535 - Range:
1
-65535
- Inactivity
Timer boolProbe - ARP probe
- Interface
Templates []ServiceTemplate Interface Template Args - Interface template to be applied
- Linksec
Policy string - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- Mdns
Service stringPolicy - mdns policy to be applied
- Name string
- Specify a template name (maximum 48 characters)
- Redirect
Append stringClient Mac - Append client Mac Address in redirect URL
- Redirect
Append stringSwitch Mac - Append switch Mac Address in redirect URL
- Redirect
Url string - Specify a valid URL
- Redirect
Url stringMatch Acl - Specify the access list name
- Redirect
Url stringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- Service
Policy stringQos Input - Configure input Qos policy
- Service
Policy stringQos Output - Configure output Qos policy
- Sgt int
- SGT tag - Range:
2
-65519
- []Service
Template Tag Args - tag name
- Tunnel
Capwap stringName - tunnel profile name
- Vlan int
- Vlan to be applied - Range:
1
-4094
- Vnid string
- Vnid to be applied
- Voice
Vlan bool - Critical voice vlan
- absolute
Timer Integer - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access
Groups List<ServiceTemplate Access Group> - Access list to be applied
- description String
- Enter a description
- device String
- A device name from the provider configuration.
- dns
Acl StringPreauth - pre-authentication
- ianctivity
Timer Integer - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity
Timer BooleanProbe - ARP probe
- interface
Templates List<ServiceTemplate Interface Template> - Interface template to be applied
- linksec
Policy String - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns
Service StringPolicy - mdns policy to be applied
- name String
- Specify a template name (maximum 48 characters)
- redirect
Append StringClient Mac - Append client Mac Address in redirect URL
- redirect
Append StringSwitch Mac - Append switch Mac Address in redirect URL
- redirect
Url String - Specify a valid URL
- redirect
Url StringMatch Acl - Specify the access list name
- redirect
Url StringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service
Policy StringQos Input - Configure input Qos policy
- service
Policy StringQos Output - Configure output Qos policy
- sgt Integer
- SGT tag - Range:
2
-65519
- List<Service
Template Tag> - tag name
- tunnel
Capwap StringName - tunnel profile name
- vlan Integer
- Vlan to be applied - Range:
1
-4094
- vnid String
- Vnid to be applied
- voice
Vlan Boolean - Critical voice vlan
- absolute
Timer number - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access
Groups ServiceTemplate Access Group[] - Access list to be applied
- description string
- Enter a description
- device string
- A device name from the provider configuration.
- dns
Acl stringPreauth - pre-authentication
- ianctivity
Timer number - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity
Timer booleanProbe - ARP probe
- interface
Templates ServiceTemplate Interface Template[] - Interface template to be applied
- linksec
Policy string - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns
Service stringPolicy - mdns policy to be applied
- name string
- Specify a template name (maximum 48 characters)
- redirect
Append stringClient Mac - Append client Mac Address in redirect URL
- redirect
Append stringSwitch Mac - Append switch Mac Address in redirect URL
- redirect
Url string - Specify a valid URL
- redirect
Url stringMatch Acl - Specify the access list name
- redirect
Url stringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service
Policy stringQos Input - Configure input Qos policy
- service
Policy stringQos Output - Configure output Qos policy
- sgt number
- SGT tag - Range:
2
-65519
- Service
Template Tag[] - tag name
- tunnel
Capwap stringName - tunnel profile name
- vlan number
- Vlan to be applied - Range:
1
-4094
- vnid string
- Vnid to be applied
- voice
Vlan boolean - Critical voice vlan
- absolute_
timer int - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access_
groups Sequence[ServiceTemplate Access Group Args] - Access list to be applied
- description str
- Enter a description
- device str
- A device name from the provider configuration.
- dns_
acl_ strpreauth - pre-authentication
- ianctivity_
timer int - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity_
timer_ boolprobe - ARP probe
- interface_
templates Sequence[ServiceTemplate Interface Template Args] - Interface template to be applied
- linksec_
policy str - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns_
service_ strpolicy - mdns policy to be applied
- name str
- Specify a template name (maximum 48 characters)
- redirect_
append_ strclient_ mac - Append client Mac Address in redirect URL
- redirect_
append_ strswitch_ mac - Append switch Mac Address in redirect URL
- redirect_
url str - Specify a valid URL
- redirect_
url_ strmatch_ acl - Specify the access list name
- redirect_
url_ strmatch_ action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service_
policy_ strqos_ input - Configure input Qos policy
- service_
policy_ strqos_ output - Configure output Qos policy
- sgt int
- SGT tag - Range:
2
-65519
- Sequence[Service
Template Tag Args] - tag name
- tunnel_
capwap_ strname - tunnel profile name
- vlan int
- Vlan to be applied - Range:
1
-4094
- vnid str
- Vnid to be applied
- voice_
vlan bool - Critical voice vlan
- absolute
Timer Number - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access
Groups List<Property Map> - Access list to be applied
- description String
- Enter a description
- device String
- A device name from the provider configuration.
- dns
Acl StringPreauth - pre-authentication
- ianctivity
Timer Number - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity
Timer BooleanProbe - ARP probe
- interface
Templates List<Property Map> - Interface template to be applied
- linksec
Policy String - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns
Service StringPolicy - mdns policy to be applied
- name String
- Specify a template name (maximum 48 characters)
- redirect
Append StringClient Mac - Append client Mac Address in redirect URL
- redirect
Append StringSwitch Mac - Append switch Mac Address in redirect URL
- redirect
Url String - Specify a valid URL
- redirect
Url StringMatch Acl - Specify the access list name
- redirect
Url StringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service
Policy StringQos Input - Configure input Qos policy
- service
Policy StringQos Output - Configure output Qos policy
- sgt Number
- SGT tag - Range:
2
-65519
- List<Property Map>
- tag name
- tunnel
Capwap StringName - tunnel profile name
- vlan Number
- Vlan to be applied - Range:
1
-4094
- vnid String
- Vnid to be applied
- voice
Vlan 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.
- Absolute
Timer int - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- Access
Groups List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Service Template Access Group> - Access list to be applied
- Description string
- Enter a description
- Device string
- A device name from the provider configuration.
- Dns
Acl stringPreauth - pre-authentication
- Ianctivity
Timer int - Enter a value between 1 and 65535 - Range:
1
-65535
- Inactivity
Timer boolProbe - ARP probe
- Interface
Templates List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Service Template Interface Template> - Interface template to be applied
- Linksec
Policy string - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- Mdns
Service stringPolicy - mdns policy to be applied
- Name string
- Specify a template name (maximum 48 characters)
- Redirect
Append stringClient Mac - Append client Mac Address in redirect URL
- Redirect
Append stringSwitch Mac - Append switch Mac Address in redirect URL
- Redirect
Url string - Specify a valid URL
- Redirect
Url stringMatch Acl - Specify the access list name
- Redirect
Url stringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- Service
Policy stringQos Input - Configure input Qos policy
- Service
Policy stringQos Output - Configure output Qos policy
- Sgt int
- SGT tag - Range:
2
-65519
- List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Service Template Tag> - tag name
- Tunnel
Capwap stringName - tunnel profile name
- Vlan int
- Vlan to be applied - Range:
1
-4094
- Vnid string
- Vnid to be applied
- Voice
Vlan bool - Critical voice vlan
- Absolute
Timer int - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- Access
Groups []ServiceTemplate Access Group Args - Access list to be applied
- Description string
- Enter a description
- Device string
- A device name from the provider configuration.
- Dns
Acl stringPreauth - pre-authentication
- Ianctivity
Timer int - Enter a value between 1 and 65535 - Range:
1
-65535
- Inactivity
Timer boolProbe - ARP probe
- Interface
Templates []ServiceTemplate Interface Template Args - Interface template to be applied
- Linksec
Policy string - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- Mdns
Service stringPolicy - mdns policy to be applied
- Name string
- Specify a template name (maximum 48 characters)
- Redirect
Append stringClient Mac - Append client Mac Address in redirect URL
- Redirect
Append stringSwitch Mac - Append switch Mac Address in redirect URL
- Redirect
Url string - Specify a valid URL
- Redirect
Url stringMatch Acl - Specify the access list name
- Redirect
Url stringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- Service
Policy stringQos Input - Configure input Qos policy
- Service
Policy stringQos Output - Configure output Qos policy
- Sgt int
- SGT tag - Range:
2
-65519
- []Service
Template Tag Args - tag name
- Tunnel
Capwap stringName - tunnel profile name
- Vlan int
- Vlan to be applied - Range:
1
-4094
- Vnid string
- Vnid to be applied
- Voice
Vlan bool - Critical voice vlan
- absolute
Timer Integer - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access
Groups List<ServiceTemplate Access Group> - Access list to be applied
- description String
- Enter a description
- device String
- A device name from the provider configuration.
- dns
Acl StringPreauth - pre-authentication
- ianctivity
Timer Integer - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity
Timer BooleanProbe - ARP probe
- interface
Templates List<ServiceTemplate Interface Template> - Interface template to be applied
- linksec
Policy String - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns
Service StringPolicy - mdns policy to be applied
- name String
- Specify a template name (maximum 48 characters)
- redirect
Append StringClient Mac - Append client Mac Address in redirect URL
- redirect
Append StringSwitch Mac - Append switch Mac Address in redirect URL
- redirect
Url String - Specify a valid URL
- redirect
Url StringMatch Acl - Specify the access list name
- redirect
Url StringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service
Policy StringQos Input - Configure input Qos policy
- service
Policy StringQos Output - Configure output Qos policy
- sgt Integer
- SGT tag - Range:
2
-65519
- List<Service
Template Tag> - tag name
- tunnel
Capwap StringName - tunnel profile name
- vlan Integer
- Vlan to be applied - Range:
1
-4094
- vnid String
- Vnid to be applied
- voice
Vlan Boolean - Critical voice vlan
- absolute
Timer number - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access
Groups ServiceTemplate Access Group[] - Access list to be applied
- description string
- Enter a description
- device string
- A device name from the provider configuration.
- dns
Acl stringPreauth - pre-authentication
- ianctivity
Timer number - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity
Timer booleanProbe - ARP probe
- interface
Templates ServiceTemplate Interface Template[] - Interface template to be applied
- linksec
Policy string - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns
Service stringPolicy - mdns policy to be applied
- name string
- Specify a template name (maximum 48 characters)
- redirect
Append stringClient Mac - Append client Mac Address in redirect URL
- redirect
Append stringSwitch Mac - Append switch Mac Address in redirect URL
- redirect
Url string - Specify a valid URL
- redirect
Url stringMatch Acl - Specify the access list name
- redirect
Url stringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service
Policy stringQos Input - Configure input Qos policy
- service
Policy stringQos Output - Configure output Qos policy
- sgt number
- SGT tag - Range:
2
-65519
- Service
Template Tag[] - tag name
- tunnel
Capwap stringName - tunnel profile name
- vlan number
- Vlan to be applied - Range:
1
-4094
- vnid string
- Vnid to be applied
- voice
Vlan boolean - Critical voice vlan
- absolute_
timer int - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access_
groups Sequence[ServiceTemplate Access Group Args] - Access list to be applied
- description str
- Enter a description
- device str
- A device name from the provider configuration.
- dns_
acl_ strpreauth - pre-authentication
- ianctivity_
timer int - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity_
timer_ boolprobe - ARP probe
- interface_
templates Sequence[ServiceTemplate Interface Template Args] - Interface template to be applied
- linksec_
policy str - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns_
service_ strpolicy - mdns policy to be applied
- name str
- Specify a template name (maximum 48 characters)
- redirect_
append_ strclient_ mac - Append client Mac Address in redirect URL
- redirect_
append_ strswitch_ mac - Append switch Mac Address in redirect URL
- redirect_
url str - Specify a valid URL
- redirect_
url_ strmatch_ acl - Specify the access list name
- redirect_
url_ strmatch_ action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service_
policy_ strqos_ input - Configure input Qos policy
- service_
policy_ strqos_ output - Configure output Qos policy
- sgt int
- SGT tag - Range:
2
-65519
- Sequence[Service
Template Tag Args] - tag name
- tunnel_
capwap_ strname - tunnel profile name
- vlan int
- Vlan to be applied - Range:
1
-4094
- vnid str
- Vnid to be applied
- voice_
vlan bool - Critical voice vlan
- absolute
Timer Number - Enter a value between 1 and 1073741823 - Range:
1
-1073741823
- access
Groups List<Property Map> - Access list to be applied
- description String
- Enter a description
- device String
- A device name from the provider configuration.
- dns
Acl StringPreauth - pre-authentication
- ianctivity
Timer Number - Enter a value between 1 and 65535 - Range:
1
-65535
- inactivity
Timer BooleanProbe - ARP probe
- interface
Templates List<Property Map> - Interface template to be applied
- linksec
Policy String - Set the link security policy - Choices:
must-not-secure
,must-secure
,should-secure
- mdns
Service StringPolicy - mdns policy to be applied
- name String
- Specify a template name (maximum 48 characters)
- redirect
Append StringClient Mac - Append client Mac Address in redirect URL
- redirect
Append StringSwitch Mac - Append switch Mac Address in redirect URL
- redirect
Url String - Specify a valid URL
- redirect
Url StringMatch Acl - Specify the access list name
- redirect
Url StringMatch Action - Choices:
one-time-redirect
,redirect-on-no-match
- Choices:
- service
Policy StringQos Input - Configure input Qos policy
- service
Policy StringQos Output - Configure output Qos policy
- sgt Number
- SGT tag - Range:
2
-65519
- List<Property Map>
- tag name
- tunnel
Capwap StringName - tunnel profile name
- vlan Number
- Vlan to be applied - Range:
1
-4094
- vnid String
- Vnid to be applied
- voice
Vlan 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.