ibm 1.78.1 published on Friday, May 9, 2025 by ibm-cloud
ibm.getDb2WhitelistIp
Explore with Pulumi AI
Retrieve information about Whitelisted IPs of an existing IBM Db2 Instance.
Datasource ibm.getDb2WhitelistIp has now deprecated and replaced with ibm.getDb2AllowlistIp, backend services will no longer available after the next major release. This docs will be removed in coming release.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const db2Whitelistips = ibm.getDb2WhitelistIp({
xDeploymentId: "<crn>",
});
import pulumi
import pulumi_ibm as ibm
db2_whitelistips = ibm.get_db2_whitelist_ip(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.GetDb2WhitelistIp(ctx, &ibm.GetDb2WhitelistIpArgs{
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 db2Whitelistips = Ibm.GetDb2WhitelistIp.Invoke(new()
{
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.GetDb2WhitelistIpArgs;
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 db2Whitelistips = IbmFunctions.getDb2WhitelistIp(GetDb2WhitelistIpArgs.builder()
.xDeploymentId("<crn>")
.build());
}
}
variables:
db2Whitelistips:
fn::invoke:
function: ibm:getDb2WhitelistIp
arguments:
xDeploymentId: <crn>
Using getDb2WhitelistIp
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 getDb2WhitelistIp(args: GetDb2WhitelistIpArgs, opts?: InvokeOptions): Promise<GetDb2WhitelistIpResult>
function getDb2WhitelistIpOutput(args: GetDb2WhitelistIpOutputArgs, opts?: InvokeOptions): Output<GetDb2WhitelistIpResult>def get_db2_whitelist_ip(id: Optional[str] = None,
x_deployment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDb2WhitelistIpResult
def get_db2_whitelist_ip_output(id: Optional[pulumi.Input[str]] = None,
x_deployment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDb2WhitelistIpResult]func GetDb2WhitelistIp(ctx *Context, args *GetDb2WhitelistIpArgs, opts ...InvokeOption) (*GetDb2WhitelistIpResult, error)
func GetDb2WhitelistIpOutput(ctx *Context, args *GetDb2WhitelistIpOutputArgs, opts ...InvokeOption) GetDb2WhitelistIpResultOutput> Note: This function is named GetDb2WhitelistIp in the Go SDK.
public static class GetDb2WhitelistIp
{
public static Task<GetDb2WhitelistIpResult> InvokeAsync(GetDb2WhitelistIpArgs args, InvokeOptions? opts = null)
public static Output<GetDb2WhitelistIpResult> Invoke(GetDb2WhitelistIpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDb2WhitelistIpResult> getDb2WhitelistIp(GetDb2WhitelistIpArgs args, InvokeOptions options)
public static Output<GetDb2WhitelistIpResult> getDb2WhitelistIp(GetDb2WhitelistIpArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDb2WhitelistIp:getDb2WhitelistIp
arguments:
# arguments dictionaryThe following arguments are supported:
- XDeployment
Id string - CRN of the instance this whitelisted IPs relates to.
- Id string
- XDeployment
Id string - CRN of the instance this whitelisted IPs relates to.
- Id string
- x
Deployment StringId - CRN of the instance this whitelisted IPs relates to.
- id String
- x
Deployment stringId - CRN of the instance this whitelisted IPs relates to.
- id string
- x_
deployment_ strid - CRN of the instance this whitelisted IPs relates to.
- id str
- x
Deployment StringId - CRN of the instance this whitelisted IPs relates to.
- id String
getDb2WhitelistIp Result
The following output properties are available:
- Id string
- Ip
Addresses List<GetDb2Whitelist Ip Ip Address> - (string) A List of IP addresses. Nested scheme for ip_addresses:
- XDeployment
Id string
- Id string
- Ip
Addresses []GetDb2Whitelist Ip Ip Address - (string) A List of IP addresses. Nested scheme for ip_addresses:
- XDeployment
Id string
- id String
- ip
Addresses List<GetDb2Whitelist Ip Ip Address> - (string) A List of IP addresses. Nested scheme for ip_addresses:
- x
Deployment StringId
- id string
- ip
Addresses GetDb2Whitelist Ip Ip Address[] - (string) A List of IP addresses. Nested scheme for ip_addresses:
- x
Deployment stringId
- id str
- ip_
addresses Sequence[GetDb2Whitelist Ip Ip Address] - (string) A List of IP addresses. Nested scheme for ip_addresses:
- x_
deployment_ strid
- id String
- ip
Addresses List<Property Map> - (string) A List of IP addresses. Nested scheme for ip_addresses:
- x
Deployment StringId
Supporting Types
GetDb2WhitelistIpIpAddress
- Address string
- (String) The IP address, in IPv4 format.
- Description string
- (String) Description of the IP address.
- Address string
- (String) The IP address, in IPv4 format.
- Description string
- (String) Description of the IP address.
- address String
- (String) The IP address, in IPv4 format.
- description String
- (String) Description of the IP address.
- address string
- (String) The IP address, in IPv4 format.
- description string
- (String) Description of the IP address.
- address str
- (String) The IP address, in IPv4 format.
- description str
- (String) Description of the IP address.
- address String
- (String) The IP address, in IPv4 format.
- description String
- (String) Description of the IP address.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.