1. Packages
  2. Strata Cloud Manager Provider
  3. API Docs
  4. getLayer2SubinterfaceList
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

    Retrieves a listing of config items.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scm from "@pulumi/scm";
    
    // Fetch a list of all layer2 sub-interfaces
    const allLayer2Subinterfaces = scm.getLayer2SubinterfaceList({
        folder: "ngfw-shared",
    });
    export const scmLayer2SubinterfaceList = allLayer2Subinterfaces.then(allLayer2Subinterfaces => .reduce((__obj, interface) => ({ ...__obj, [_interface.name]: _interface })));
    
    import pulumi
    import pulumi_scm as scm
    
    # Fetch a list of all layer2 sub-interfaces
    all_layer2_subinterfaces = scm.get_layer2_subinterface_list(folder="ngfw-shared")
    pulumi.export("scmLayer2SubinterfaceList", {interface.name: interface for interface in all_layer2_subinterfaces.datas})
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scm = Pulumi.Scm;
    
    return await Deployment.RunAsync(() => 
    {
        // Fetch a list of all layer2 sub-interfaces
        var allLayer2Subinterfaces = Scm.GetLayer2SubinterfaceList.Invoke(new()
        {
            Folder = "ngfw-shared",
        });
    
        return new Dictionary<string, object?>
        {
            ["scmLayer2SubinterfaceList"] = ,
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Using getLayer2SubinterfaceList

    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 getLayer2SubinterfaceList(args: GetLayer2SubinterfaceListArgs, opts?: InvokeOptions): Promise<GetLayer2SubinterfaceListResult>
    function getLayer2SubinterfaceListOutput(args: GetLayer2SubinterfaceListOutputArgs, opts?: InvokeOptions): Output<GetLayer2SubinterfaceListResult>
    def get_layer2_subinterface_list(device: Optional[str] = None,
                                     folder: Optional[str] = None,
                                     limit: Optional[int] = None,
                                     name: Optional[str] = None,
                                     offset: Optional[int] = None,
                                     snippet: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetLayer2SubinterfaceListResult
    def get_layer2_subinterface_list_output(device: Optional[pulumi.Input[str]] = None,
                                     folder: Optional[pulumi.Input[str]] = None,
                                     limit: Optional[pulumi.Input[int]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     offset: Optional[pulumi.Input[int]] = None,
                                     snippet: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetLayer2SubinterfaceListResult]
    func GetLayer2SubinterfaceList(ctx *Context, args *GetLayer2SubinterfaceListArgs, opts ...InvokeOption) (*GetLayer2SubinterfaceListResult, error)
    func GetLayer2SubinterfaceListOutput(ctx *Context, args *GetLayer2SubinterfaceListOutputArgs, opts ...InvokeOption) GetLayer2SubinterfaceListResultOutput

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

    public static class GetLayer2SubinterfaceList 
    {
        public static Task<GetLayer2SubinterfaceListResult> InvokeAsync(GetLayer2SubinterfaceListArgs args, InvokeOptions? opts = null)
        public static Output<GetLayer2SubinterfaceListResult> Invoke(GetLayer2SubinterfaceListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLayer2SubinterfaceListResult> getLayer2SubinterfaceList(GetLayer2SubinterfaceListArgs args, InvokeOptions options)
    public static Output<GetLayer2SubinterfaceListResult> getLayer2SubinterfaceList(GetLayer2SubinterfaceListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scm:index/getLayer2SubinterfaceList:getLayer2SubinterfaceList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Integer
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Integer
    The offset of the first item to return.
    snippet String
    The snippet of the item.
    device string
    The device of the item.
    folder string
    The folder of the item. Default: Shared.
    limit number
    The max number of items to return. Default: 200.
    name string
    The name of the item.
    offset number
    The offset of the first item to return.
    snippet string
    The snippet of the item.
    device str
    The device of the item.
    folder str
    The folder of the item. Default: Shared.
    limit int
    The max number of items to return. Default: 200.
    name str
    The name of the item.
    offset int
    The offset of the first item to return.
    snippet str
    The snippet of the item.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Number
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Number
    The offset of the first item to return.
    snippet String
    The snippet of the item.

    getLayer2SubinterfaceList Result

    The following output properties are available:

    Datas List<GetLayer2SubinterfaceListData>
    The data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Total int
    The total number of items.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    Datas []GetLayer2SubinterfaceListData
    The data.
    Id string
    The provider-assigned unique ID for this managed resource.
    Tfid string
    Total int
    The total number of items.
    Device string
    The device of the item.
    Folder string
    The folder of the item. Default: Shared.
    Limit int
    The max number of items to return. Default: 200.
    Name string
    The name of the item.
    Offset int
    The offset of the first item to return.
    Snippet string
    The snippet of the item.
    datas List<GetLayer2SubinterfaceListData>
    The data.
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    total Integer
    The total number of items.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Integer
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Integer
    The offset of the first item to return.
    snippet String
    The snippet of the item.
    datas GetLayer2SubinterfaceListData[]
    The data.
    id string
    The provider-assigned unique ID for this managed resource.
    tfid string
    total number
    The total number of items.
    device string
    The device of the item.
    folder string
    The folder of the item. Default: Shared.
    limit number
    The max number of items to return. Default: 200.
    name string
    The name of the item.
    offset number
    The offset of the first item to return.
    snippet string
    The snippet of the item.
    datas Sequence[GetLayer2SubinterfaceListData]
    The data.
    id str
    The provider-assigned unique ID for this managed resource.
    tfid str
    total int
    The total number of items.
    device str
    The device of the item.
    folder str
    The folder of the item. Default: Shared.
    limit int
    The max number of items to return. Default: 200.
    name str
    The name of the item.
    offset int
    The offset of the first item to return.
    snippet str
    The snippet of the item.
    datas List<Property Map>
    The data.
    id String
    The provider-assigned unique ID for this managed resource.
    tfid String
    total Number
    The total number of items.
    device String
    The device of the item.
    folder String
    The folder of the item. Default: Shared.
    limit Number
    The max number of items to return. Default: 200.
    name String
    The name of the item.
    offset Number
    The offset of the first item to return.
    snippet String
    The snippet of the item.

    Supporting Types

    GetLayer2SubinterfaceListData

    Comment string
    Description
    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
    Name string
    L2 sub-interface name
    ParentInterface string
    Parent interface
    Snippet string
    The snippet in which the resource is defined
    Tfid string
    VlanTag string
    VLAN tag
    Comment string
    Description
    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
    Name string
    L2 sub-interface name
    ParentInterface string
    Parent interface
    Snippet string
    The snippet in which the resource is defined
    Tfid string
    VlanTag string
    VLAN tag
    comment String
    Description
    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
    name String
    L2 sub-interface name
    parentInterface String
    Parent interface
    snippet String
    The snippet in which the resource is defined
    tfid String
    vlanTag String
    VLAN tag
    comment string
    Description
    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
    name string
    L2 sub-interface name
    parentInterface string
    Parent interface
    snippet string
    The snippet in which the resource is defined
    tfid string
    vlanTag string
    VLAN tag
    comment str
    Description
    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
    name str
    L2 sub-interface name
    parent_interface str
    Parent interface
    snippet str
    The snippet in which the resource is defined
    tfid str
    vlan_tag str
    VLAN tag
    comment String
    Description
    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
    name String
    L2 sub-interface name
    parentInterface String
    Parent interface
    snippet String
    The snippet in which the resource is defined
    tfid String
    vlanTag String
    VLAN tag

    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