1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getLoopbackInterface
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
scm logo
Strata Cloud Manager v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi

    LoopbackInterface data source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Look up loopback interface by its ID.
    const scmLoopbackIntfDs = scm.getLoopbackInterface({
        id: "ddad1e64-0b64-41a4-b361-c6199769a8f1",
    });
    export const scmLoopbackInterfaceDataSourceResults = {
        id: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.id),
        name: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.name),
        comment: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.comment),
        ip: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.ips),
        folder: scmLoopbackIntfDs.then(scmLoopbackIntfDs => scmLoopbackIntfDs.folder),
    };
    
    import pulumi
    import pulumi_scm as scm
    
    # Look up loopback interface by its ID.
    scm_loopback_intf_ds = scm.get_loopback_interface(id="ddad1e64-0b64-41a4-b361-c6199769a8f1")
    pulumi.export("scmLoopbackInterfaceDataSourceResults", {
        "id": scm_loopback_intf_ds.id,
        "name": scm_loopback_intf_ds.name,
        "comment": scm_loopback_intf_ds.comment,
        "ip": scm_loopback_intf_ds.ips,
        "folder": scm_loopback_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 loopback interface by its ID.
    		scmLoopbackIntfDs, err := scm.LookupLoopbackInterface(ctx, &scm.LookupLoopbackInterfaceArgs{
    			Id: "ddad1e64-0b64-41a4-b361-c6199769a8f1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("scmLoopbackInterfaceDataSourceResults", pulumi.Map{
    			"id":      scmLoopbackIntfDs.Id,
    			"name":    scmLoopbackIntfDs.Name,
    			"comment": scmLoopbackIntfDs.Comment,
    			"ip":      scmLoopbackIntfDs.Ips,
    			"folder":  scmLoopbackIntfDs.Folder,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Look up loopback interface by its ID.
        var scmLoopbackIntfDs = Scm.GetLoopbackInterface.Invoke(new()
        {
            Id = "ddad1e64-0b64-41a4-b361-c6199769a8f1",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmLoopbackInterfaceDataSourceResults"] = 
            {
                { "id", scmLoopbackIntfDs.Apply(getLoopbackInterfaceResult => getLoopbackInterfaceResult.Id) },
                { "name", scmLoopbackIntfDs.Apply(getLoopbackInterfaceResult => getLoopbackInterfaceResult.Name) },
                { "comment", scmLoopbackIntfDs.Apply(getLoopbackInterfaceResult => getLoopbackInterfaceResult.Comment) },
                { "ip", scmLoopbackIntfDs.Apply(getLoopbackInterfaceResult => getLoopbackInterfaceResult.Ips) },
                { "folder", scmLoopbackIntfDs.Apply(getLoopbackInterfaceResult => getLoopbackInterfaceResult.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.GetLoopbackInterfaceArgs;
    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 loopback interface by its ID.
            final var scmLoopbackIntfDs = ScmFunctions.getLoopbackInterface(GetLoopbackInterfaceArgs.builder()
                .id("ddad1e64-0b64-41a4-b361-c6199769a8f1")
                .build());
    
            ctx.export("scmLoopbackInterfaceDataSourceResults", Map.ofEntries(
                Map.entry("id", scmLoopbackIntfDs.id()),
                Map.entry("name", scmLoopbackIntfDs.name()),
                Map.entry("comment", scmLoopbackIntfDs.comment()),
                Map.entry("ip", scmLoopbackIntfDs.ips()),
                Map.entry("folder", scmLoopbackIntfDs.folder())
            ));
        }
    }
    
    variables:
      # Look up loopback interface by its ID.
      scmLoopbackIntfDs:
        fn::invoke:
          function: scm:getLoopbackInterface
          arguments:
            id: ddad1e64-0b64-41a4-b361-c6199769a8f1
    outputs:
      # Output various attributes from the found loopback interface to verify the lookups were successful.
      scmLoopbackInterfaceDataSourceResults:
        id: ${scmLoopbackIntfDs.id}
        name: ${scmLoopbackIntfDs.name}
        comment: ${scmLoopbackIntfDs.comment}
        ip: ${scmLoopbackIntfDs.ips}
        folder: ${scmLoopbackIntfDs.folder}
    

    Using getLoopbackInterface

    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 getLoopbackInterface(args: GetLoopbackInterfaceArgs, opts?: InvokeOptions): Promise<GetLoopbackInterfaceResult>
    function getLoopbackInterfaceOutput(args: GetLoopbackInterfaceOutputArgs, opts?: InvokeOptions): Output<GetLoopbackInterfaceResult>
    def get_loopback_interface(device: Optional[str] = None,
                               folder: Optional[str] = None,
                               id: Optional[str] = None,
                               name: Optional[str] = None,
                               snippet: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetLoopbackInterfaceResult
    def get_loopback_interface_output(device: Optional[pulumi.Input[str]] = None,
                               folder: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               snippet: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetLoopbackInterfaceResult]
    func LookupLoopbackInterface(ctx *Context, args *LookupLoopbackInterfaceArgs, opts ...InvokeOption) (*LookupLoopbackInterfaceResult, error)
    func LookupLoopbackInterfaceOutput(ctx *Context, args *LookupLoopbackInterfaceOutputArgs, opts ...InvokeOption) LookupLoopbackInterfaceResultOutput

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

    public static class GetLoopbackInterface 
    {
        public static Task<GetLoopbackInterfaceResult> InvokeAsync(GetLoopbackInterfaceArgs args, InvokeOptions? opts = null)
        public static Output<GetLoopbackInterfaceResult> Invoke(GetLoopbackInterfaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoopbackInterfaceResult> getLoopbackInterface(GetLoopbackInterfaceArgs args, InvokeOptions options)
    public static Output<GetLoopbackInterfaceResult> getLoopbackInterface(GetLoopbackInterfaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getLoopbackInterface:getLoopbackInterface
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    UUID of the resource
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    Id string
    UUID of the resource
    Device string
    The device in which the resource is defined
    Folder string
    Name string
    Snippet string
    id String
    UUID of the resource
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String
    id string
    UUID of the resource
    device string
    The device in which the resource is defined
    folder string
    name string
    snippet string
    id str
    UUID of the resource
    device str
    The device in which the resource is defined
    folder str
    name str
    snippet str
    id String
    UUID of the resource
    device String
    The device in which the resource is defined
    folder String
    name String
    snippet String

    getLoopbackInterface Result

    The following output properties are available:

    Comment string
    DefaultValue string
    Device string
    The device in which the resource is defined
    Folder string
    Id string
    UUID of the resource
    InterfaceManagementProfile string
    Ips List<GetLoopbackInterfaceIp>
    Ipv6 GetLoopbackInterfaceIpv6
    Mtu int
    Name string
    Snippet string
    Tfid string
    Comment string
    DefaultValue string
    Device string
    The device in which the resource is defined
    Folder string
    Id string
    UUID of the resource
    InterfaceManagementProfile string
    Ips []GetLoopbackInterfaceIp
    Ipv6 GetLoopbackInterfaceIpv6
    Mtu int
    Name string
    Snippet string
    Tfid string
    comment String
    defaultValue String
    device String
    The device in which the resource is defined
    folder String
    id String
    UUID of the resource
    interfaceManagementProfile String
    ips List<GetLoopbackInterfaceIp>
    ipv6 GetLoopbackInterfaceIpv6
    mtu Integer
    name String
    snippet String
    tfid String
    comment string
    defaultValue string
    device string
    The device in which the resource is defined
    folder string
    id string
    UUID of the resource
    interfaceManagementProfile string
    ips GetLoopbackInterfaceIp[]
    ipv6 GetLoopbackInterfaceIpv6
    mtu number
    name string
    snippet string
    tfid string
    comment str
    default_value str
    device str
    The device in which the resource is defined
    folder str
    id str
    UUID of the resource
    interface_management_profile str
    ips Sequence[GetLoopbackInterfaceIp]
    ipv6 GetLoopbackInterfaceIpv6
    mtu int
    name str
    snippet str
    tfid str
    comment String
    defaultValue String
    device String
    The device in which the resource is defined
    folder String
    id String
    UUID of the resource
    interfaceManagementProfile String
    ips List<Property Map>
    ipv6 Property Map
    mtu Number
    name String
    snippet String
    tfid String

    Supporting Types

    GetLoopbackInterfaceIp

    Name string
    Loopback IP address(es)
    Name string
    Loopback IP address(es)
    name String
    Loopback IP address(es)
    name string
    Loopback IP address(es)
    name str
    Loopback IP address(es)
    name String
    Loopback IP address(es)

    GetLoopbackInterfaceIpv6

    Addresses List<GetLoopbackInterfaceIpv6Address>
    IPv6 Address Parent
    Enabled bool
    Enable IPv6
    InterfaceId string
    Interface ID
    Addresses []GetLoopbackInterfaceIpv6Address
    IPv6 Address Parent
    Enabled bool
    Enable IPv6
    InterfaceId string
    Interface ID
    addresses List<GetLoopbackInterfaceIpv6Address>
    IPv6 Address Parent
    enabled Boolean
    Enable IPv6
    interfaceId String
    Interface ID
    addresses GetLoopbackInterfaceIpv6Address[]
    IPv6 Address Parent
    enabled boolean
    Enable IPv6
    interfaceId string
    Interface ID
    addresses Sequence[GetLoopbackInterfaceIpv6Address]
    IPv6 Address Parent
    enabled bool
    Enable IPv6
    interface_id str
    Interface ID
    addresses List<Property Map>
    IPv6 Address Parent
    enabled Boolean
    Enable IPv6
    interfaceId String
    Interface ID

    GetLoopbackInterfaceIpv6Address

    Anycast GetLoopbackInterfaceIpv6AddressAnycast
    Anycast
    EnableOnInterface bool
    Enable Address on Interface
    Name string
    IPv6 Address
    Prefix GetLoopbackInterfaceIpv6AddressPrefix
    Use interface ID as host portion
    Anycast GetLoopbackInterfaceIpv6AddressAnycast
    Anycast
    EnableOnInterface bool
    Enable Address on Interface
    Name string
    IPv6 Address
    Prefix GetLoopbackInterfaceIpv6AddressPrefix
    Use interface ID as host portion
    anycast GetLoopbackInterfaceIpv6AddressAnycast
    Anycast
    enableOnInterface Boolean
    Enable Address on Interface
    name String
    IPv6 Address
    prefix GetLoopbackInterfaceIpv6AddressPrefix
    Use interface ID as host portion
    anycast GetLoopbackInterfaceIpv6AddressAnycast
    Anycast
    enableOnInterface boolean
    Enable Address on Interface
    name string
    IPv6 Address
    prefix GetLoopbackInterfaceIpv6AddressPrefix
    Use interface ID as host portion
    anycast GetLoopbackInterfaceIpv6AddressAnycast
    Anycast
    enable_on_interface bool
    Enable Address on Interface
    name str
    IPv6 Address
    prefix GetLoopbackInterfaceIpv6AddressPrefix
    Use interface ID as host portion
    anycast Property Map
    Anycast
    enableOnInterface Boolean
    Enable Address on Interface
    name String
    IPv6 Address
    prefix Property Map
    Use interface ID as host portion

    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 v1.0.3 published on Thursday, Jan 22, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate