Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
scm.getEthernetInterface
Strata Cloud Manager v0.4.3 published on Saturday, Nov 8, 2025 by Pulumi
EthernetInterface data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// Look up ethernet interface by its ID.
const scmL3IntfStaticDs = scm.getEthernetInterface({
id: "ddad1e64-0b64-41a4-b361-c6199769a8f2",
});
export const ethernetInterfaceDataSourceResults = {
id: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.id),
name: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.name),
comment: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.comment),
layer3: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.layer3),
folder: scmL3IntfStaticDs.then(scmL3IntfStaticDs => scmL3IntfStaticDs.folder),
};
import pulumi
import pulumi_scm as scm
# Look up ethernet interface by its ID.
scm_l3_intf_static_ds = scm.get_ethernet_interface(id="ddad1e64-0b64-41a4-b361-c6199769a8f2")
pulumi.export("ethernetInterfaceDataSourceResults", {
"id": scm_l3_intf_static_ds.id,
"name": scm_l3_intf_static_ds.name,
"comment": scm_l3_intf_static_ds.comment,
"layer3": scm_l3_intf_static_ds.layer3,
"folder": scm_l3_intf_static_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 ethernet interface by its ID.
scmL3IntfStaticDs, err := scm.LookupEthernetInterface(ctx, &scm.LookupEthernetInterfaceArgs{
Id: "ddad1e64-0b64-41a4-b361-c6199769a8f2",
}, nil)
if err != nil {
return err
}
ctx.Export("ethernetInterfaceDataSourceResults", pulumi.Map{
"id": scmL3IntfStaticDs.Id,
"name": scmL3IntfStaticDs.Name,
"comment": scmL3IntfStaticDs.Comment,
"layer3": scmL3IntfStaticDs.Layer3,
"folder": scmL3IntfStaticDs.Folder,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Look up ethernet interface by its ID.
var scmL3IntfStaticDs = Scm.GetEthernetInterface.Invoke(new()
{
Id = "ddad1e64-0b64-41a4-b361-c6199769a8f2",
});
return new Dictionary<string, object?>
{
["ethernetInterfaceDataSourceResults"] =
{
{ "id", scmL3IntfStaticDs.Apply(getEthernetInterfaceResult => getEthernetInterfaceResult.Id) },
{ "name", scmL3IntfStaticDs.Apply(getEthernetInterfaceResult => getEthernetInterfaceResult.Name) },
{ "comment", scmL3IntfStaticDs.Apply(getEthernetInterfaceResult => getEthernetInterfaceResult.Comment) },
{ "layer3", scmL3IntfStaticDs.Apply(getEthernetInterfaceResult => getEthernetInterfaceResult.Layer3) },
{ "folder", scmL3IntfStaticDs.Apply(getEthernetInterfaceResult => getEthernetInterfaceResult.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.GetEthernetInterfaceArgs;
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 ethernet interface by its ID.
final var scmL3IntfStaticDs = ScmFunctions.getEthernetInterface(GetEthernetInterfaceArgs.builder()
.id("ddad1e64-0b64-41a4-b361-c6199769a8f2")
.build());
ctx.export("ethernetInterfaceDataSourceResults", Map.ofEntries(
Map.entry("id", scmL3IntfStaticDs.id()),
Map.entry("name", scmL3IntfStaticDs.name()),
Map.entry("comment", scmL3IntfStaticDs.comment()),
Map.entry("layer3", scmL3IntfStaticDs.layer3()),
Map.entry("folder", scmL3IntfStaticDs.folder())
));
}
}
variables:
# Look up ethernet interface by its ID.
scmL3IntfStaticDs:
fn::invoke:
function: scm:getEthernetInterface
arguments:
id: ddad1e64-0b64-41a4-b361-c6199769a8f2
outputs:
# Output various attributes from the found ethernet interface to verify the lookups were successful.
ethernetInterfaceDataSourceResults:
id: ${scmL3IntfStaticDs.id}
name: ${scmL3IntfStaticDs.name}
comment: ${scmL3IntfStaticDs.comment}
layer3: ${scmL3IntfStaticDs.layer3}
folder: ${scmL3IntfStaticDs.folder}
Using getEthernetInterface
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 getEthernetInterface(args: GetEthernetInterfaceArgs, opts?: InvokeOptions): Promise<GetEthernetInterfaceResult>
function getEthernetInterfaceOutput(args: GetEthernetInterfaceOutputArgs, opts?: InvokeOptions): Output<GetEthernetInterfaceResult>def get_ethernet_interface(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEthernetInterfaceResult
def get_ethernet_interface_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEthernetInterfaceResult]func LookupEthernetInterface(ctx *Context, args *LookupEthernetInterfaceArgs, opts ...InvokeOption) (*LookupEthernetInterfaceResult, error)
func LookupEthernetInterfaceOutput(ctx *Context, args *LookupEthernetInterfaceOutputArgs, opts ...InvokeOption) LookupEthernetInterfaceResultOutput> Note: This function is named LookupEthernetInterface in the Go SDK.
public static class GetEthernetInterface
{
public static Task<GetEthernetInterfaceResult> InvokeAsync(GetEthernetInterfaceArgs args, InvokeOptions? opts = null)
public static Output<GetEthernetInterfaceResult> Invoke(GetEthernetInterfaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEthernetInterfaceResult> getEthernetInterface(GetEthernetInterfaceArgs args, InvokeOptions options)
public static Output<GetEthernetInterfaceResult> getEthernetInterface(GetEthernetInterfaceArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getEthernetInterface:getEthernetInterface
arguments:
# arguments dictionaryThe following arguments are supported:
getEthernetInterface Result
The following output properties are available:
- Comment string
- Interface description
- Default
Value string - Default interface assignment
- Device string
- The device in which the resource is defined
- Encrypted
Values Dictionary<string, string> - Map of sensitive values returned from the API.
- Folder string
- The folder in which the resource is defined
- Id string
- UUID of the resource
- Layer2
Get
Ethernet Interface Layer2 - Layer2
- Layer3
Get
Ethernet Interface Layer3 - Ethernet Interface Layer 3 configuration
- Link
Duplex string - Link duplex
- Link
Speed string - Link speed
- Link
State string - Link state
- Name string
- Interface name
- Poe
Get
Ethernet Interface Poe - Poe
- Snippet string
- The snippet in which the resource is defined
- Tap
Get
Ethernet Interface Tap - Tap
- Tfid string
- Comment string
- Interface description
- Default
Value string - Default interface assignment
- Device string
- The device in which the resource is defined
- Encrypted
Values map[string]string - Map of sensitive values returned from the API.
- Folder string
- The folder in which the resource is defined
- Id string
- UUID of the resource
- Layer2
Get
Ethernet Interface Layer2 - Layer2
- Layer3
Get
Ethernet Interface Layer3 - Ethernet Interface Layer 3 configuration
- Link
Duplex string - Link duplex
- Link
Speed string - Link speed
- Link
State string - Link state
- Name string
- Interface name
- Poe
Get
Ethernet Interface Poe - Poe
- Snippet string
- The snippet in which the resource is defined
- Tap
Get
Ethernet Interface Tap - Tap
- Tfid string
- comment String
- Interface description
- default
Value String - Default interface assignment
- device String
- The device in which the resource is defined
- encrypted
Values Map<String,String> - Map of sensitive values returned from the API.
- folder String
- The folder in which the resource is defined
- id String
- UUID of the resource
- layer2
Get
Ethernet Interface Layer2 - Layer2
- layer3
Get
Ethernet Interface Layer3 - Ethernet Interface Layer 3 configuration
- link
Duplex String - Link duplex
- link
Speed String - Link speed
- link
State String - Link state
- name String
- Interface name
- poe
Get
Ethernet Interface Poe - Poe
- snippet String
- The snippet in which the resource is defined
- tap
Get
Ethernet Interface Tap - Tap
- tfid String
- comment string
- Interface description
- default
Value string - Default interface assignment
- device string
- The device in which the resource is defined
- encrypted
Values {[key: string]: string} - Map of sensitive values returned from the API.
- folder string
- The folder in which the resource is defined
- id string
- UUID of the resource
- layer2
Get
Ethernet Interface Layer2 - Layer2
- layer3
Get
Ethernet Interface Layer3 - Ethernet Interface Layer 3 configuration
- link
Duplex string - Link duplex
- link
Speed string - Link speed
- link
State string - Link state
- name string
- Interface name
- poe
Get
Ethernet Interface Poe - Poe
- snippet string
- The snippet in which the resource is defined
- tap
Get
Ethernet Interface Tap - Tap
- tfid string
- comment str
- Interface description
- default_
value str - Default interface assignment
- device str
- The device in which the resource is defined
- encrypted_
values Mapping[str, str] - Map of sensitive values returned from the API.
- folder str
- The folder in which the resource is defined
- id str
- UUID of the resource
- layer2
Get
Ethernet Interface Layer2 - Layer2
- layer3
Get
Ethernet Interface Layer3 - Ethernet Interface Layer 3 configuration
- link_
duplex str - Link duplex
- link_
speed str - Link speed
- link_
state str - Link state
- name str
- Interface name
- poe
Get
Ethernet Interface Poe - Poe
- snippet str
- The snippet in which the resource is defined
- tap
Get
Ethernet Interface Tap - Tap
- tfid str
- comment String
- Interface description
- default
Value String - Default interface assignment
- device String
- The device in which the resource is defined
- encrypted
Values Map<String> - Map of sensitive values returned from the API.
- folder String
- The folder in which the resource is defined
- id String
- UUID of the resource
- layer2 Property Map
- Layer2
- layer3 Property Map
- Ethernet Interface Layer 3 configuration
- link
Duplex String - Link duplex
- link
Speed String - Link speed
- link
State String - Link state
- name String
- Interface name
- poe Property Map
- Poe
- snippet String
- The snippet in which the resource is defined
- tap Property Map
- Tap
- tfid String
Supporting Types
GetEthernetInterfaceLayer2
- Lldp
Get
Ethernet Interface Layer2Lldp - LLDP Settings
- Vlan
Tag string - Assign interface to VLAN tag
- Lldp
Get
Ethernet Interface Layer2Lldp - LLDP Settings
- Vlan
Tag string - Assign interface to VLAN tag
- lldp
Get
Ethernet Interface Layer2Lldp - LLDP Settings
- vlan
Tag String - Assign interface to VLAN tag
- lldp
Get
Ethernet Interface Layer2Lldp - LLDP Settings
- vlan
Tag string - Assign interface to VLAN tag
- lldp
Get
Ethernet Interface Layer2Lldp - LLDP Settings
- vlan_
tag str - Assign interface to VLAN tag
- lldp Property Map
- LLDP Settings
- vlan
Tag String - Assign interface to VLAN tag
GetEthernetInterfaceLayer2Lldp
- Enable bool
- Enable LLDP on Interface
- Enable bool
- Enable LLDP on Interface
- enable Boolean
- Enable LLDP on Interface
- enable boolean
- Enable LLDP on Interface
- enable bool
- Enable LLDP on Interface
- enable Boolean
- Enable LLDP on Interface
GetEthernetInterfaceLayer3
- Arps
List<Get
Ethernet Interface Layer3Arp> - Ethernet Interfaces ARP configuration
- Ddns
Config GetEthernet Interface Layer3Ddns Config - Dynamic DNS configuration specific to the Ethernet Interfaces.
- Dhcp
Client GetEthernet Interface Layer3Dhcp Client - Ethernet Interfaces DHCP Client Object
- Interface
Management stringProfile - Interface management profile
- Ips
List<Get
Ethernet Interface Layer3Ip> - Ethernet Interface IP addresses
- Mtu int
- MTU
- Pppoe
Get
Ethernet Interface Layer3Pppoe - Pppoe
- Arps
[]Get
Ethernet Interface Layer3Arp - Ethernet Interfaces ARP configuration
- Ddns
Config GetEthernet Interface Layer3Ddns Config - Dynamic DNS configuration specific to the Ethernet Interfaces.
- Dhcp
Client GetEthernet Interface Layer3Dhcp Client - Ethernet Interfaces DHCP Client Object
- Interface
Management stringProfile - Interface management profile
- Ips
[]Get
Ethernet Interface Layer3Ip - Ethernet Interface IP addresses
- Mtu int
- MTU
- Pppoe
Get
Ethernet Interface Layer3Pppoe - Pppoe
- arps
List<Get
Ethernet Interface Layer3Arp> - Ethernet Interfaces ARP configuration
- ddns
Config GetEthernet Interface Layer3Ddns Config - Dynamic DNS configuration specific to the Ethernet Interfaces.
- dhcp
Client GetEthernet Interface Layer3Dhcp Client - Ethernet Interfaces DHCP Client Object
- interface
Management StringProfile - Interface management profile
- ips
List<Get
Ethernet Interface Layer3Ip> - Ethernet Interface IP addresses
- mtu Integer
- MTU
- pppoe
Get
Ethernet Interface Layer3Pppoe - Pppoe
- arps
Get
Ethernet Interface Layer3Arp[] - Ethernet Interfaces ARP configuration
- ddns
Config GetEthernet Interface Layer3Ddns Config - Dynamic DNS configuration specific to the Ethernet Interfaces.
- dhcp
Client GetEthernet Interface Layer3Dhcp Client - Ethernet Interfaces DHCP Client Object
- interface
Management stringProfile - Interface management profile
- ips
Get
Ethernet Interface Layer3Ip[] - Ethernet Interface IP addresses
- mtu number
- MTU
- pppoe
Get
Ethernet Interface Layer3Pppoe - Pppoe
- arps
Sequence[Get
Ethernet Interface Layer3Arp] - Ethernet Interfaces ARP configuration
- ddns_
config GetEthernet Interface Layer3Ddns Config - Dynamic DNS configuration specific to the Ethernet Interfaces.
- dhcp_
client GetEthernet Interface Layer3Dhcp Client - Ethernet Interfaces DHCP Client Object
- interface_
management_ strprofile - Interface management profile
- ips
Sequence[Get
Ethernet Interface Layer3Ip] - Ethernet Interface IP addresses
- mtu int
- MTU
- pppoe
Get
Ethernet Interface Layer3Pppoe - Pppoe
- arps List<Property Map>
- Ethernet Interfaces ARP configuration
- ddns
Config Property Map - Dynamic DNS configuration specific to the Ethernet Interfaces.
- dhcp
Client Property Map - Ethernet Interfaces DHCP Client Object
- interface
Management StringProfile - Interface management profile
- ips List<Property Map>
- Ethernet Interface IP addresses
- mtu Number
- MTU
- pppoe Property Map
- Pppoe
GetEthernetInterfaceLayer3Arp
- hw_
address str - MAC address
- name str
- IP address
GetEthernetInterfaceLayer3DdnsConfig
- 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
GetEthernetInterfaceLayer3DhcpClient
- 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 GetEthernet Interface Layer3Dhcp Client Send Hostname - Ethernet Interfaces DHCP ClientSend 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 GetEthernet Interface Layer3Dhcp Client Send Hostname - Ethernet Interfaces DHCP ClientSend 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 GetEthernet Interface Layer3Dhcp Client Send Hostname - Ethernet Interfaces DHCP ClientSend 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 GetEthernet Interface Layer3Dhcp Client Send Hostname - Ethernet Interfaces DHCP ClientSend 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 GetEthernet Interface Layer3Dhcp Client Send Hostname - Ethernet Interfaces DHCP ClientSend 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 - Ethernet Interfaces DHCP ClientSend hostname
GetEthernetInterfaceLayer3DhcpClientSendHostname
GetEthernetInterfaceLayer3Ip
- Name string
- Ethernet Interface IP addresses name
- Name string
- Ethernet Interface IP addresses name
- name String
- Ethernet Interface IP addresses name
- name string
- Ethernet Interface IP addresses name
- name str
- Ethernet Interface IP addresses name
- name String
- Ethernet Interface IP addresses name
GetEthernetInterfaceLayer3Pppoe
- Access
Concentrator string - Access concentrator
- Authentication string
- Authentication protocol
- Default
Route intMetric - Metric of the default route created
- Enable bool
- Enable
- Passive
Get
Ethernet Interface Layer3Pppoe Passive - Passive
- Password string
- Password
- Service string
- Service
- Static
Address GetEthernet Interface Layer3Pppoe Static Address - Static address
- Username string
- Username
- Access
Concentrator string - Access concentrator
- Authentication string
- Authentication protocol
- Default
Route intMetric - Metric of the default route created
- Enable bool
- Enable
- Passive
Get
Ethernet Interface Layer3Pppoe Passive - Passive
- Password string
- Password
- Service string
- Service
- Static
Address GetEthernet Interface Layer3Pppoe Static Address - Static address
- Username string
- Username
- access
Concentrator String - Access concentrator
- authentication String
- Authentication protocol
- default
Route IntegerMetric - Metric of the default route created
- enable Boolean
- Enable
- passive
Get
Ethernet Interface Layer3Pppoe Passive - Passive
- password String
- Password
- service String
- Service
- static
Address GetEthernet Interface Layer3Pppoe Static Address - Static address
- username String
- Username
- access
Concentrator string - Access concentrator
- authentication string
- Authentication protocol
- default
Route numberMetric - Metric of the default route created
- enable boolean
- Enable
- passive
Get
Ethernet Interface Layer3Pppoe Passive - Passive
- password string
- Password
- service string
- Service
- static
Address GetEthernet Interface Layer3Pppoe Static Address - Static address
- username string
- Username
- access_
concentrator str - Access concentrator
- authentication str
- Authentication protocol
- default_
route_ intmetric - Metric of the default route created
- enable bool
- Enable
- passive
Get
Ethernet Interface Layer3Pppoe Passive - Passive
- password str
- Password
- service str
- Service
- static_
address GetEthernet Interface Layer3Pppoe Static Address - Static address
- username str
- Username
- access
Concentrator String - Access concentrator
- authentication String
- Authentication protocol
- default
Route NumberMetric - Metric of the default route created
- enable Boolean
- Enable
- passive Property Map
- Passive
- password String
- Password
- service String
- Service
- static
Address Property Map - Static address
- username String
- Username
GetEthernetInterfaceLayer3PppoePassive
- Enable bool
- Passive Mode enabled
- Enable bool
- Passive Mode enabled
- enable Boolean
- Passive Mode enabled
- enable boolean
- Passive Mode enabled
- enable bool
- Passive Mode enabled
- enable Boolean
- Passive Mode enabled
GetEthernetInterfaceLayer3PppoeStaticAddress
- Ip string
- Static IP address
- Ip string
- Static IP address
- ip String
- Static IP address
- ip string
- Static IP address
- ip str
- Static IP address
- ip String
- Static IP address
GetEthernetInterfacePoe
- Poe
Enabled bool - Enabled PoE?
- Poe
Rsvd intPwr - PoE reserved power
- Poe
Enabled bool - Enabled PoE?
- Poe
Rsvd intPwr - PoE reserved power
- poe
Enabled Boolean - Enabled PoE?
- poe
Rsvd IntegerPwr - PoE reserved power
- poe
Enabled boolean - Enabled PoE?
- poe
Rsvd numberPwr - PoE reserved power
- poe_
enabled bool - Enabled PoE?
- poe_
rsvd_ intpwr - PoE reserved power
- poe
Enabled Boolean - Enabled PoE?
- poe
Rsvd NumberPwr - PoE reserved power
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
