Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getServiceTemplate
This data source can read the Service Template configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() => 
{
    var example = Iosxe.GetServiceTemplate.Invoke(new()
    {
        Name = "MY_TEMPLATE",
    });
});
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.LookupServiceTemplate(ctx, &iosxe.LookupServiceTemplateArgs{
			Name: "MY_TEMPLATE",
		}, nil)
		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.IosxeFunctions;
import com.pulumi.iosxe.inputs.GetServiceTemplateArgs;
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) {
        final var example = IosxeFunctions.getServiceTemplate(GetServiceTemplateArgs.builder()
            .name("MY_TEMPLATE")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getServiceTemplate({
    name: "MY_TEMPLATE",
});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_service_template(name="MY_TEMPLATE")
variables:
  example:
    fn::invoke:
      Function: iosxe:getServiceTemplate
      Arguments:
        name: MY_TEMPLATE
Using getServiceTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServiceTemplate(args: GetServiceTemplateArgs, opts?: InvokeOptions): Promise<GetServiceTemplateResult>
function getServiceTemplateOutput(args: GetServiceTemplateOutputArgs, opts?: InvokeOptions): Output<GetServiceTemplateResult>def get_service_template(device: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetServiceTemplateResult
def get_service_template_output(device: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetServiceTemplateResult]func LookupServiceTemplate(ctx *Context, args *LookupServiceTemplateArgs, opts ...InvokeOption) (*LookupServiceTemplateResult, error)
func LookupServiceTemplateOutput(ctx *Context, args *LookupServiceTemplateOutputArgs, opts ...InvokeOption) LookupServiceTemplateResultOutput> Note: This function is named LookupServiceTemplate in the Go SDK.
public static class GetServiceTemplate 
{
    public static Task<GetServiceTemplateResult> InvokeAsync(GetServiceTemplateArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceTemplateResult> Invoke(GetServiceTemplateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceTemplateResult> getServiceTemplate(GetServiceTemplateArgs args, InvokeOptions options)
public static Output<GetServiceTemplateResult> getServiceTemplate(GetServiceTemplateArgs args, InvokeOptions options)
fn::invoke:
  function: iosxe:index/getServiceTemplate:getServiceTemplate
  arguments:
    # arguments dictionaryThe following arguments are supported:
getServiceTemplate Result
The following output properties are available:
- AbsoluteTimer int
- Enter a value between 1 and 1073741823
- AccessGroups List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Service Template Access Group> 
- Access list to be applied
- Description string
- Enter a description
- DnsAcl stringPreauth 
- pre-authentication
- IanctivityTimer int
- Enter a value between 1 and 65535
- Id string
- The path of the retrieved object.
- InactivityTimer boolProbe 
- ARP probe
- InterfaceTemplates List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Service Template Interface Template> 
- Interface template to be applied
- LinksecPolicy string
- Set the link security policy
- MdnsService stringPolicy 
- mdns policy to be applied
- Name string
- Specify a template name (maximum 48 characters)
- RedirectAppend stringClient Mac 
- Append client Mac Address in redirect URL
- RedirectAppend stringSwitch Mac 
- Append switch Mac Address in redirect URL
- RedirectUrl string
- Specify a valid URL
- RedirectUrl stringMatch Acl 
- Specify the access list name
- RedirectUrl stringMatch Action 
- ServicePolicy stringQos Input 
- Configure input Qos policy
- ServicePolicy stringQos Output 
- Configure output Qos policy
- Sgt int
- SGT tag
- 
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Service Template Tag> 
- tag name
- TunnelCapwap stringName 
- tunnel profile name
- Vlan int
- Vlan to be applied
- Vnid string
- Vnid to be applied
- VoiceVlan bool
- Critical voice vlan
- Device string
- A device name from the provider configuration.
- AbsoluteTimer int
- Enter a value between 1 and 1073741823
- AccessGroups []GetService Template Access Group 
- Access list to be applied
- Description string
- Enter a description
- DnsAcl stringPreauth 
- pre-authentication
- IanctivityTimer int
- Enter a value between 1 and 65535
- Id string
- The path of the retrieved object.
- InactivityTimer boolProbe 
- ARP probe
- InterfaceTemplates []GetService Template Interface Template 
- Interface template to be applied
- LinksecPolicy string
- Set the link security policy
- MdnsService stringPolicy 
- mdns policy to be applied
- Name string
- Specify a template name (maximum 48 characters)
- RedirectAppend stringClient Mac 
- Append client Mac Address in redirect URL
- RedirectAppend stringSwitch Mac 
- Append switch Mac Address in redirect URL
- RedirectUrl string
- Specify a valid URL
- RedirectUrl stringMatch Acl 
- Specify the access list name
- RedirectUrl stringMatch Action 
- ServicePolicy stringQos Input 
- Configure input Qos policy
- ServicePolicy stringQos Output 
- Configure output Qos policy
- Sgt int
- SGT tag
- 
[]GetService Template Tag 
- tag name
- TunnelCapwap stringName 
- tunnel profile name
- Vlan int
- Vlan to be applied
- Vnid string
- Vnid to be applied
- VoiceVlan bool
- Critical voice vlan
- Device string
- A device name from the provider configuration.
- absoluteTimer Integer
- Enter a value between 1 and 1073741823
- accessGroups List<GetService Template Access Group> 
- Access list to be applied
- description String
- Enter a description
- dnsAcl StringPreauth 
- pre-authentication
- ianctivityTimer Integer
- Enter a value between 1 and 65535
- id String
- The path of the retrieved object.
- inactivityTimer BooleanProbe 
- ARP probe
- interfaceTemplates List<GetService Template Interface Template> 
- Interface template to be applied
- linksecPolicy String
- Set the link security policy
- mdnsService StringPolicy 
- mdns policy to be applied
- name String
- Specify a template name (maximum 48 characters)
- redirectAppend StringClient Mac 
- Append client Mac Address in redirect URL
- redirectAppend StringSwitch Mac 
- Append switch Mac Address in redirect URL
- redirectUrl String
- Specify a valid URL
- redirectUrl StringMatch Acl 
- Specify the access list name
- redirectUrl StringMatch Action 
- servicePolicy StringQos Input 
- Configure input Qos policy
- servicePolicy StringQos Output 
- Configure output Qos policy
- sgt Integer
- SGT tag
- 
List<GetService Template Tag> 
- tag name
- tunnelCapwap StringName 
- tunnel profile name
- vlan Integer
- Vlan to be applied
- vnid String
- Vnid to be applied
- voiceVlan Boolean
- Critical voice vlan
- device String
- A device name from the provider configuration.
- absoluteTimer number
- Enter a value between 1 and 1073741823
- accessGroups GetService Template Access Group[] 
- Access list to be applied
- description string
- Enter a description
- dnsAcl stringPreauth 
- pre-authentication
- ianctivityTimer number
- Enter a value between 1 and 65535
- id string
- The path of the retrieved object.
- inactivityTimer booleanProbe 
- ARP probe
- interfaceTemplates GetService Template Interface Template[] 
- Interface template to be applied
- linksecPolicy string
- Set the link security policy
- mdnsService stringPolicy 
- mdns policy to be applied
- name string
- Specify a template name (maximum 48 characters)
- redirectAppend stringClient Mac 
- Append client Mac Address in redirect URL
- redirectAppend stringSwitch Mac 
- Append switch Mac Address in redirect URL
- redirectUrl string
- Specify a valid URL
- redirectUrl stringMatch Acl 
- Specify the access list name
- redirectUrl stringMatch Action 
- servicePolicy stringQos Input 
- Configure input Qos policy
- servicePolicy stringQos Output 
- Configure output Qos policy
- sgt number
- SGT tag
- 
GetService Template Tag[] 
- tag name
- tunnelCapwap stringName 
- tunnel profile name
- vlan number
- Vlan to be applied
- vnid string
- Vnid to be applied
- voiceVlan boolean
- Critical voice vlan
- device string
- A device name from the provider configuration.
- absolute_timer int
- Enter a value between 1 and 1073741823
- access_groups Sequence[GetService Template Access Group] 
- Access list to be applied
- description str
- Enter a description
- dns_acl_ strpreauth 
- pre-authentication
- ianctivity_timer int
- Enter a value between 1 and 65535
- id str
- The path of the retrieved object.
- inactivity_timer_ boolprobe 
- ARP probe
- interface_templates Sequence[GetService Template Interface Template] 
- Interface template to be applied
- linksec_policy str
- Set the link security policy
- 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 
- service_policy_ strqos_ input 
- Configure input Qos policy
- service_policy_ strqos_ output 
- Configure output Qos policy
- sgt int
- SGT tag
- 
Sequence[GetService Template Tag] 
- tag name
- tunnel_capwap_ strname 
- tunnel profile name
- vlan int
- Vlan to be applied
- vnid str
- Vnid to be applied
- voice_vlan bool
- Critical voice vlan
- device str
- A device name from the provider configuration.
- absoluteTimer Number
- Enter a value between 1 and 1073741823
- accessGroups List<Property Map>
- Access list to be applied
- description String
- Enter a description
- dnsAcl StringPreauth 
- pre-authentication
- ianctivityTimer Number
- Enter a value between 1 and 65535
- id String
- The path of the retrieved object.
- inactivityTimer BooleanProbe 
- ARP probe
- interfaceTemplates List<Property Map>
- Interface template to be applied
- linksecPolicy String
- Set the link security policy
- mdnsService StringPolicy 
- mdns policy to be applied
- name String
- Specify a template name (maximum 48 characters)
- redirectAppend StringClient Mac 
- Append client Mac Address in redirect URL
- redirectAppend StringSwitch Mac 
- Append switch Mac Address in redirect URL
- redirectUrl String
- Specify a valid URL
- redirectUrl StringMatch Acl 
- Specify the access list name
- redirectUrl StringMatch Action 
- servicePolicy StringQos Input 
- Configure input Qos policy
- servicePolicy StringQos Output 
- Configure output Qos policy
- sgt Number
- SGT tag
- List<Property Map>
- tag name
- tunnelCapwap StringName 
- tunnel profile name
- vlan Number
- Vlan to be applied
- vnid String
- Vnid to be applied
- voiceVlan Boolean
- Critical voice vlan
- device String
- A device name from the provider configuration.
Supporting Types
GetServiceTemplateAccessGroup    
- Name string
- Specify the access list name
- Name string
- Specify the access list name
- name String
- Specify the access list name
- name string
- Specify the access list name
- name str
- Specify the access list name
- name String
- Specify the access list name
GetServiceTemplateInterfaceTemplate    
- Name string
- Enter name of interface template
- Name string
- Enter name of interface template
- name String
- Enter name of interface template
- name string
- Enter name of interface template
- name str
- Enter name of interface template
- name String
- Enter name of interface template
GetServiceTemplateTag   
- Name string
- Specify the Tag name
- Name string
- Specify the Tag name
- name String
- Specify the Tag name
- name string
- Specify the Tag name
- name str
- Specify the Tag name
- name String
- Specify the Tag name
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the iosxeTerraform Provider.
