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

iosxe.getServiceTemplate

Explore with Pulumi AI

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

    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 pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_service_template(name="MY_TEMPLATE")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getServiceTemplate({
        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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getServiceTemplate:getServiceTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Specify a template name (maximum 48 characters)
    Device string
    A device name from the provider configuration.
    Name string
    Specify a template name (maximum 48 characters)
    Device string
    A device name from the provider configuration.
    name String
    Specify a template name (maximum 48 characters)
    device String
    A device name from the provider configuration.
    name string
    Specify a template name (maximum 48 characters)
    device string
    A device name from the provider configuration.
    name str
    Specify a template name (maximum 48 characters)
    device str
    A device name from the provider configuration.
    name String
    Specify a template name (maximum 48 characters)
    device String
    A device name from the provider configuration.

    getServiceTemplate Result

    The following output properties are available:

    AbsoluteTimer int
    Enter a value between 1 and 1073741823
    AccessGroups List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetServiceTemplateAccessGroup>
    Access list to be applied
    Description string
    Enter a description
    DnsAclPreauth string
    pre-authentication
    IanctivityTimer int
    Enter a value between 1 and 65535
    Id string
    The path of the retrieved object.
    InactivityTimerProbe bool
    ARP probe
    InterfaceTemplates List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetServiceTemplateInterfaceTemplate>
    Interface template to be applied
    LinksecPolicy string
    Set the link security policy
    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
    ServicePolicyQosInput string
    Configure input Qos policy
    ServicePolicyQosOutput string
    Configure output Qos policy
    Sgt int
    SGT tag
    Tags List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetServiceTemplateTag>
    tag name
    TunnelCapwapName string
    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 []GetServiceTemplateAccessGroup
    Access list to be applied
    Description string
    Enter a description
    DnsAclPreauth string
    pre-authentication
    IanctivityTimer int
    Enter a value between 1 and 65535
    Id string
    The path of the retrieved object.
    InactivityTimerProbe bool
    ARP probe
    InterfaceTemplates []GetServiceTemplateInterfaceTemplate
    Interface template to be applied
    LinksecPolicy string
    Set the link security policy
    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
    ServicePolicyQosInput string
    Configure input Qos policy
    ServicePolicyQosOutput string
    Configure output Qos policy
    Sgt int
    SGT tag
    Tags []GetServiceTemplateTag
    tag name
    TunnelCapwapName string
    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<GetServiceTemplateAccessGroup>
    Access list to be applied
    description String
    Enter a description
    dnsAclPreauth String
    pre-authentication
    ianctivityTimer Integer
    Enter a value between 1 and 65535
    id String
    The path of the retrieved object.
    inactivityTimerProbe Boolean
    ARP probe
    interfaceTemplates List<GetServiceTemplateInterfaceTemplate>
    Interface template to be applied
    linksecPolicy String
    Set the link security policy
    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
    servicePolicyQosInput String
    Configure input Qos policy
    servicePolicyQosOutput String
    Configure output Qos policy
    sgt Integer
    SGT tag
    tags List<GetServiceTemplateTag>
    tag name
    tunnelCapwapName String
    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 GetServiceTemplateAccessGroup[]
    Access list to be applied
    description string
    Enter a description
    dnsAclPreauth string
    pre-authentication
    ianctivityTimer number
    Enter a value between 1 and 65535
    id string
    The path of the retrieved object.
    inactivityTimerProbe boolean
    ARP probe
    interfaceTemplates GetServiceTemplateInterfaceTemplate[]
    Interface template to be applied
    linksecPolicy string
    Set the link security policy
    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
    servicePolicyQosInput string
    Configure input Qos policy
    servicePolicyQosOutput string
    Configure output Qos policy
    sgt number
    SGT tag
    tags GetServiceTemplateTag[]
    tag name
    tunnelCapwapName string
    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[GetServiceTemplateAccessGroup]
    Access list to be applied
    description str
    Enter a description
    dns_acl_preauth str
    pre-authentication
    ianctivity_timer int
    Enter a value between 1 and 65535
    id str
    The path of the retrieved object.
    inactivity_timer_probe bool
    ARP probe
    interface_templates Sequence[GetServiceTemplateInterfaceTemplate]
    Interface template to be applied
    linksec_policy str
    Set the link security policy
    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
    service_policy_qos_input str
    Configure input Qos policy
    service_policy_qos_output str
    Configure output Qos policy
    sgt int
    SGT tag
    tags Sequence[GetServiceTemplateTag]
    tag name
    tunnel_capwap_name str
    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
    dnsAclPreauth String
    pre-authentication
    ianctivityTimer Number
    Enter a value between 1 and 65535
    id String
    The path of the retrieved object.
    inactivityTimerProbe Boolean
    ARP probe
    interfaceTemplates List<Property Map>
    Interface template to be applied
    linksecPolicy String
    Set the link security policy
    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
    servicePolicyQosInput String
    Configure input Qos policy
    servicePolicyQosOutput String
    Configure output Qos policy
    sgt Number
    SGT tag
    tags List<Property Map>
    tag name
    tunnelCapwapName String
    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 iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs