ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiNetwork
Explore with Pulumi AI
Retrieve information about the network that your Power Systems Virtual Server instance is connected to. For more information, about power virtual server instance network, see setting up an IBM network install server.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const dsNetwork = ibm.getPiNetwork({
piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
piNetworkName: "APP",
});
import pulumi
import pulumi_ibm as ibm
ds_network = ibm.get_pi_network(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
pi_network_name="APP")
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.LookupPiNetwork(ctx, &ibm.LookupPiNetworkArgs{
PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
PiNetworkName: "APP",
}, 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 dsNetwork = Ibm.GetPiNetwork.Invoke(new()
{
PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
PiNetworkName = "APP",
});
});
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.GetPiNetworkArgs;
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 dsNetwork = IbmFunctions.getPiNetwork(GetPiNetworkArgs.builder()
.piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
.piNetworkName("APP")
.build());
}
}
variables:
dsNetwork:
fn::invoke:
function: ibm:getPiNetwork
arguments:
piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
piNetworkName: APP
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 getPiNetwork
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 getPiNetwork(args: GetPiNetworkArgs, opts?: InvokeOptions): Promise<GetPiNetworkResult>
function getPiNetworkOutput(args: GetPiNetworkOutputArgs, opts?: InvokeOptions): Output<GetPiNetworkResult>
def get_pi_network(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_network_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiNetworkResult
def get_pi_network_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
pi_network_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiNetworkResult]
func LookupPiNetwork(ctx *Context, args *LookupPiNetworkArgs, opts ...InvokeOption) (*LookupPiNetworkResult, error)
func LookupPiNetworkOutput(ctx *Context, args *LookupPiNetworkOutputArgs, opts ...InvokeOption) LookupPiNetworkResultOutput
> Note: This function is named LookupPiNetwork
in the Go SDK.
public static class GetPiNetwork
{
public static Task<GetPiNetworkResult> InvokeAsync(GetPiNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetPiNetworkResult> Invoke(GetPiNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiNetworkResult> getPiNetwork(GetPiNetworkArgs args, InvokeOptions options)
public static Output<GetPiNetworkResult> getPiNetwork(GetPiNetworkArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiNetwork:getPiNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringName - The name of the network.
- Id string
- (String) The ID of the network.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Network stringName - The name of the network.
- Id string
- (String) The ID of the network.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringName - The name of the network.
- id String
- (String) The ID of the network.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Network stringName - The name of the network.
- id string
- (String) The ID of the network.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
network_ strname - The name of the network.
- id str
- (String) The ID of the network.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Network StringName - The name of the network.
- id String
- (String) The ID of the network.
getPiNetwork Result
The following output properties are available:
- Access
Config string - (Deprecated, String) The network communication configuration option of the network (for on-prem locations only). Use
peer_id
instead. - Available
Ip doubleCount - (Float) The total number of IP addresses that you have in your network.
- Cidr string
- (String) The CIDR of the network.
- Crn string
- (String) The CRN of this resource.
- Dns List<string>
- (Set) The DNS Servers for the network.
- Gateway string
- (String) The network gateway that is attached to your network.
- Id string
- (String) The ID of the network.
- Jumbo bool
- (Deprecated, Boolean) MTU Jumbo option of the network (for multi-zone locations only).
- Mtu double
- (Boolean) Maximum Transmission Unit option of the network.
- Name string
- Network
Address List<GetTranslations Pi Network Network Address Translation> - (List) Contains the network address translation details (for on-prem locations only).
- Peer
Id string - (String) Network peer ID (for on-prem locations only).
- Pi
Cloud stringInstance Id - Pi
Network stringName - Type string
- (String) The type of network.
- Used
Ip doubleCount - (Float) The number of used IP addresses.
- Used
Ip doublePercent - (Float) The percentage of IP addresses used.
- List<string>
- (List) List of user tags attached to the resource.
- Vlan
Id double - (String) The VLAN ID that the network is connected to.
- Access
Config string - (Deprecated, String) The network communication configuration option of the network (for on-prem locations only). Use
peer_id
instead. - Available
Ip float64Count - (Float) The total number of IP addresses that you have in your network.
- Cidr string
- (String) The CIDR of the network.
- Crn string
- (String) The CRN of this resource.
- Dns []string
- (Set) The DNS Servers for the network.
- Gateway string
- (String) The network gateway that is attached to your network.
- Id string
- (String) The ID of the network.
- Jumbo bool
- (Deprecated, Boolean) MTU Jumbo option of the network (for multi-zone locations only).
- Mtu float64
- (Boolean) Maximum Transmission Unit option of the network.
- Name string
- Network
Address []GetTranslations Pi Network Network Address Translation - (List) Contains the network address translation details (for on-prem locations only).
- Peer
Id string - (String) Network peer ID (for on-prem locations only).
- Pi
Cloud stringInstance Id - Pi
Network stringName - Type string
- (String) The type of network.
- Used
Ip float64Count - (Float) The number of used IP addresses.
- Used
Ip float64Percent - (Float) The percentage of IP addresses used.
- []string
- (List) List of user tags attached to the resource.
- Vlan
Id float64 - (String) The VLAN ID that the network is connected to.
- access
Config String - (Deprecated, String) The network communication configuration option of the network (for on-prem locations only). Use
peer_id
instead. - available
Ip DoubleCount - (Float) The total number of IP addresses that you have in your network.
- cidr String
- (String) The CIDR of the network.
- crn String
- (String) The CRN of this resource.
- dns List<String>
- (Set) The DNS Servers for the network.
- gateway String
- (String) The network gateway that is attached to your network.
- id String
- (String) The ID of the network.
- jumbo Boolean
- (Deprecated, Boolean) MTU Jumbo option of the network (for multi-zone locations only).
- mtu Double
- (Boolean) Maximum Transmission Unit option of the network.
- name String
- network
Address List<GetTranslations Pi Network Network Address Translation> - (List) Contains the network address translation details (for on-prem locations only).
- peer
Id String - (String) Network peer ID (for on-prem locations only).
- pi
Cloud StringInstance Id - pi
Network StringName - type String
- (String) The type of network.
- used
Ip DoubleCount - (Float) The number of used IP addresses.
- used
Ip DoublePercent - (Float) The percentage of IP addresses used.
- List<String>
- (List) List of user tags attached to the resource.
- vlan
Id Double - (String) The VLAN ID that the network is connected to.
- access
Config string - (Deprecated, String) The network communication configuration option of the network (for on-prem locations only). Use
peer_id
instead. - available
Ip numberCount - (Float) The total number of IP addresses that you have in your network.
- cidr string
- (String) The CIDR of the network.
- crn string
- (String) The CRN of this resource.
- dns string[]
- (Set) The DNS Servers for the network.
- gateway string
- (String) The network gateway that is attached to your network.
- id string
- (String) The ID of the network.
- jumbo boolean
- (Deprecated, Boolean) MTU Jumbo option of the network (for multi-zone locations only).
- mtu number
- (Boolean) Maximum Transmission Unit option of the network.
- name string
- network
Address GetTranslations Pi Network Network Address Translation[] - (List) Contains the network address translation details (for on-prem locations only).
- peer
Id string - (String) Network peer ID (for on-prem locations only).
- pi
Cloud stringInstance Id - pi
Network stringName - type string
- (String) The type of network.
- used
Ip numberCount - (Float) The number of used IP addresses.
- used
Ip numberPercent - (Float) The percentage of IP addresses used.
- string[]
- (List) List of user tags attached to the resource.
- vlan
Id number - (String) The VLAN ID that the network is connected to.
- access_
config str - (Deprecated, String) The network communication configuration option of the network (for on-prem locations only). Use
peer_id
instead. - available_
ip_ floatcount - (Float) The total number of IP addresses that you have in your network.
- cidr str
- (String) The CIDR of the network.
- crn str
- (String) The CRN of this resource.
- dns Sequence[str]
- (Set) The DNS Servers for the network.
- gateway str
- (String) The network gateway that is attached to your network.
- id str
- (String) The ID of the network.
- jumbo bool
- (Deprecated, Boolean) MTU Jumbo option of the network (for multi-zone locations only).
- mtu float
- (Boolean) Maximum Transmission Unit option of the network.
- name str
- network_
address_ Sequence[Gettranslations Pi Network Network Address Translation] - (List) Contains the network address translation details (for on-prem locations only).
- peer_
id str - (String) Network peer ID (for on-prem locations only).
- pi_
cloud_ strinstance_ id - pi_
network_ strname - type str
- (String) The type of network.
- used_
ip_ floatcount - (Float) The number of used IP addresses.
- used_
ip_ floatpercent - (Float) The percentage of IP addresses used.
- Sequence[str]
- (List) List of user tags attached to the resource.
- vlan_
id float - (String) The VLAN ID that the network is connected to.
- access
Config String - (Deprecated, String) The network communication configuration option of the network (for on-prem locations only). Use
peer_id
instead. - available
Ip NumberCount - (Float) The total number of IP addresses that you have in your network.
- cidr String
- (String) The CIDR of the network.
- crn String
- (String) The CRN of this resource.
- dns List<String>
- (Set) The DNS Servers for the network.
- gateway String
- (String) The network gateway that is attached to your network.
- id String
- (String) The ID of the network.
- jumbo Boolean
- (Deprecated, Boolean) MTU Jumbo option of the network (for multi-zone locations only).
- mtu Number
- (Boolean) Maximum Transmission Unit option of the network.
- name String
- network
Address List<Property Map>Translations - (List) Contains the network address translation details (for on-prem locations only).
- peer
Id String - (String) Network peer ID (for on-prem locations only).
- pi
Cloud StringInstance Id - pi
Network StringName - type String
- (String) The type of network.
- used
Ip NumberCount - (Float) The number of used IP addresses.
- used
Ip NumberPercent - (Float) The percentage of IP addresses used.
- List<String>
- (List) List of user tags attached to the resource.
- vlan
Id Number - (String) The VLAN ID that the network is connected to.
Supporting Types
GetPiNetworkNetworkAddressTranslation
- Source
Ip string - (String) source IP address.
- Source
Ip string - (String) source IP address.
- source
Ip String - (String) source IP address.
- source
Ip string - (String) source IP address.
- source_
ip str - (String) source IP address.
- source
Ip String - (String) source IP address.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.