ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiCloudConnection
Explore with Pulumi AI
Retrieve information about an existing IBM Cloud Power Virtual Server Cloud cloud connection. For more information, about IBM power virtual server cloud, see getting started with IBM Power Systems Virtual Servers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getPiCloudConnection({
piCloudConnectionName: "test_cloud_connection",
piCloudInstanceId: "<value of the cloud_instance_id>",
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_pi_cloud_connection(pi_cloud_connection_name="test_cloud_connection",
pi_cloud_instance_id="<value of the cloud_instance_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.LookupPiCloudConnection(ctx, &ibm.LookupPiCloudConnectionArgs{
PiCloudConnectionName: "test_cloud_connection",
PiCloudInstanceId: "<value of the cloud_instance_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 example = Ibm.GetPiCloudConnection.Invoke(new()
{
PiCloudConnectionName = "test_cloud_connection",
PiCloudInstanceId = "<value of the cloud_instance_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.GetPiCloudConnectionArgs;
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 example = IbmFunctions.getPiCloudConnection(GetPiCloudConnectionArgs.builder()
.piCloudConnectionName("test_cloud_connection")
.piCloudInstanceId("<value of the cloud_instance_id>")
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getPiCloudConnection
arguments:
piCloudConnectionName: test_cloud_connection
piCloudInstanceId: <value of the cloud_instance_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 getPiCloudConnection
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 getPiCloudConnection(args: GetPiCloudConnectionArgs, opts?: InvokeOptions): Promise<GetPiCloudConnectionResult>
function getPiCloudConnectionOutput(args: GetPiCloudConnectionOutputArgs, opts?: InvokeOptions): Output<GetPiCloudConnectionResult>
def get_pi_cloud_connection(id: Optional[str] = None,
pi_cloud_connection_name: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiCloudConnectionResult
def get_pi_cloud_connection_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_connection_name: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiCloudConnectionResult]
func LookupPiCloudConnection(ctx *Context, args *LookupPiCloudConnectionArgs, opts ...InvokeOption) (*LookupPiCloudConnectionResult, error)
func LookupPiCloudConnectionOutput(ctx *Context, args *LookupPiCloudConnectionOutputArgs, opts ...InvokeOption) LookupPiCloudConnectionResultOutput
> Note: This function is named LookupPiCloudConnection
in the Go SDK.
public static class GetPiCloudConnection
{
public static Task<GetPiCloudConnectionResult> InvokeAsync(GetPiCloudConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetPiCloudConnectionResult> Invoke(GetPiCloudConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiCloudConnectionResult> getPiCloudConnection(GetPiCloudConnectionArgs args, InvokeOptions options)
public static Output<GetPiCloudConnectionResult> getPiCloudConnection(GetPiCloudConnectionArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiCloudConnection:getPiCloudConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringConnection Name - The cloud connection name to be used.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the cloud connection.
- Pi
Cloud stringConnection Name - The cloud connection name to be used.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Id string
- (String) The unique identifier of the cloud connection.
- pi
Cloud StringConnection Name - The cloud connection name to be used.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the cloud connection.
- pi
Cloud stringConnection Name - The cloud connection name to be used.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- id string
- (String) The unique identifier of the cloud connection.
- pi_
cloud_ strconnection_ name - The cloud connection name to be used.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- id str
- (String) The unique identifier of the cloud connection.
- pi
Cloud StringConnection Name - The cloud connection name to be used.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- id String
- (String) The unique identifier of the cloud connection.
getPiCloudConnection Result
The following output properties are available:
- Classic
Enabled bool - (Boolean) Enable classic endpoint destination.
- Connection
Mode string - (String) Type of service the gateway is attached to.
- Global
Routing bool - (String) Enable global routing for this cloud connection.
- Gre
Destination stringAddress - (String) GRE destination IP address.
- Gre
Source stringAddress - (String) GRE auto-assigned source IP address.
- Ibm
Ip stringAddress - (String) The IBM IP address.
- Id string
- (String) The unique identifier of the cloud connection.
- Metered bool
- (String) Enable metering for this cloud connection.
- Networks List<string>
- (Set) Set of Networks attached to this cloud connection.
- Pi
Cloud stringConnection Name - Pi
Cloud stringInstance Id - Port string
- (String) Port.
- Speed double
- (Integer) Speed of the cloud connection (speed in megabits per second).
- Status string
- (String) Link status.
- User
Ip stringAddress - (String) User IP address.
- Vpc
Crns List<string> - (Set) Set of VPCs attached to this cloud connection.
- Vpc
Enabled bool - (Boolean) Enable VPC for this cloud connection.
- Classic
Enabled bool - (Boolean) Enable classic endpoint destination.
- Connection
Mode string - (String) Type of service the gateway is attached to.
- Global
Routing bool - (String) Enable global routing for this cloud connection.
- Gre
Destination stringAddress - (String) GRE destination IP address.
- Gre
Source stringAddress - (String) GRE auto-assigned source IP address.
- Ibm
Ip stringAddress - (String) The IBM IP address.
- Id string
- (String) The unique identifier of the cloud connection.
- Metered bool
- (String) Enable metering for this cloud connection.
- Networks []string
- (Set) Set of Networks attached to this cloud connection.
- Pi
Cloud stringConnection Name - Pi
Cloud stringInstance Id - Port string
- (String) Port.
- Speed float64
- (Integer) Speed of the cloud connection (speed in megabits per second).
- Status string
- (String) Link status.
- User
Ip stringAddress - (String) User IP address.
- Vpc
Crns []string - (Set) Set of VPCs attached to this cloud connection.
- Vpc
Enabled bool - (Boolean) Enable VPC for this cloud connection.
- classic
Enabled Boolean - (Boolean) Enable classic endpoint destination.
- connection
Mode String - (String) Type of service the gateway is attached to.
- global
Routing Boolean - (String) Enable global routing for this cloud connection.
- gre
Destination StringAddress - (String) GRE destination IP address.
- gre
Source StringAddress - (String) GRE auto-assigned source IP address.
- ibm
Ip StringAddress - (String) The IBM IP address.
- id String
- (String) The unique identifier of the cloud connection.
- metered Boolean
- (String) Enable metering for this cloud connection.
- networks List<String>
- (Set) Set of Networks attached to this cloud connection.
- pi
Cloud StringConnection Name - pi
Cloud StringInstance Id - port String
- (String) Port.
- speed Double
- (Integer) Speed of the cloud connection (speed in megabits per second).
- status String
- (String) Link status.
- user
Ip StringAddress - (String) User IP address.
- vpc
Crns List<String> - (Set) Set of VPCs attached to this cloud connection.
- vpc
Enabled Boolean - (Boolean) Enable VPC for this cloud connection.
- classic
Enabled boolean - (Boolean) Enable classic endpoint destination.
- connection
Mode string - (String) Type of service the gateway is attached to.
- global
Routing boolean - (String) Enable global routing for this cloud connection.
- gre
Destination stringAddress - (String) GRE destination IP address.
- gre
Source stringAddress - (String) GRE auto-assigned source IP address.
- ibm
Ip stringAddress - (String) The IBM IP address.
- id string
- (String) The unique identifier of the cloud connection.
- metered boolean
- (String) Enable metering for this cloud connection.
- networks string[]
- (Set) Set of Networks attached to this cloud connection.
- pi
Cloud stringConnection Name - pi
Cloud stringInstance Id - port string
- (String) Port.
- speed number
- (Integer) Speed of the cloud connection (speed in megabits per second).
- status string
- (String) Link status.
- user
Ip stringAddress - (String) User IP address.
- vpc
Crns string[] - (Set) Set of VPCs attached to this cloud connection.
- vpc
Enabled boolean - (Boolean) Enable VPC for this cloud connection.
- classic_
enabled bool - (Boolean) Enable classic endpoint destination.
- connection_
mode str - (String) Type of service the gateway is attached to.
- global_
routing bool - (String) Enable global routing for this cloud connection.
- gre_
destination_ straddress - (String) GRE destination IP address.
- gre_
source_ straddress - (String) GRE auto-assigned source IP address.
- ibm_
ip_ straddress - (String) The IBM IP address.
- id str
- (String) The unique identifier of the cloud connection.
- metered bool
- (String) Enable metering for this cloud connection.
- networks Sequence[str]
- (Set) Set of Networks attached to this cloud connection.
- pi_
cloud_ strconnection_ name - pi_
cloud_ strinstance_ id - port str
- (String) Port.
- speed float
- (Integer) Speed of the cloud connection (speed in megabits per second).
- status str
- (String) Link status.
- user_
ip_ straddress - (String) User IP address.
- vpc_
crns Sequence[str] - (Set) Set of VPCs attached to this cloud connection.
- vpc_
enabled bool - (Boolean) Enable VPC for this cloud connection.
- classic
Enabled Boolean - (Boolean) Enable classic endpoint destination.
- connection
Mode String - (String) Type of service the gateway is attached to.
- global
Routing Boolean - (String) Enable global routing for this cloud connection.
- gre
Destination StringAddress - (String) GRE destination IP address.
- gre
Source StringAddress - (String) GRE auto-assigned source IP address.
- ibm
Ip StringAddress - (String) The IBM IP address.
- id String
- (String) The unique identifier of the cloud connection.
- metered Boolean
- (String) Enable metering for this cloud connection.
- networks List<String>
- (Set) Set of Networks attached to this cloud connection.
- pi
Cloud StringConnection Name - pi
Cloud StringInstance Id - port String
- (String) Port.
- speed Number
- (Integer) Speed of the cloud connection (speed in megabits per second).
- status String
- (String) Link status.
- user
Ip StringAddress - (String) User IP address.
- vpc
Crns List<String> - (Set) Set of VPCs attached to this cloud connection.
- vpc
Enabled Boolean - (Boolean) Enable VPC for this cloud connection.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.