1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getVpnDefaultHealthCheckIp
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getVpnDefaultHealthCheckIp

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of vpn default_health_check_ip

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const defaultHealthCheckIp = tencentcloud.getVpnDefaultHealthCheckIp({
        vpnGatewayId: "vpngw-gt8bianl",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    default_health_check_ip = tencentcloud.get_vpn_default_health_check_ip(vpn_gateway_id="vpngw-gt8bianl")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetVpnDefaultHealthCheckIp(ctx, &tencentcloud.GetVpnDefaultHealthCheckIpArgs{
    			VpnGatewayId: "vpngw-gt8bianl",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultHealthCheckIp = Tencentcloud.GetVpnDefaultHealthCheckIp.Invoke(new()
        {
            VpnGatewayId = "vpngw-gt8bianl",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetVpnDefaultHealthCheckIpArgs;
    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 defaultHealthCheckIp = TencentcloudFunctions.getVpnDefaultHealthCheckIp(GetVpnDefaultHealthCheckIpArgs.builder()
                .vpnGatewayId("vpngw-gt8bianl")
                .build());
    
        }
    }
    
    variables:
      defaultHealthCheckIp:
        fn::invoke:
          function: tencentcloud:getVpnDefaultHealthCheckIp
          arguments:
            vpnGatewayId: vpngw-gt8bianl
    

    Using getVpnDefaultHealthCheckIp

    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 getVpnDefaultHealthCheckIp(args: GetVpnDefaultHealthCheckIpArgs, opts?: InvokeOptions): Promise<GetVpnDefaultHealthCheckIpResult>
    function getVpnDefaultHealthCheckIpOutput(args: GetVpnDefaultHealthCheckIpOutputArgs, opts?: InvokeOptions): Output<GetVpnDefaultHealthCheckIpResult>
    def get_vpn_default_health_check_ip(id: Optional[str] = None,
                                        result_output_file: Optional[str] = None,
                                        vpn_gateway_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetVpnDefaultHealthCheckIpResult
    def get_vpn_default_health_check_ip_output(id: Optional[pulumi.Input[str]] = None,
                                        result_output_file: Optional[pulumi.Input[str]] = None,
                                        vpn_gateway_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetVpnDefaultHealthCheckIpResult]
    func GetVpnDefaultHealthCheckIp(ctx *Context, args *GetVpnDefaultHealthCheckIpArgs, opts ...InvokeOption) (*GetVpnDefaultHealthCheckIpResult, error)
    func GetVpnDefaultHealthCheckIpOutput(ctx *Context, args *GetVpnDefaultHealthCheckIpOutputArgs, opts ...InvokeOption) GetVpnDefaultHealthCheckIpResultOutput

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

    public static class GetVpnDefaultHealthCheckIp 
    {
        public static Task<GetVpnDefaultHealthCheckIpResult> InvokeAsync(GetVpnDefaultHealthCheckIpArgs args, InvokeOptions? opts = null)
        public static Output<GetVpnDefaultHealthCheckIpResult> Invoke(GetVpnDefaultHealthCheckIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpnDefaultHealthCheckIpResult> getVpnDefaultHealthCheckIp(GetVpnDefaultHealthCheckIpArgs args, InvokeOptions options)
    public static Output<GetVpnDefaultHealthCheckIpResult> getVpnDefaultHealthCheckIp(GetVpnDefaultHealthCheckIpArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getVpnDefaultHealthCheckIp:getVpnDefaultHealthCheckIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VpnGatewayId string
    vpn gateway id.
    Id string
    ResultOutputFile string
    Used to save results.
    VpnGatewayId string
    vpn gateway id.
    Id string
    ResultOutputFile string
    Used to save results.
    vpnGatewayId String
    vpn gateway id.
    id String
    resultOutputFile String
    Used to save results.
    vpnGatewayId string
    vpn gateway id.
    id string
    resultOutputFile string
    Used to save results.
    vpn_gateway_id str
    vpn gateway id.
    id str
    result_output_file str
    Used to save results.
    vpnGatewayId String
    vpn gateway id.
    id String
    resultOutputFile String
    Used to save results.

    getVpnDefaultHealthCheckIp Result

    The following output properties are available:

    HealthCheckLocalIp string
    local ip of health check.
    HealthCheckRemoteIp string
    remote ip for health check.
    Id string
    VpnGatewayId string
    ResultOutputFile string
    HealthCheckLocalIp string
    local ip of health check.
    HealthCheckRemoteIp string
    remote ip for health check.
    Id string
    VpnGatewayId string
    ResultOutputFile string
    healthCheckLocalIp String
    local ip of health check.
    healthCheckRemoteIp String
    remote ip for health check.
    id String
    vpnGatewayId String
    resultOutputFile String
    healthCheckLocalIp string
    local ip of health check.
    healthCheckRemoteIp string
    remote ip for health check.
    id string
    vpnGatewayId string
    resultOutputFile string
    health_check_local_ip str
    local ip of health check.
    health_check_remote_ip str
    remote ip for health check.
    id str
    vpn_gateway_id str
    result_output_file str
    healthCheckLocalIp String
    local ip of health check.
    healthCheckRemoteIp String
    remote ip for health check.
    id String
    vpnGatewayId String
    resultOutputFile String

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack