ibm 1.84.0 published on Monday, Oct 13, 2025 by ibm-cloud
ibm.getPiNetworkPeerInterfaces
Provides a read-only data source to retrieve information about pi_network_peer_interfaces for on-prem locations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const piNetworkPeerInterfaces = ibm.getPiNetworkPeerInterfaces({
piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
});
import pulumi
import pulumi_ibm as ibm
pi_network_peer_interfaces = ibm.get_pi_network_peer_interfaces(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b")
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.GetPiNetworkPeerInterfaces(ctx, &ibm.GetPiNetworkPeerInterfacesArgs{
PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
}, 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 piNetworkPeerInterfaces = Ibm.GetPiNetworkPeerInterfaces.Invoke(new()
{
PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
});
});
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.GetPiNetworkPeerInterfacesArgs;
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 piNetworkPeerInterfaces = IbmFunctions.getPiNetworkPeerInterfaces(GetPiNetworkPeerInterfacesArgs.builder()
.piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
.build());
}
}
variables:
piNetworkPeerInterfaces:
fn::invoke:
function: ibm:getPiNetworkPeerInterfaces
arguments:
piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
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 getPiNetworkPeerInterfaces
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 getPiNetworkPeerInterfaces(args: GetPiNetworkPeerInterfacesArgs, opts?: InvokeOptions): Promise<GetPiNetworkPeerInterfacesResult>
function getPiNetworkPeerInterfacesOutput(args: GetPiNetworkPeerInterfacesOutputArgs, opts?: InvokeOptions): Output<GetPiNetworkPeerInterfacesResult>
def get_pi_network_peer_interfaces(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiNetworkPeerInterfacesResult
def get_pi_network_peer_interfaces_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiNetworkPeerInterfacesResult]
func GetPiNetworkPeerInterfaces(ctx *Context, args *GetPiNetworkPeerInterfacesArgs, opts ...InvokeOption) (*GetPiNetworkPeerInterfacesResult, error)
func GetPiNetworkPeerInterfacesOutput(ctx *Context, args *GetPiNetworkPeerInterfacesOutputArgs, opts ...InvokeOption) GetPiNetworkPeerInterfacesResultOutput
> Note: This function is named GetPiNetworkPeerInterfaces
in the Go SDK.
public static class GetPiNetworkPeerInterfaces
{
public static Task<GetPiNetworkPeerInterfacesResult> InvokeAsync(GetPiNetworkPeerInterfacesArgs args, InvokeOptions? opts = null)
public static Output<GetPiNetworkPeerInterfacesResult> Invoke(GetPiNetworkPeerInterfacesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiNetworkPeerInterfacesResult> getPiNetworkPeerInterfaces(GetPiNetworkPeerInterfacesArgs args, InvokeOptions options)
public static Output<GetPiNetworkPeerInterfacesResult> getPiNetworkPeerInterfaces(GetPiNetworkPeerInterfacesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiNetworkPeerInterfaces:getPiNetworkPeerInterfaces
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the pi_network_peer_interfaces.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the pi_network_peer_interfaces.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the pi_network_peer_interfaces.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- (String) The unique identifier of the pi_network_peer_interfaces.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- (String) The unique identifier of the pi_network_peer_interfaces.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the pi_network_peer_interfaces.
getPiNetworkPeerInterfaces Result
The following output properties are available:
- Id string
- (String) The unique identifier of the pi_network_peer_interfaces.
- Peer
Interfaces List<GetPi Network Peer Interfaces Peer Interface> - (List) List of peer interfaces.
- Pi
Cloud stringInstance Id
- Id string
- (String) The unique identifier of the pi_network_peer_interfaces.
- Peer
Interfaces []GetPi Network Peer Interfaces Peer Interface - (List) List of peer interfaces.
- Pi
Cloud stringInstance Id
- id String
- (String) The unique identifier of the pi_network_peer_interfaces.
- peer
Interfaces List<GetPi Network Peer Interfaces Peer Interface> - (List) List of peer interfaces.
- pi
Cloud StringInstance Id
- id string
- (String) The unique identifier of the pi_network_peer_interfaces.
- peer
Interfaces GetPi Network Peer Interfaces Peer Interface[] - (List) List of peer interfaces.
- pi
Cloud stringInstance Id
- id str
- (String) The unique identifier of the pi_network_peer_interfaces.
- peer_
interfaces Sequence[GetPi Network Peer Interfaces Peer Interface] - (List) List of peer interfaces.
- pi_
cloud_ strinstance_ id
- id String
- (String) The unique identifier of the pi_network_peer_interfaces.
- peer
Interfaces List<Property Map> - (List) List of peer interfaces.
- pi
Cloud StringInstance Id
Supporting Types
GetPiNetworkPeerInterfacesPeerInterface
- Device
Id string - (String) Device ID of the peer interface.
- Name string
- (String) Peer interface name.
- Peer
Interface stringId - (String) Peer interface ID.
- Peer
Type string - (String) Type of peer interface.
- Port
Id string - (String) Port ID of the peer interface.
- Device
Id string - (String) Device ID of the peer interface.
- Name string
- (String) Peer interface name.
- Peer
Interface stringId - (String) Peer interface ID.
- Peer
Type string - (String) Type of peer interface.
- Port
Id string - (String) Port ID of the peer interface.
- device
Id String - (String) Device ID of the peer interface.
- name String
- (String) Peer interface name.
- peer
Interface StringId - (String) Peer interface ID.
- peer
Type String - (String) Type of peer interface.
- port
Id String - (String) Port ID of the peer interface.
- device
Id string - (String) Device ID of the peer interface.
- name string
- (String) Peer interface name.
- peer
Interface stringId - (String) Peer interface ID.
- peer
Type string - (String) Type of peer interface.
- port
Id string - (String) Port ID of the peer interface.
- device_
id str - (String) Device ID of the peer interface.
- name str
- (String) Peer interface name.
- peer_
interface_ strid - (String) Peer interface ID.
- peer_
type str - (String) Type of peer interface.
- port_
id str - (String) Port ID of the peer interface.
- device
Id String - (String) Device ID of the peer interface.
- name String
- (String) Peer interface name.
- peer
Interface StringId - (String) Peer interface ID.
- peer
Type String - (String) Type of peer interface.
- port
Id String - (String) Port ID of the peer interface.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.