ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getPiNetworkInterfaces
Explore with Pulumi AI
Retrieve information about network interfaces.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const networkInterfaces = ibm.getPiNetworkInterfaces({
    piCloudInstanceId: "<value of the cloud_instance_id>",
    piNetworkId: "network_id",
});
import pulumi
import pulumi_ibm as ibm
network_interfaces = ibm.get_pi_network_interfaces(pi_cloud_instance_id="<value of the cloud_instance_id>",
    pi_network_id="network_id")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.GetPiNetworkInterfaces(ctx, &ibm.GetPiNetworkInterfacesArgs{
			PiCloudInstanceId: "<value of the cloud_instance_id>",
			PiNetworkId:       "network_id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var networkInterfaces = Ibm.GetPiNetworkInterfaces.Invoke(new()
    {
        PiCloudInstanceId = "<value of the cloud_instance_id>",
        PiNetworkId = "network_id",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetPiNetworkInterfacesArgs;
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) {
        final var networkInterfaces = IbmFunctions.getPiNetworkInterfaces(GetPiNetworkInterfacesArgs.builder()
            .piCloudInstanceId("<value of the cloud_instance_id>")
            .piNetworkId("network_id")
            .build());
    }
}
variables:
  networkInterfaces:
    fn::invoke:
      function: ibm:getPiNetworkInterfaces
      arguments:
        piCloudInstanceId: <value of the cloud_instance_id>
        piNetworkId: network_id
Notes
- Please find supported Regions for endpoints.
 - If a Power cloud instance is provisioned at 
lon04, The provider level attributes should be as follows:region-lonzone-lon04
 
Example usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() => 
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
Using getPiNetworkInterfaces
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 getPiNetworkInterfaces(args: GetPiNetworkInterfacesArgs, opts?: InvokeOptions): Promise<GetPiNetworkInterfacesResult>
function getPiNetworkInterfacesOutput(args: GetPiNetworkInterfacesOutputArgs, opts?: InvokeOptions): Output<GetPiNetworkInterfacesResult>def get_pi_network_interfaces(id: Optional[str] = None,
                              pi_cloud_instance_id: Optional[str] = None,
                              pi_network_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPiNetworkInterfacesResult
def get_pi_network_interfaces_output(id: Optional[pulumi.Input[str]] = None,
                              pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                              pi_network_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPiNetworkInterfacesResult]func GetPiNetworkInterfaces(ctx *Context, args *GetPiNetworkInterfacesArgs, opts ...InvokeOption) (*GetPiNetworkInterfacesResult, error)
func GetPiNetworkInterfacesOutput(ctx *Context, args *GetPiNetworkInterfacesOutputArgs, opts ...InvokeOption) GetPiNetworkInterfacesResultOutput> Note: This function is named GetPiNetworkInterfaces in the Go SDK.
public static class GetPiNetworkInterfaces 
{
    public static Task<GetPiNetworkInterfacesResult> InvokeAsync(GetPiNetworkInterfacesArgs args, InvokeOptions? opts = null)
    public static Output<GetPiNetworkInterfacesResult> Invoke(GetPiNetworkInterfacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPiNetworkInterfacesResult> getPiNetworkInterfaces(GetPiNetworkInterfacesArgs args, InvokeOptions options)
public static Output<GetPiNetworkInterfacesResult> getPiNetworkInterfaces(GetPiNetworkInterfacesArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getPiNetworkInterfaces:getPiNetworkInterfaces
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Pi
Cloud stringInstance Id  - The GUID of the service instance associated with an account.
 - Pi
Network stringId  - network id.
 - Id string
 - (String) The unique network interface id.
 
- Pi
Cloud stringInstance Id  - The GUID of the service instance associated with an account.
 - Pi
Network stringId  - network id.
 - Id string
 - (String) The unique network interface id.
 
- pi
Cloud StringInstance Id  - The GUID of the service instance associated with an account.
 - pi
Network StringId  - network id.
 - id String
 - (String) The unique network interface id.
 
- pi
Cloud stringInstance Id  - The GUID of the service instance associated with an account.
 - pi
Network stringId  - network id.
 - id string
 - (String) The unique network interface id.
 
- pi_
cloud_ strinstance_ id  - The GUID of the service instance associated with an account.
 - pi_
network_ strid  - network id.
 - id str
 - (String) The unique network interface id.
 
- pi
Cloud StringInstance Id  - The GUID of the service instance associated with an account.
 - pi
Network StringId  - network id.
 - id String
 - (String) The unique network interface id.
 
getPiNetworkInterfaces Result
The following output properties are available:
- Id string
 - (String) The unique network interface id.
 - Interfaces
List<Get
Pi Network Interfaces Interface>  - (List) Network interfaces.
 - Pi
Cloud stringInstance Id  - Pi
Network stringId  
- Id string
 - (String) The unique network interface id.
 - Interfaces
[]Get
Pi Network Interfaces Interface  - (List) Network interfaces.
 - Pi
Cloud stringInstance Id  - Pi
Network stringId  
- id String
 - (String) The unique network interface id.
 - interfaces
List<Get
Pi Network Interfaces Interface>  - (List) Network interfaces.
 - pi
Cloud StringInstance Id  - pi
Network StringId  
- id string
 - (String) The unique network interface id.
 - interfaces
Get
Pi Network Interfaces Interface[]  - (List) Network interfaces.
 - pi
Cloud stringInstance Id  - pi
Network stringId  
- id str
 - (String) The unique network interface id.
 - interfaces
Sequence[Get
Pi Network Interfaces Interface]  - (List) Network interfaces.
 - pi_
cloud_ strinstance_ id  - pi_
network_ strid  
- id String
 - (String) The unique network interface id.
 - interfaces List<Property Map>
 - (List) Network interfaces.
 - pi
Cloud StringInstance Id  - pi
Network StringId  
Supporting Types
GetPiNetworkInterfacesInterface    
- Crn string
 - (String) The network interface's crn.
 - Id string
 - (String) The unique network interface id.
 - Instances
List<Get
Pi Network Interfaces Interface Instance>  - (List) The attached instance to this network interface.
 - Ip
Address string - (String) The ip address of this network interface.
 - Mac
Address string - (String) The mac address of the network interface.
 - Name string
 - (String) Name of the network interface (not unique or indexable).
 - Network
Security stringGroup Id  - Network
Security List<string>Group Ids  - (List) List of network security groups that the network interface is a member of.
 - Status string
 - (String) The status of the network interface.
 - List<string>
 - (List) List of user tags attached to the resource.
 
- Crn string
 - (String) The network interface's crn.
 - Id string
 - (String) The unique network interface id.
 - Instances
[]Get
Pi Network Interfaces Interface Instance  - (List) The attached instance to this network interface.
 - Ip
Address string - (String) The ip address of this network interface.
 - Mac
Address string - (String) The mac address of the network interface.
 - Name string
 - (String) Name of the network interface (not unique or indexable).
 - Network
Security stringGroup Id  - Network
Security []stringGroup Ids  - (List) List of network security groups that the network interface is a member of.
 - Status string
 - (String) The status of the network interface.
 - []string
 - (List) List of user tags attached to the resource.
 
- crn String
 - (String) The network interface's crn.
 - id String
 - (String) The unique network interface id.
 - instances
List<Get
Pi Network Interfaces Interface Instance>  - (List) The attached instance to this network interface.
 - ip
Address String - (String) The ip address of this network interface.
 - mac
Address String - (String) The mac address of the network interface.
 - name String
 - (String) Name of the network interface (not unique or indexable).
 - network
Security StringGroup Id  - network
Security List<String>Group Ids  - (List) List of network security groups that the network interface is a member of.
 - status String
 - (String) The status of the network interface.
 - List<String>
 - (List) List of user tags attached to the resource.
 
- crn string
 - (String) The network interface's crn.
 - id string
 - (String) The unique network interface id.
 - instances
Get
Pi Network Interfaces Interface Instance[]  - (List) The attached instance to this network interface.
 - ip
Address string - (String) The ip address of this network interface.
 - mac
Address string - (String) The mac address of the network interface.
 - name string
 - (String) Name of the network interface (not unique or indexable).
 - network
Security stringGroup Id  - network
Security string[]Group Ids  - (List) List of network security groups that the network interface is a member of.
 - status string
 - (String) The status of the network interface.
 - string[]
 - (List) List of user tags attached to the resource.
 
- crn str
 - (String) The network interface's crn.
 - id str
 - (String) The unique network interface id.
 - instances
Sequence[Get
Pi Network Interfaces Interface Instance]  - (List) The attached instance to this network interface.
 - ip_
address str - (String) The ip address of this network interface.
 - mac_
address str - (String) The mac address of the network interface.
 - name str
 - (String) Name of the network interface (not unique or indexable).
 - network_
security_ strgroup_ id  - network_
security_ Sequence[str]group_ ids  - (List) List of network security groups that the network interface is a member of.
 - status str
 - (String) The status of the network interface.
 - Sequence[str]
 - (List) List of user tags attached to the resource.
 
- crn String
 - (String) The network interface's crn.
 - id String
 - (String) The unique network interface id.
 - instances List<Property Map>
 - (List) The attached instance to this network interface.
 - ip
Address String - (String) The ip address of this network interface.
 - mac
Address String - (String) The mac address of the network interface.
 - name String
 - (String) Name of the network interface (not unique or indexable).
 - network
Security StringGroup Id  - network
Security List<String>Group Ids  - (List) List of network security groups that the network interface is a member of.
 - status String
 - (String) The status of the network interface.
 - List<String>
 - (List) List of user tags attached to the resource.
 
GetPiNetworkInterfacesInterfaceInstance     
- Href string
 - (String) Link to instance resource.
 - Instance
Id string - (String) The attached instance id.
 
- Href string
 - (String) Link to instance resource.
 - Instance
Id string - (String) The attached instance id.
 
- href String
 - (String) Link to instance resource.
 - instance
Id String - (String) The attached instance id.
 
- href string
 - (String) Link to instance resource.
 - instance
Id string - (String) The attached instance id.
 
- href str
 - (String) Link to instance resource.
 - instance_
id str - (String) The attached instance id.
 
- href String
 - (String) Link to instance resource.
 - instance
Id String - (String) The attached instance id.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.