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

ibm.getIsVpnGatewayConnectionPeerCidrs

Explore with Pulumi AI

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

    Provides a read-only data source to retrieve information about VPNGatewayConnectionCIDRs. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const isVpnGatewayConnectionCidrs = ibm.getIsVpnGatewayConnectionPeerCidrs({
        vpnGateway: "vpn_gateway",
        vpnGatewayConnection: "vpn_gateway_connection",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    is_vpn_gateway_connection_cidrs = ibm.get_is_vpn_gateway_connection_peer_cidrs(vpn_gateway="vpn_gateway",
        vpn_gateway_connection="vpn_gateway_connection")
    
    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.GetIsVpnGatewayConnectionPeerCidrs(ctx, &ibm.GetIsVpnGatewayConnectionPeerCidrsArgs{
    			VpnGateway:           "vpn_gateway",
    			VpnGatewayConnection: "vpn_gateway_connection",
    		}, 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 isVpnGatewayConnectionCidrs = Ibm.GetIsVpnGatewayConnectionPeerCidrs.Invoke(new()
        {
            VpnGateway = "vpn_gateway",
            VpnGatewayConnection = "vpn_gateway_connection",
        });
    
    });
    
    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.GetIsVpnGatewayConnectionPeerCidrsArgs;
    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 isVpnGatewayConnectionCidrs = IbmFunctions.getIsVpnGatewayConnectionPeerCidrs(GetIsVpnGatewayConnectionPeerCidrsArgs.builder()
                .vpnGateway("vpn_gateway")
                .vpnGatewayConnection("vpn_gateway_connection")
                .build());
    
        }
    }
    
    variables:
      isVpnGatewayConnectionCidrs:
        fn::invoke:
          function: ibm:getIsVpnGatewayConnectionPeerCidrs
          arguments:
            vpnGateway: vpn_gateway
            vpnGatewayConnection: vpn_gateway_connection
    

    Using getIsVpnGatewayConnectionPeerCidrs

    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 getIsVpnGatewayConnectionPeerCidrs(args: GetIsVpnGatewayConnectionPeerCidrsArgs, opts?: InvokeOptions): Promise<GetIsVpnGatewayConnectionPeerCidrsResult>
    function getIsVpnGatewayConnectionPeerCidrsOutput(args: GetIsVpnGatewayConnectionPeerCidrsOutputArgs, opts?: InvokeOptions): Output<GetIsVpnGatewayConnectionPeerCidrsResult>
    def get_is_vpn_gateway_connection_peer_cidrs(id: Optional[str] = None,
                                                 vpn_gateway: Optional[str] = None,
                                                 vpn_gateway_connection: Optional[str] = None,
                                                 opts: Optional[InvokeOptions] = None) -> GetIsVpnGatewayConnectionPeerCidrsResult
    def get_is_vpn_gateway_connection_peer_cidrs_output(id: Optional[pulumi.Input[str]] = None,
                                                 vpn_gateway: Optional[pulumi.Input[str]] = None,
                                                 vpn_gateway_connection: Optional[pulumi.Input[str]] = None,
                                                 opts: Optional[InvokeOptions] = None) -> Output[GetIsVpnGatewayConnectionPeerCidrsResult]
    func GetIsVpnGatewayConnectionPeerCidrs(ctx *Context, args *GetIsVpnGatewayConnectionPeerCidrsArgs, opts ...InvokeOption) (*GetIsVpnGatewayConnectionPeerCidrsResult, error)
    func GetIsVpnGatewayConnectionPeerCidrsOutput(ctx *Context, args *GetIsVpnGatewayConnectionPeerCidrsOutputArgs, opts ...InvokeOption) GetIsVpnGatewayConnectionPeerCidrsResultOutput

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

    public static class GetIsVpnGatewayConnectionPeerCidrs 
    {
        public static Task<GetIsVpnGatewayConnectionPeerCidrsResult> InvokeAsync(GetIsVpnGatewayConnectionPeerCidrsArgs args, InvokeOptions? opts = null)
        public static Output<GetIsVpnGatewayConnectionPeerCidrsResult> Invoke(GetIsVpnGatewayConnectionPeerCidrsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsVpnGatewayConnectionPeerCidrsResult> getIsVpnGatewayConnectionPeerCidrs(GetIsVpnGatewayConnectionPeerCidrsArgs args, InvokeOptions options)
    public static Output<GetIsVpnGatewayConnectionPeerCidrsResult> getIsVpnGatewayConnectionPeerCidrs(GetIsVpnGatewayConnectionPeerCidrsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsVpnGatewayConnectionPeerCidrs:getIsVpnGatewayConnectionPeerCidrs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VpnGateway string
    The VPN gateway identifier.
    VpnGatewayConnection string
    The VPN gateway connection identifier.
    Id string
    The unique identifier of the VPNGatewayConnectionCIDRs.
    VpnGateway string
    The VPN gateway identifier.
    VpnGatewayConnection string
    The VPN gateway connection identifier.
    Id string
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpnGateway String
    The VPN gateway identifier.
    vpnGatewayConnection String
    The VPN gateway connection identifier.
    id String
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpnGateway string
    The VPN gateway identifier.
    vpnGatewayConnection string
    The VPN gateway connection identifier.
    id string
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpn_gateway str
    The VPN gateway identifier.
    vpn_gateway_connection str
    The VPN gateway connection identifier.
    id str
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpnGateway String
    The VPN gateway identifier.
    vpnGatewayConnection String
    The VPN gateway connection identifier.
    id String
    The unique identifier of the VPNGatewayConnectionCIDRs.

    getIsVpnGatewayConnectionPeerCidrs Result

    The following output properties are available:

    Cidrs List<string>
    (List) The CIDRs for this resource.
    Id string
    The unique identifier of the VPNGatewayConnectionCIDRs.
    VpnGateway string
    VpnGatewayConnection string
    Cidrs []string
    (List) The CIDRs for this resource.
    Id string
    The unique identifier of the VPNGatewayConnectionCIDRs.
    VpnGateway string
    VpnGatewayConnection string
    cidrs List<String>
    (List) The CIDRs for this resource.
    id String
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpnGateway String
    vpnGatewayConnection String
    cidrs string[]
    (List) The CIDRs for this resource.
    id string
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpnGateway string
    vpnGatewayConnection string
    cidrs Sequence[str]
    (List) The CIDRs for this resource.
    id str
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpn_gateway str
    vpn_gateway_connection str
    cidrs List<String>
    (List) The CIDRs for this resource.
    id String
    The unique identifier of the VPNGatewayConnectionCIDRs.
    vpnGateway String
    vpnGatewayConnection String

    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