1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDb2AllowlistIp
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getDb2AllowlistIp

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about allowed list of IPs of an existing IBM Db2 Instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const db2Allowlistips = ibm.getDb2AllowlistIp({
        xDeploymentId: "<crn>",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    db2_allowlistips = ibm.get_db2_allowlist_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.GetDb2AllowlistIp(ctx, &ibm.GetDb2AllowlistIpArgs{
    			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 db2Allowlistips = Ibm.GetDb2AllowlistIp.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.GetDb2AllowlistIpArgs;
    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 db2Allowlistips = IbmFunctions.getDb2AllowlistIp(GetDb2AllowlistIpArgs.builder()
                .xDeploymentId("<crn>")
                .build());
    
        }
    }
    
    variables:
      db2Allowlistips:
        fn::invoke:
          function: ibm:getDb2AllowlistIp
          arguments:
            xDeploymentId: <crn>
    

    Using getDb2AllowlistIp

    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 getDb2AllowlistIp(args: GetDb2AllowlistIpArgs, opts?: InvokeOptions): Promise<GetDb2AllowlistIpResult>
    function getDb2AllowlistIpOutput(args: GetDb2AllowlistIpOutputArgs, opts?: InvokeOptions): Output<GetDb2AllowlistIpResult>
    def get_db2_allowlist_ip(id: Optional[str] = None,
                             x_deployment_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDb2AllowlistIpResult
    def get_db2_allowlist_ip_output(id: Optional[pulumi.Input[str]] = None,
                             x_deployment_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDb2AllowlistIpResult]
    func GetDb2AllowlistIp(ctx *Context, args *GetDb2AllowlistIpArgs, opts ...InvokeOption) (*GetDb2AllowlistIpResult, error)
    func GetDb2AllowlistIpOutput(ctx *Context, args *GetDb2AllowlistIpOutputArgs, opts ...InvokeOption) GetDb2AllowlistIpResultOutput

    > Note: This function is named GetDb2AllowlistIp in the Go SDK.

    public static class GetDb2AllowlistIp 
    {
        public static Task<GetDb2AllowlistIpResult> InvokeAsync(GetDb2AllowlistIpArgs args, InvokeOptions? opts = null)
        public static Output<GetDb2AllowlistIpResult> Invoke(GetDb2AllowlistIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDb2AllowlistIpResult> getDb2AllowlistIp(GetDb2AllowlistIpArgs args, InvokeOptions options)
    public static Output<GetDb2AllowlistIpResult> getDb2AllowlistIp(GetDb2AllowlistIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getDb2AllowlistIp:getDb2AllowlistIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    XDeploymentId string
    CRN of the instance this allowed list of IPs relates to.
    Id string
    XDeploymentId string
    CRN of the instance this allowed list of IPs relates to.
    Id string
    xDeploymentId String
    CRN of the instance this allowed list of IPs relates to.
    id String
    xDeploymentId string
    CRN of the instance this allowed list of IPs relates to.
    id string
    x_deployment_id str
    CRN of the instance this allowed list of IPs relates to.
    id str
    xDeploymentId String
    CRN of the instance this allowed list of IPs relates to.
    id String

    getDb2AllowlistIp Result

    The following output properties are available:

    Id string
    IpAddresses List<GetDb2AllowlistIpIpAddress>
    (string) A List of IP addresses. Nested scheme for ip_addresses:
    XDeploymentId string
    Id string
    IpAddresses []GetDb2AllowlistIpIpAddress
    (string) A List of IP addresses. Nested scheme for ip_addresses:
    XDeploymentId string
    id String
    ipAddresses List<GetDb2AllowlistIpIpAddress>
    (string) A List of IP addresses. Nested scheme for ip_addresses:
    xDeploymentId String
    id string
    ipAddresses GetDb2AllowlistIpIpAddress[]
    (string) A List of IP addresses. Nested scheme for ip_addresses:
    xDeploymentId string
    id str
    ip_addresses Sequence[GetDb2AllowlistIpIpAddress]
    (string) A List of IP addresses. Nested scheme for ip_addresses:
    x_deployment_id str
    id String
    ipAddresses List<Property Map>
    (string) A List of IP addresses. Nested scheme for ip_addresses:
    xDeploymentId String

    Supporting Types

    GetDb2AllowlistIpIpAddress

    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 ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud