1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getTunnelInterface
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm logo
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi

    TunnelInterface data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Look up tunnel interface by its ID.
    const scmTunnelIntfDs = scm.getTunnelInterface({
        id: "ddad1e64-0b64-41a4-b361-c6191169a8f1",
    });
    export const scmTunnelInterfaceDataSourceResults = {
        id: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.id),
        name: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.name),
        comment: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.comment),
        ip: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.ips),
        folder: scmTunnelIntfDs.then(scmTunnelIntfDs => scmTunnelIntfDs.folder),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    # Look up tunnel interface by its ID.
    scm_tunnel_intf_ds = scm.get_tunnel_interface(id="ddad1e64-0b64-41a4-b361-c6191169a8f1")
    pulumi.export("scmTunnelInterfaceDataSourceResults", {
        "id": scm_tunnel_intf_ds.id,
        "name": scm_tunnel_intf_ds.name,
        "comment": scm_tunnel_intf_ds.comment,
        "ip": scm_tunnel_intf_ds.ips,
        "folder": scm_tunnel_intf_ds.folder,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-scm/sdk/go/scm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Look up tunnel interface by its ID.
    		scmTunnelIntfDs, err := scm.LookupTunnelInterface(ctx, &scm.LookupTunnelInterfaceArgs{
    			Id: "ddad1e64-0b64-41a4-b361-c6191169a8f1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmTunnelInterfaceDataSourceResults", pulumi.Map{
    			"id":      scmTunnelIntfDs.Id,
    			"name":    scmTunnelIntfDs.Name,
    			"comment": scmTunnelIntfDs.Comment,
    			"ip":      scmTunnelIntfDs.Ips,
    			"folder":  scmTunnelIntfDs.Folder,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Look up tunnel interface by its ID.
        var scmTunnelIntfDs = Scm.GetTunnelInterface.Invoke(new()
        {
            Id = "ddad1e64-0b64-41a4-b361-c6191169a8f1",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmTunnelInterfaceDataSourceResults"] = 
            {
                { "id", scmTunnelIntfDs.Apply(getTunnelInterfaceResult => getTunnelInterfaceResult.Id) },
                { "name", scmTunnelIntfDs.Apply(getTunnelInterfaceResult => getTunnelInterfaceResult.Name) },
                { "comment", scmTunnelIntfDs.Apply(getTunnelInterfaceResult => getTunnelInterfaceResult.Comment) },
                { "ip", scmTunnelIntfDs.Apply(getTunnelInterfaceResult => getTunnelInterfaceResult.Ips) },
                { "folder", scmTunnelIntfDs.Apply(getTunnelInterfaceResult => getTunnelInterfaceResult.Folder) },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scm.ScmFunctions;
    import com.pulumi.scm.inputs.GetTunnelInterfaceArgs;
    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) {
            // Look up tunnel interface by its ID.
            final var scmTunnelIntfDs = ScmFunctions.getTunnelInterface(GetTunnelInterfaceArgs.builder()
                .id("ddad1e64-0b64-41a4-b361-c6191169a8f1")
                .build());
    
            ctx.export("scmTunnelInterfaceDataSourceResults", Map.ofEntries(
                Map.entry("id", scmTunnelIntfDs.id()),
                Map.entry("name", scmTunnelIntfDs.name()),
                Map.entry("comment", scmTunnelIntfDs.comment()),
                Map.entry("ip", scmTunnelIntfDs.ips()),
                Map.entry("folder", scmTunnelIntfDs.folder())
            ));
        }
    }
    
    variables:
      # Look up tunnel interface by its ID.
      scmTunnelIntfDs:
        fn::invoke:
          function: scm:getTunnelInterface
          arguments:
            id: ddad1e64-0b64-41a4-b361-c6191169a8f1
    outputs:
      # Output various attributes from the found tunnel interface to verify the lookups were successful.
      scmTunnelInterfaceDataSourceResults:
        id: ${scmTunnelIntfDs.id}
        name: ${scmTunnelIntfDs.name}
        comment: ${scmTunnelIntfDs.comment}
        ip: ${scmTunnelIntfDs.ips}
        folder: ${scmTunnelIntfDs.folder}
    

    Using getTunnelInterface

    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 getTunnelInterface(args: GetTunnelInterfaceArgs, opts?: InvokeOptions): Promise<GetTunnelInterfaceResult>
    function getTunnelInterfaceOutput(args: GetTunnelInterfaceOutputArgs, opts?: InvokeOptions): Output<GetTunnelInterfaceResult>
    def get_tunnel_interface(id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetTunnelInterfaceResult
    def get_tunnel_interface_output(id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetTunnelInterfaceResult]
    func LookupTunnelInterface(ctx *Context, args *LookupTunnelInterfaceArgs, opts ...InvokeOption) (*LookupTunnelInterfaceResult, error)
    func LookupTunnelInterfaceOutput(ctx *Context, args *LookupTunnelInterfaceOutputArgs, opts ...InvokeOption) LookupTunnelInterfaceResultOutput

    > Note: This function is named LookupTunnelInterface in the Go SDK.

    public static class GetTunnelInterface 
    {
        public static Task<GetTunnelInterfaceResult> InvokeAsync(GetTunnelInterfaceArgs args, InvokeOptions? opts = null)
        public static Output<GetTunnelInterfaceResult> Invoke(GetTunnelInterfaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTunnelInterfaceResult> getTunnelInterface(GetTunnelInterfaceArgs args, InvokeOptions options)
    public static Output<GetTunnelInterfaceResult> getTunnelInterface(GetTunnelInterfaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getTunnelInterface:getTunnelInterface
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    UUID of the resource
    Name string
    L3 sub-interface name
    Id string
    UUID of the resource
    Name string
    L3 sub-interface name
    id String
    UUID of the resource
    name String
    L3 sub-interface name
    id string
    UUID of the resource
    name string
    L3 sub-interface name
    id str
    UUID of the resource
    name str
    L3 sub-interface name
    id String
    UUID of the resource
    name String
    L3 sub-interface name

    getTunnelInterface Result

    The following output properties are available:

    Comment string
    Description
    DefaultValue string
    Default interface assignment
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Id string
    UUID of the resource
    InterfaceManagementProfile string
    Interface management profile
    Ips List<GetTunnelInterfaceIp>
    Tunnel Interface IP Parent
    Mtu int
    MTU
    Name string
    L3 sub-interface name
    Snippet string
    The snippet in which the resource is defined
    Tfid string
    Comment string
    Description
    DefaultValue string
    Default interface assignment
    Device string
    The device in which the resource is defined
    Folder string
    The folder in which the resource is defined
    Id string
    UUID of the resource
    InterfaceManagementProfile string
    Interface management profile
    Ips []GetTunnelInterfaceIp
    Tunnel Interface IP Parent
    Mtu int
    MTU
    Name string
    L3 sub-interface name
    Snippet string
    The snippet in which the resource is defined
    Tfid string
    comment String
    Description
    defaultValue String
    Default interface assignment
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    id String
    UUID of the resource
    interfaceManagementProfile String
    Interface management profile
    ips List<GetTunnelInterfaceIp>
    Tunnel Interface IP Parent
    mtu Integer
    MTU
    name String
    L3 sub-interface name
    snippet String
    The snippet in which the resource is defined
    tfid String
    comment string
    Description
    defaultValue string
    Default interface assignment
    device string
    The device in which the resource is defined
    folder string
    The folder in which the resource is defined
    id string
    UUID of the resource
    interfaceManagementProfile string
    Interface management profile
    ips GetTunnelInterfaceIp[]
    Tunnel Interface IP Parent
    mtu number
    MTU
    name string
    L3 sub-interface name
    snippet string
    The snippet in which the resource is defined
    tfid string
    comment str
    Description
    default_value str
    Default interface assignment
    device str
    The device in which the resource is defined
    folder str
    The folder in which the resource is defined
    id str
    UUID of the resource
    interface_management_profile str
    Interface management profile
    ips Sequence[GetTunnelInterfaceIp]
    Tunnel Interface IP Parent
    mtu int
    MTU
    name str
    L3 sub-interface name
    snippet str
    The snippet in which the resource is defined
    tfid str
    comment String
    Description
    defaultValue String
    Default interface assignment
    device String
    The device in which the resource is defined
    folder String
    The folder in which the resource is defined
    id String
    UUID of the resource
    interfaceManagementProfile String
    Interface management profile
    ips List<Property Map>
    Tunnel Interface IP Parent
    mtu Number
    MTU
    name String
    L3 sub-interface name
    snippet String
    The snippet in which the resource is defined
    tfid String

    Supporting Types

    GetTunnelInterfaceIp

    Name string
    Tunnel Interface IP address(es)
    Name string
    Tunnel Interface IP address(es)
    name String
    Tunnel Interface IP address(es)
    name string
    Tunnel Interface IP address(es)
    name str
    Tunnel Interface IP address(es)
    name String
    Tunnel Interface IP address(es)

    Package Details

    Repository
    scm pulumi/pulumi-scm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scm Terraform Provider.
    scm logo
    Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate