Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getServiceTemplate
Explore with Pulumi AI
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:
getServiceTemplate Result
The following output properties are available:
- Absolute
Timer int - Enter a value between 1 and 1073741823
- Access
Groups List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Service Template Access Group> - Access list to be applied
- Description string
- Enter a description
- Dns
Acl stringPreauth - pre-authentication
- Ianctivity
Timer int - Enter a value between 1 and 65535
- Id string
- The path of the retrieved object.
- Inactivity
Timer boolProbe - ARP probe
- Interface
Templates List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Service Template Interface Template> - Interface template to be applied
- Linksec
Policy string - Set the link security policy
- 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 - Service
Policy stringQos Input - Configure input Qos policy
- Service
Policy stringQos Output - Configure output Qos policy
- Sgt int
- SGT tag
- List<Lbrlabs.
Pulumi Package. Iosxe. Outputs. Get Service Template Tag> - tag name
- Tunnel
Capwap stringName - tunnel profile name
- Vlan int
- Vlan to be applied
- Vnid string
- Vnid to be applied
- Voice
Vlan bool - Critical voice vlan
- Device string
- A device name from the provider configuration.
- Absolute
Timer int - Enter a value between 1 and 1073741823
- Access
Groups []GetService Template Access Group - Access list to be applied
- Description string
- Enter a description
- Dns
Acl stringPreauth - pre-authentication
- Ianctivity
Timer int - Enter a value between 1 and 65535
- Id string
- The path of the retrieved object.
- Inactivity
Timer boolProbe - ARP probe
- Interface
Templates []GetService Template Interface Template - Interface template to be applied
- Linksec
Policy string - Set the link security policy
- 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 - Service
Policy stringQos Input - Configure input Qos policy
- Service
Policy stringQos Output - Configure output Qos policy
- Sgt int
- SGT tag
- []Get
Service Template Tag - tag name
- Tunnel
Capwap stringName - tunnel profile name
- Vlan int
- Vlan to be applied
- Vnid string
- Vnid to be applied
- Voice
Vlan bool - Critical voice vlan
- Device string
- A device name from the provider configuration.
- absolute
Timer Integer - Enter a value between 1 and 1073741823
- access
Groups List<GetService Template Access Group> - Access list to be applied
- description String
- Enter a description
- dns
Acl StringPreauth - pre-authentication
- ianctivity
Timer Integer - Enter a value between 1 and 65535
- id String
- The path of the retrieved object.
- inactivity
Timer BooleanProbe - ARP probe
- interface
Templates List<GetService Template Interface Template> - Interface template to be applied
- linksec
Policy String - Set the link security policy
- 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 - service
Policy StringQos Input - Configure input Qos policy
- service
Policy StringQos Output - Configure output Qos policy
- sgt Integer
- SGT tag
- List<Get
Service Template Tag> - tag name
- tunnel
Capwap StringName - tunnel profile name
- vlan Integer
- Vlan to be applied
- vnid String
- Vnid to be applied
- voice
Vlan Boolean - Critical voice vlan
- device String
- A device name from the provider configuration.
- absolute
Timer number - Enter a value between 1 and 1073741823
- access
Groups GetService Template Access Group[] - Access list to be applied
- description string
- Enter a description
- dns
Acl stringPreauth - pre-authentication
- ianctivity
Timer number - Enter a value between 1 and 65535
- id string
- The path of the retrieved object.
- inactivity
Timer booleanProbe - ARP probe
- interface
Templates GetService Template Interface Template[] - Interface template to be applied
- linksec
Policy string - Set the link security policy
- 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 - service
Policy stringQos Input - Configure input Qos policy
- service
Policy stringQos Output - Configure output Qos policy
- sgt number
- SGT tag
- Get
Service Template Tag[] - tag name
- tunnel
Capwap stringName - tunnel profile name
- vlan number
- Vlan to be applied
- vnid string
- Vnid to be applied
- voice
Vlan 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[Get
Service 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.
- absolute
Timer Number - Enter a value between 1 and 1073741823
- access
Groups List<Property Map> - Access list to be applied
- description String
- Enter a description
- dns
Acl StringPreauth - pre-authentication
- ianctivity
Timer Number - Enter a value between 1 and 65535
- id String
- The path of the retrieved object.
- inactivity
Timer BooleanProbe - ARP probe
- interface
Templates List<Property Map> - Interface template to be applied
- linksec
Policy String - Set the link security policy
- 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 - service
Policy StringQos Input - Configure input Qos policy
- service
Policy StringQos Output - Configure output Qos policy
- sgt Number
- SGT tag
- List<Property Map>
- tag name
- tunnel
Capwap StringName - tunnel profile name
- vlan Number
- Vlan to be applied
- vnid String
- Vnid to be applied
- voice
Vlan 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.