ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getDb2ConnectionInfo
Explore with Pulumi AI
Retrieve information about connection info of an existing IBM Db2 Instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const db2ConnectionInfo = ibm.getDb2ConnectionInfo({
deploymentId: "<encoded_crn>",
xDeploymentId: "<crn>",
});
import pulumi
import pulumi_ibm as ibm
db2_connection_info = ibm.get_db2_connection_info(deployment_id="<encoded_crn>",
x_deployment_id="<crn>")
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.GetDb2ConnectionInfo(ctx, &ibm.GetDb2ConnectionInfoArgs{
DeploymentId: "<encoded_crn>",
XDeploymentId: "<crn>",
}, 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 db2ConnectionInfo = Ibm.GetDb2ConnectionInfo.Invoke(new()
{
DeploymentId = "<encoded_crn>",
XDeploymentId = "<crn>",
});
});
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.GetDb2ConnectionInfoArgs;
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 db2ConnectionInfo = IbmFunctions.getDb2ConnectionInfo(GetDb2ConnectionInfoArgs.builder()
.deploymentId("<encoded_crn>")
.xDeploymentId("<crn>")
.build());
}
}
variables:
db2ConnectionInfo:
fn::invoke:
function: ibm:getDb2ConnectionInfo
arguments:
deploymentId: <encoded_crn>
xDeploymentId: <crn>
Using getDb2ConnectionInfo
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 getDb2ConnectionInfo(args: GetDb2ConnectionInfoArgs, opts?: InvokeOptions): Promise<GetDb2ConnectionInfoResult>
function getDb2ConnectionInfoOutput(args: GetDb2ConnectionInfoOutputArgs, opts?: InvokeOptions): Output<GetDb2ConnectionInfoResult>
def get_db2_connection_info(deployment_id: Optional[str] = None,
id: Optional[str] = None,
x_deployment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDb2ConnectionInfoResult
def get_db2_connection_info_output(deployment_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
x_deployment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDb2ConnectionInfoResult]
func GetDb2ConnectionInfo(ctx *Context, args *GetDb2ConnectionInfoArgs, opts ...InvokeOption) (*GetDb2ConnectionInfoResult, error)
func GetDb2ConnectionInfoOutput(ctx *Context, args *GetDb2ConnectionInfoOutputArgs, opts ...InvokeOption) GetDb2ConnectionInfoResultOutput
> Note: This function is named GetDb2ConnectionInfo
in the Go SDK.
public static class GetDb2ConnectionInfo
{
public static Task<GetDb2ConnectionInfoResult> InvokeAsync(GetDb2ConnectionInfoArgs args, InvokeOptions? opts = null)
public static Output<GetDb2ConnectionInfoResult> Invoke(GetDb2ConnectionInfoInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDb2ConnectionInfoResult> getDb2ConnectionInfo(GetDb2ConnectionInfoArgs args, InvokeOptions options)
public static Output<GetDb2ConnectionInfoResult> getDb2ConnectionInfo(GetDb2ConnectionInfoArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDb2ConnectionInfo:getDb2ConnectionInfo
arguments:
# arguments dictionary
The following arguments are supported:
- Deployment
Id string - Encoded CRN of the instance this connection info relates to.
- XDeployment
Id string - CRN of the instance this connection info relates to.
- Id string
- Deployment
Id string - Encoded CRN of the instance this connection info relates to.
- XDeployment
Id string - CRN of the instance this connection info relates to.
- Id string
- deployment
Id String - Encoded CRN of the instance this connection info relates to.
- x
Deployment StringId - CRN of the instance this connection info relates to.
- id String
- deployment
Id string - Encoded CRN of the instance this connection info relates to.
- x
Deployment stringId - CRN of the instance this connection info relates to.
- id string
- deployment_
id str - Encoded CRN of the instance this connection info relates to.
- x_
deployment_ strid - CRN of the instance this connection info relates to.
- id str
- deployment
Id String - Encoded CRN of the instance this connection info relates to.
- x
Deployment StringId - CRN of the instance this connection info relates to.
- id String
getDb2ConnectionInfo Result
The following output properties are available:
- Deployment
Id string - Id string
- Privates
List<Get
Db2Connection Info Private> - (String) An array of private connections. Nested scheme for private:
- Publics
List<Get
Db2Connection Info Public> - (String) An array of public connections. Nested scheme for public:
- XDeployment
Id string
- Deployment
Id string - Id string
- Privates
[]Get
Db2Connection Info Private - (String) An array of private connections. Nested scheme for private:
- Publics
[]Get
Db2Connection Info Public - (String) An array of public connections. Nested scheme for public:
- XDeployment
Id string
- deployment
Id String - id String
- privates
List<Get
Db2Connection Info Private> - (String) An array of private connections. Nested scheme for private:
- publics
List<Get
Db2Connection Info Public> - (String) An array of public connections. Nested scheme for public:
- x
Deployment StringId
- deployment
Id string - id string
- privates
Get
Db2Connection Info Private[] - (String) An array of private connections. Nested scheme for private:
- publics
Get
Db2Connection Info Public[] - (String) An array of public connections. Nested scheme for public:
- x
Deployment stringId
- deployment_
id str - id str
- privates
Sequence[Get
Db2Connection Info Private] - (String) An array of private connections. Nested scheme for private:
- publics
Sequence[Get
Db2Connection Info Public] - (String) An array of public connections. Nested scheme for public:
- x_
deployment_ strid
- deployment
Id String - id String
- privates List<Property Map>
- (String) An array of private connections. Nested scheme for private:
- publics List<Property Map>
- (String) An array of public connections. Nested scheme for public:
- x
Deployment StringId
Supporting Types
GetDb2ConnectionInfoPrivate
- Cloud
Service stringOffering - (String) The type of cloud service offering, specifying the DB2 instance as part of a managed service.
- Database
Name string - Database
Version string - Db
Vpc stringEndpoint Service - (String) The endpoint service that facilitates secure communication within a VPC for the DB2 instance.
- Hostname string
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- Private
Service stringName - Ssl bool
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- Ssl
Port string - Vpe
Service stringCrn - (String) The CRN that uniquely identifies the Virtual Private Endpoint (VPE) service used for secure access to the DB2 instance.
- Cloud
Service stringOffering - (String) The type of cloud service offering, specifying the DB2 instance as part of a managed service.
- Database
Name string - Database
Version string - Db
Vpc stringEndpoint Service - (String) The endpoint service that facilitates secure communication within a VPC for the DB2 instance.
- Hostname string
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- Private
Service stringName - Ssl bool
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- Ssl
Port string - Vpe
Service stringCrn - (String) The CRN that uniquely identifies the Virtual Private Endpoint (VPE) service used for secure access to the DB2 instance.
- cloud
Service StringOffering - (String) The type of cloud service offering, specifying the DB2 instance as part of a managed service.
- database
Name String - database
Version String - db
Vpc StringEndpoint Service - (String) The endpoint service that facilitates secure communication within a VPC for the DB2 instance.
- hostname String
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- private
Service StringName - ssl Boolean
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl
Port String - vpe
Service StringCrn - (String) The CRN that uniquely identifies the Virtual Private Endpoint (VPE) service used for secure access to the DB2 instance.
- cloud
Service stringOffering - (String) The type of cloud service offering, specifying the DB2 instance as part of a managed service.
- database
Name string - database
Version string - db
Vpc stringEndpoint Service - (String) The endpoint service that facilitates secure communication within a VPC for the DB2 instance.
- hostname string
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- private
Service stringName - ssl boolean
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl
Port string - vpe
Service stringCrn - (String) The CRN that uniquely identifies the Virtual Private Endpoint (VPE) service used for secure access to the DB2 instance.
- cloud_
service_ stroffering - (String) The type of cloud service offering, specifying the DB2 instance as part of a managed service.
- database_
name str - database_
version str - db_
vpc_ strendpoint_ service - (String) The endpoint service that facilitates secure communication within a VPC for the DB2 instance.
- hostname str
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- private_
service_ strname - ssl bool
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl_
port str - vpe_
service_ strcrn - (String) The CRN that uniquely identifies the Virtual Private Endpoint (VPE) service used for secure access to the DB2 instance.
- cloud
Service StringOffering - (String) The type of cloud service offering, specifying the DB2 instance as part of a managed service.
- database
Name String - database
Version String - db
Vpc StringEndpoint Service - (String) The endpoint service that facilitates secure communication within a VPC for the DB2 instance.
- hostname String
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- private
Service StringName - ssl Boolean
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl
Port String - vpe
Service StringCrn - (String) The CRN that uniquely identifies the Virtual Private Endpoint (VPE) service used for secure access to the DB2 instance.
GetDb2ConnectionInfoPublic
- Database
Name string - Database
Version string - Hostname string
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- Ssl bool
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- Ssl
Port string
- Database
Name string - Database
Version string - Hostname string
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- Ssl bool
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- Ssl
Port string
- database
Name String - database
Version String - hostname String
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- ssl Boolean
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl
Port String
- database
Name string - database
Version string - hostname string
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- ssl boolean
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl
Port string
- database_
name str - database_
version str - hostname str
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- ssl bool
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl_
port str
- database
Name String - database
Version String - hostname String
- (String) The public-facing hostname of the DB2 instance.
databaseName
- (String) The name of the specific DB2 database instance.sslPort
- (String) The port number used for SSL communication to the DB2 instance.
- ssl Boolean
- (Boolean) A boolean value indicating whether SSL is enabled for the connection.
databaseVersion
- (String) The version of the DB2 database software running on the instance.private_serviceName
- (String) The service name used for private access to the DB2 instance.
- ssl
Port String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.