1. Packages
  2. stackit
  3. API Docs
  4. getNetworkInterface
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Network interface datasource schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_network_interface" "example" {
      project_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      network_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      network_interface_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getNetworkInterface

    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 getNetworkInterface(args: GetNetworkInterfaceArgs, opts?: InvokeOptions): Promise<GetNetworkInterfaceResult>
    function getNetworkInterfaceOutput(args: GetNetworkInterfaceOutputArgs, opts?: InvokeOptions): Output<GetNetworkInterfaceResult>
    def get_network_interface(network_id: Optional[str] = None,
                              network_interface_id: Optional[str] = None,
                              project_id: Optional[str] = None,
                              region: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetNetworkInterfaceResult
    def get_network_interface_output(network_id: Optional[pulumi.Input[str]] = None,
                              network_interface_id: Optional[pulumi.Input[str]] = None,
                              project_id: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetNetworkInterfaceResult]
    func LookupNetworkInterface(ctx *Context, args *LookupNetworkInterfaceArgs, opts ...InvokeOption) (*LookupNetworkInterfaceResult, error)
    func LookupNetworkInterfaceOutput(ctx *Context, args *LookupNetworkInterfaceOutputArgs, opts ...InvokeOption) LookupNetworkInterfaceResultOutput

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

    public static class GetNetworkInterface 
    {
        public static Task<GetNetworkInterfaceResult> InvokeAsync(GetNetworkInterfaceArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkInterfaceResult> Invoke(GetNetworkInterfaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkInterfaceResult> getNetworkInterface(GetNetworkInterfaceArgs args, InvokeOptions options)
    public static Output<GetNetworkInterfaceResult> getNetworkInterface(GetNetworkInterfaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getNetworkInterface:getNetworkInterface
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkId string
    The network ID to which the network interface is associated.
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    NetworkId string
    The network ID to which the network interface is associated.
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    networkId String
    The network ID to which the network interface is associated.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface is associated.
    region String
    The resource region. If not defined, the provider region is used.
    networkId string
    The network ID to which the network interface is associated.
    networkInterfaceId string
    The network interface ID.
    projectId string
    STACKIT project ID to which the network interface is associated.
    region string
    The resource region. If not defined, the provider region is used.
    network_id str
    The network ID to which the network interface is associated.
    network_interface_id str
    The network interface ID.
    project_id str
    STACKIT project ID to which the network interface is associated.
    region str
    The resource region. If not defined, the provider region is used.
    networkId String
    The network ID to which the network interface is associated.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface is associated.
    region String
    The resource region. If not defined, the provider region is used.

    getNetworkInterface Result

    The following output properties are available:

    AllowedAddresses List<string>
    The list of CIDR (Classless Inter-Domain Routing) notations.
    Device string
    The device UUID of the network interface.
    Id string
    Ipv4 string
    The IPv4 address.
    Labels Dictionary<string, string>
    Labels are key-value string pairs which can be attached to a network interface.
    Mac string
    The MAC address of network interface.
    Name string
    The name of the network interface.
    NetworkId string
    The network ID to which the network interface is associated.
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface is associated.
    Security bool
    The Network Interface Security. If set to false, then no security groups will apply to this network interface.
    SecurityGroupIds List<string>
    The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
    Type string
    Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.
    Region string
    The resource region. If not defined, the provider region is used.
    AllowedAddresses []string
    The list of CIDR (Classless Inter-Domain Routing) notations.
    Device string
    The device UUID of the network interface.
    Id string
    Ipv4 string
    The IPv4 address.
    Labels map[string]string
    Labels are key-value string pairs which can be attached to a network interface.
    Mac string
    The MAC address of network interface.
    Name string
    The name of the network interface.
    NetworkId string
    The network ID to which the network interface is associated.
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface is associated.
    Security bool
    The Network Interface Security. If set to false, then no security groups will apply to this network interface.
    SecurityGroupIds []string
    The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
    Type string
    Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.
    Region string
    The resource region. If not defined, the provider region is used.
    allowedAddresses List<String>
    The list of CIDR (Classless Inter-Domain Routing) notations.
    device String
    The device UUID of the network interface.
    id String
    ipv4 String
    The IPv4 address.
    labels Map<String,String>
    Labels are key-value string pairs which can be attached to a network interface.
    mac String
    The MAC address of network interface.
    name String
    The name of the network interface.
    networkId String
    The network ID to which the network interface is associated.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface is associated.
    security Boolean
    The Network Interface Security. If set to false, then no security groups will apply to this network interface.
    securityGroupIds List<String>
    The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
    type String
    Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.
    region String
    The resource region. If not defined, the provider region is used.
    allowedAddresses string[]
    The list of CIDR (Classless Inter-Domain Routing) notations.
    device string
    The device UUID of the network interface.
    id string
    ipv4 string
    The IPv4 address.
    labels {[key: string]: string}
    Labels are key-value string pairs which can be attached to a network interface.
    mac string
    The MAC address of network interface.
    name string
    The name of the network interface.
    networkId string
    The network ID to which the network interface is associated.
    networkInterfaceId string
    The network interface ID.
    projectId string
    STACKIT project ID to which the network interface is associated.
    security boolean
    The Network Interface Security. If set to false, then no security groups will apply to this network interface.
    securityGroupIds string[]
    The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
    type string
    Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.
    region string
    The resource region. If not defined, the provider region is used.
    allowed_addresses Sequence[str]
    The list of CIDR (Classless Inter-Domain Routing) notations.
    device str
    The device UUID of the network interface.
    id str
    ipv4 str
    The IPv4 address.
    labels Mapping[str, str]
    Labels are key-value string pairs which can be attached to a network interface.
    mac str
    The MAC address of network interface.
    name str
    The name of the network interface.
    network_id str
    The network ID to which the network interface is associated.
    network_interface_id str
    The network interface ID.
    project_id str
    STACKIT project ID to which the network interface is associated.
    security bool
    The Network Interface Security. If set to false, then no security groups will apply to this network interface.
    security_group_ids Sequence[str]
    The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
    type str
    Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.
    region str
    The resource region. If not defined, the provider region is used.
    allowedAddresses List<String>
    The list of CIDR (Classless Inter-Domain Routing) notations.
    device String
    The device UUID of the network interface.
    id String
    ipv4 String
    The IPv4 address.
    labels Map<String>
    Labels are key-value string pairs which can be attached to a network interface.
    mac String
    The MAC address of network interface.
    name String
    The name of the network interface.
    networkId String
    The network ID to which the network interface is associated.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface is associated.
    security Boolean
    The Network Interface Security. If set to false, then no security groups will apply to this network interface.
    securityGroupIds List<String>
    The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
    type String
    Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.
    region String
    The resource region. If not defined, the provider region is used.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.