Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm.getLayer3Subinterface
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
Layer3Subinterface data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// Look up layer3 sub-interface by its ID.
const scmL3SubinterfaceDs = scm.getLayer3Subinterface({
id: "88f730d1-6577-492b-88a6-73d4a513dc76",
});
export const layer3SubinterfaceDataSourceResults = {
id: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.id),
name: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.name),
comment: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.comment),
ip: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.ips),
tag: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.tag),
parentInterface: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.parentInterface),
folder: scmL3SubinterfaceDs.then(scmL3SubinterfaceDs => scmL3SubinterfaceDs.folder),
};
import pulumi
import pulumi_scm as scm
# Look up layer3 sub-interface by its ID.
scm_l3_subinterface_ds = scm.get_layer3_subinterface(id="88f730d1-6577-492b-88a6-73d4a513dc76")
pulumi.export("layer3SubinterfaceDataSourceResults", {
"id": scm_l3_subinterface_ds.id,
"name": scm_l3_subinterface_ds.name,
"comment": scm_l3_subinterface_ds.comment,
"ip": scm_l3_subinterface_ds.ips,
"tag": scm_l3_subinterface_ds.tag,
"parentInterface": scm_l3_subinterface_ds.parent_interface,
"folder": scm_l3_subinterface_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 layer3 sub-interface by its ID.
scmL3SubinterfaceDs, err := scm.LookupLayer3Subinterface(ctx, &scm.LookupLayer3SubinterfaceArgs{
Id: "88f730d1-6577-492b-88a6-73d4a513dc76",
}, nil)
if err != nil {
return err
}
ctx.Export("layer3SubinterfaceDataSourceResults", pulumi.Map{
"id": scmL3SubinterfaceDs.Id,
"name": scmL3SubinterfaceDs.Name,
"comment": scmL3SubinterfaceDs.Comment,
"ip": scmL3SubinterfaceDs.Ips,
"tag": scmL3SubinterfaceDs.Tag,
"parentInterface": scmL3SubinterfaceDs.ParentInterface,
"folder": scmL3SubinterfaceDs.Folder,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Look up layer3 sub-interface by its ID.
var scmL3SubinterfaceDs = Scm.GetLayer3Subinterface.Invoke(new()
{
Id = "88f730d1-6577-492b-88a6-73d4a513dc76",
});
return new Dictionary<string, object?>
{
["layer3SubinterfaceDataSourceResults"] =
{
{ "id", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.Id) },
{ "name", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.Name) },
{ "comment", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.Comment) },
{ "ip", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.Ips) },
{ "tag", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.Tag) },
{ "parentInterface", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.ParentInterface) },
{ "folder", scmL3SubinterfaceDs.Apply(getLayer3SubinterfaceResult => getLayer3SubinterfaceResult.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.GetLayer3SubinterfaceArgs;
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 layer3 sub-interface by its ID.
final var scmL3SubinterfaceDs = ScmFunctions.getLayer3Subinterface(GetLayer3SubinterfaceArgs.builder()
.id("88f730d1-6577-492b-88a6-73d4a513dc76")
.build());
ctx.export("layer3SubinterfaceDataSourceResults", Map.ofEntries(
Map.entry("id", scmL3SubinterfaceDs.id()),
Map.entry("name", scmL3SubinterfaceDs.name()),
Map.entry("comment", scmL3SubinterfaceDs.comment()),
Map.entry("ip", scmL3SubinterfaceDs.ips()),
Map.entry("tag", scmL3SubinterfaceDs.tag()),
Map.entry("parentInterface", scmL3SubinterfaceDs.parentInterface()),
Map.entry("folder", scmL3SubinterfaceDs.folder())
));
}
}
variables:
# Look up layer3 sub-interface by its ID.
scmL3SubinterfaceDs:
fn::invoke:
function: scm:getLayer3Subinterface
arguments:
id: 88f730d1-6577-492b-88a6-73d4a513dc76
outputs:
# Output various attributes from the found layer3 sub-interface to verify the lookups were successful.
layer3SubinterfaceDataSourceResults:
id: ${scmL3SubinterfaceDs.id}
name: ${scmL3SubinterfaceDs.name}
comment: ${scmL3SubinterfaceDs.comment}
ip: ${scmL3SubinterfaceDs.ips}
tag: ${scmL3SubinterfaceDs.tag}
parentInterface: ${scmL3SubinterfaceDs.parentInterface}
folder: ${scmL3SubinterfaceDs.folder}
Using getLayer3Subinterface
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 getLayer3Subinterface(args: GetLayer3SubinterfaceArgs, opts?: InvokeOptions): Promise<GetLayer3SubinterfaceResult>
function getLayer3SubinterfaceOutput(args: GetLayer3SubinterfaceOutputArgs, opts?: InvokeOptions): Output<GetLayer3SubinterfaceResult>def get_layer3_subinterface(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLayer3SubinterfaceResult
def get_layer3_subinterface_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLayer3SubinterfaceResult]func LookupLayer3Subinterface(ctx *Context, args *LookupLayer3SubinterfaceArgs, opts ...InvokeOption) (*LookupLayer3SubinterfaceResult, error)
func LookupLayer3SubinterfaceOutput(ctx *Context, args *LookupLayer3SubinterfaceOutputArgs, opts ...InvokeOption) LookupLayer3SubinterfaceResultOutput> Note: This function is named LookupLayer3Subinterface in the Go SDK.
public static class GetLayer3Subinterface
{
public static Task<GetLayer3SubinterfaceResult> InvokeAsync(GetLayer3SubinterfaceArgs args, InvokeOptions? opts = null)
public static Output<GetLayer3SubinterfaceResult> Invoke(GetLayer3SubinterfaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLayer3SubinterfaceResult> getLayer3Subinterface(GetLayer3SubinterfaceArgs args, InvokeOptions options)
public static Output<GetLayer3SubinterfaceResult> getLayer3Subinterface(GetLayer3SubinterfaceArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getLayer3Subinterface:getLayer3Subinterface
arguments:
# arguments dictionaryThe following arguments are supported:
getLayer3Subinterface Result
The following output properties are available:
- Arps
List<Get
Layer3Subinterface Arp> - Layer 3 sub Interfaces ARP configuration
- Comment string
- Description
- Ddns
Config GetLayer3Subinterface Ddns Config - Dynamic DNS configuration specific to the Layer 3 sub Interfaces.
- Device string
- The device in which the resource is defined
- Dhcp
Client GetLayer3Subinterface Dhcp Client - Layer3 sub interfaces DHCP Client Object
- Folder string
- The folder in which the resource is defined
- Id string
- UUID of the resource
- Interface
Management stringProfile - Interface management profile
- Ips
List<Get
Layer3Subinterface Ip> - L3 sub-interface IP Parent
- Mtu int
- MTU
- Name string
- L3 sub-interface name
- Parent
Interface string - Parent interface
- Snippet string
- The snippet in which the resource is defined
- Tag int
- VLAN tag
- Tfid string
- Arps
[]Get
Layer3Subinterface Arp - Layer 3 sub Interfaces ARP configuration
- Comment string
- Description
- Ddns
Config GetLayer3Subinterface Ddns Config - Dynamic DNS configuration specific to the Layer 3 sub Interfaces.
- Device string
- The device in which the resource is defined
- Dhcp
Client GetLayer3Subinterface Dhcp Client - Layer3 sub interfaces DHCP Client Object
- Folder string
- The folder in which the resource is defined
- Id string
- UUID of the resource
- Interface
Management stringProfile - Interface management profile
- Ips
[]Get
Layer3Subinterface Ip - L3 sub-interface IP Parent
- Mtu int
- MTU
- Name string
- L3 sub-interface name
- Parent
Interface string - Parent interface
- Snippet string
- The snippet in which the resource is defined
- Tag int
- VLAN tag
- Tfid string
- arps
List<Get
Layer3Subinterface Arp> - Layer 3 sub Interfaces ARP configuration
- comment String
- Description
- ddns
Config GetLayer3Subinterface Ddns Config - Dynamic DNS configuration specific to the Layer 3 sub Interfaces.
- device String
- The device in which the resource is defined
- dhcp
Client GetLayer3Subinterface Dhcp Client - Layer3 sub interfaces DHCP Client Object
- folder String
- The folder in which the resource is defined
- id String
- UUID of the resource
- interface
Management StringProfile - Interface management profile
- ips
List<Get
Layer3Subinterface Ip> - L3 sub-interface IP Parent
- mtu Integer
- MTU
- name String
- L3 sub-interface name
- parent
Interface String - Parent interface
- snippet String
- The snippet in which the resource is defined
- tag Integer
- VLAN tag
- tfid String
- arps
Get
Layer3Subinterface Arp[] - Layer 3 sub Interfaces ARP configuration
- comment string
- Description
- ddns
Config GetLayer3Subinterface Ddns Config - Dynamic DNS configuration specific to the Layer 3 sub Interfaces.
- device string
- The device in which the resource is defined
- dhcp
Client GetLayer3Subinterface Dhcp Client - Layer3 sub interfaces DHCP Client Object
- folder string
- The folder in which the resource is defined
- id string
- UUID of the resource
- interface
Management stringProfile - Interface management profile
- ips
Get
Layer3Subinterface Ip[] - L3 sub-interface IP Parent
- mtu number
- MTU
- name string
- L3 sub-interface name
- parent
Interface string - Parent interface
- snippet string
- The snippet in which the resource is defined
- tag number
- VLAN tag
- tfid string
- arps
Sequence[Get
Layer3Subinterface Arp] - Layer 3 sub Interfaces ARP configuration
- comment str
- Description
- ddns_
config GetLayer3Subinterface Ddns Config - Dynamic DNS configuration specific to the Layer 3 sub Interfaces.
- device str
- The device in which the resource is defined
- dhcp_
client GetLayer3Subinterface Dhcp Client - Layer3 sub interfaces DHCP Client Object
- folder str
- The folder in which the resource is defined
- id str
- UUID of the resource
- interface_
management_ strprofile - Interface management profile
- ips
Sequence[Get
Layer3Subinterface Ip] - L3 sub-interface IP Parent
- mtu int
- MTU
- name str
- L3 sub-interface name
- parent_
interface str - Parent interface
- snippet str
- The snippet in which the resource is defined
- tag int
- VLAN tag
- tfid str
- arps List<Property Map>
- Layer 3 sub Interfaces ARP configuration
- comment String
- Description
- ddns
Config Property Map - Dynamic DNS configuration specific to the Layer 3 sub Interfaces.
- device String
- The device in which the resource is defined
- dhcp
Client Property Map - Layer3 sub interfaces DHCP Client Object
- folder String
- The folder in which the resource is defined
- id String
- UUID of the resource
- interface
Management StringProfile - Interface management profile
- ips List<Property Map>
- L3 sub-interface IP Parent
- mtu Number
- MTU
- name String
- L3 sub-interface name
- parent
Interface String - Parent interface
- snippet String
- The snippet in which the resource is defined
- tag Number
- VLAN tag
- tfid String
Supporting Types
GetLayer3SubinterfaceArp
- hw_
address str - MAC address
- name str
- IP address
GetLayer3SubinterfaceDdnsConfig
- Ddns
Cert stringProfile - Certificate profile
- Ddns
Enabled bool - Enable DDNS?
- Ddns
Hostname string - Ddns hostname
- Ddns
Ip string - IP to register (static only)
- Ddns
Update intInterval - Update interval (days)
- Ddns
Vendor string - DDNS vendor
- Ddns
Vendor stringConfig - DDNS vendor
- Ddns
Cert stringProfile - Certificate profile
- Ddns
Enabled bool - Enable DDNS?
- Ddns
Hostname string - Ddns hostname
- Ddns
Ip string - IP to register (static only)
- Ddns
Update intInterval - Update interval (days)
- Ddns
Vendor string - DDNS vendor
- Ddns
Vendor stringConfig - DDNS vendor
- ddns
Cert StringProfile - Certificate profile
- ddns
Enabled Boolean - Enable DDNS?
- ddns
Hostname String - Ddns hostname
- ddns
Ip String - IP to register (static only)
- ddns
Update IntegerInterval - Update interval (days)
- ddns
Vendor String - DDNS vendor
- ddns
Vendor StringConfig - DDNS vendor
- ddns
Cert stringProfile - Certificate profile
- ddns
Enabled boolean - Enable DDNS?
- ddns
Hostname string - Ddns hostname
- ddns
Ip string - IP to register (static only)
- ddns
Update numberInterval - Update interval (days)
- ddns
Vendor string - DDNS vendor
- ddns
Vendor stringConfig - DDNS vendor
- ddns_
cert_ strprofile - Certificate profile
- ddns_
enabled bool - Enable DDNS?
- ddns_
hostname str - Ddns hostname
- ddns_
ip str - IP to register (static only)
- ddns_
update_ intinterval - Update interval (days)
- ddns_
vendor str - DDNS vendor
- ddns_
vendor_ strconfig - DDNS vendor
- ddns
Cert StringProfile - Certificate profile
- ddns
Enabled Boolean - Enable DDNS?
- ddns
Hostname String - Ddns hostname
- ddns
Ip String - IP to register (static only)
- ddns
Update NumberInterval - Update interval (days)
- ddns
Vendor String - DDNS vendor
- ddns
Vendor StringConfig - DDNS vendor
GetLayer3SubinterfaceDhcpClient
- Create
Default boolRoute - Automatically create default route pointing to default gateway provided by server
- Default
Route intMetric - Metric of the default route created
- Enable bool
- Enable DHCP?
- Send
Hostname GetLayer3Subinterface Dhcp Client Send Hostname - Layer3 sub interfaces DHCP Client Send hostname
- Create
Default boolRoute - Automatically create default route pointing to default gateway provided by server
- Default
Route intMetric - Metric of the default route created
- Enable bool
- Enable DHCP?
- Send
Hostname GetLayer3Subinterface Dhcp Client Send Hostname - Layer3 sub interfaces DHCP Client Send hostname
- create
Default BooleanRoute - Automatically create default route pointing to default gateway provided by server
- default
Route IntegerMetric - Metric of the default route created
- enable Boolean
- Enable DHCP?
- send
Hostname GetLayer3Subinterface Dhcp Client Send Hostname - Layer3 sub interfaces DHCP Client Send hostname
- create
Default booleanRoute - Automatically create default route pointing to default gateway provided by server
- default
Route numberMetric - Metric of the default route created
- enable boolean
- Enable DHCP?
- send
Hostname GetLayer3Subinterface Dhcp Client Send Hostname - Layer3 sub interfaces DHCP Client Send hostname
- create_
default_ boolroute - Automatically create default route pointing to default gateway provided by server
- default_
route_ intmetric - Metric of the default route created
- enable bool
- Enable DHCP?
- send_
hostname GetLayer3Subinterface Dhcp Client Send Hostname - Layer3 sub interfaces DHCP Client Send hostname
- create
Default BooleanRoute - Automatically create default route pointing to default gateway provided by server
- default
Route NumberMetric - Metric of the default route created
- enable Boolean
- Enable DHCP?
- send
Hostname Property Map - Layer3 sub interfaces DHCP Client Send hostname
GetLayer3SubinterfaceDhcpClientSendHostname
GetLayer3SubinterfaceIp
- Name string
- L3 sub-interface IP address(es)
- Name string
- L3 sub-interface IP address(es)
- name String
- L3 sub-interface IP address(es)
- name string
- L3 sub-interface IP address(es)
- name str
- L3 sub-interface IP address(es)
- name String
- L3 sub-interface IP address(es)
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
