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-- lon
- zone-- 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:
- PiCloud stringInstance Id 
- The GUID of the service instance associated with an account.
- PiNetwork stringId 
- network id.
- Id string
- (String) The unique network interface id.
- PiCloud stringInstance Id 
- The GUID of the service instance associated with an account.
- PiNetwork stringId 
- network id.
- Id string
- (String) The unique network interface id.
- piCloud StringInstance Id 
- The GUID of the service instance associated with an account.
- piNetwork StringId 
- network id.
- id String
- (String) The unique network interface id.
- piCloud stringInstance Id 
- The GUID of the service instance associated with an account.
- piNetwork 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.
- piCloud StringInstance Id 
- The GUID of the service instance associated with an account.
- piNetwork 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<GetPi Network Interfaces Interface> 
- (List) Network interfaces.
- PiCloud stringInstance Id 
- PiNetwork stringId 
- Id string
- (String) The unique network interface id.
- Interfaces
[]GetPi Network Interfaces Interface 
- (List) Network interfaces.
- PiCloud stringInstance Id 
- PiNetwork stringId 
- id String
- (String) The unique network interface id.
- interfaces
List<GetPi Network Interfaces Interface> 
- (List) Network interfaces.
- piCloud StringInstance Id 
- piNetwork StringId 
- id string
- (String) The unique network interface id.
- interfaces
GetPi Network Interfaces Interface[] 
- (List) Network interfaces.
- piCloud stringInstance Id 
- piNetwork stringId 
- id str
- (String) The unique network interface id.
- interfaces
Sequence[GetPi 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.
- piCloud StringInstance Id 
- piNetwork StringId 
Supporting Types
GetPiNetworkInterfacesInterface    
- Crn string
- (String) The network interface's crn.
- Id string
- (String) The unique network interface id.
- Instances
List<GetPi Network Interfaces Interface Instance> 
- (List) The attached instance to this network interface.
- IpAddress string
- (String) The ip address of this network interface.
- MacAddress string
- (String) The mac address of the network interface.
- Name string
- (String) Name of the network interface (not unique or indexable).
- NetworkSecurity stringGroup Id 
- NetworkSecurity 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
[]GetPi Network Interfaces Interface Instance 
- (List) The attached instance to this network interface.
- IpAddress string
- (String) The ip address of this network interface.
- MacAddress string
- (String) The mac address of the network interface.
- Name string
- (String) Name of the network interface (not unique or indexable).
- NetworkSecurity stringGroup Id 
- NetworkSecurity []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<GetPi Network Interfaces Interface Instance> 
- (List) The attached instance to this network interface.
- ipAddress String
- (String) The ip address of this network interface.
- macAddress String
- (String) The mac address of the network interface.
- name String
- (String) Name of the network interface (not unique or indexable).
- networkSecurity StringGroup Id 
- networkSecurity 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
GetPi Network Interfaces Interface Instance[] 
- (List) The attached instance to this network interface.
- ipAddress string
- (String) The ip address of this network interface.
- macAddress string
- (String) The mac address of the network interface.
- name string
- (String) Name of the network interface (not unique or indexable).
- networkSecurity stringGroup Id 
- networkSecurity 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[GetPi 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.
- ipAddress String
- (String) The ip address of this network interface.
- macAddress String
- (String) The mac address of the network interface.
- name String
- (String) Name of the network interface (not unique or indexable).
- networkSecurity StringGroup Id 
- networkSecurity 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.
- InstanceId string
- (String) The attached instance id.
- Href string
- (String) Link to instance resource.
- InstanceId string
- (String) The attached instance id.
- href String
- (String) Link to instance resource.
- instanceId String
- (String) The attached instance id.
- href string
- (String) Link to instance resource.
- instanceId 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.
- instanceId 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.