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

tencentcloud.getHaVips

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 HA VIPs.

    Example Usage

    Query all HA vips

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const haVips = tencentcloud.getHaVips({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    ha_vips = tencentcloud.get_ha_vips()
    
    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.GetHaVips(ctx, &tencentcloud.GetHaVipsArgs{}, 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 haVips = Tencentcloud.GetHaVips.Invoke();
    
    });
    
    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.GetHaVipsArgs;
    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 haVips = TencentcloudFunctions.getHaVips();
    
        }
    }
    
    variables:
      haVips:
        fn::invoke:
          function: tencentcloud:getHaVips
          arguments: {}
    

    Query HA vips by filters

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const haVips = tencentcloud.getHaVips({
        subnetId: "subnet-g6c7yi7o",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    ha_vips = tencentcloud.get_ha_vips(subnet_id="subnet-g6c7yi7o")
    
    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.GetHaVips(ctx, &tencentcloud.GetHaVipsArgs{
    			SubnetId: pulumi.StringRef("subnet-g6c7yi7o"),
    		}, 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 haVips = Tencentcloud.GetHaVips.Invoke(new()
        {
            SubnetId = "subnet-g6c7yi7o",
        });
    
    });
    
    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.GetHaVipsArgs;
    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 haVips = TencentcloudFunctions.getHaVips(GetHaVipsArgs.builder()
                .subnetId("subnet-g6c7yi7o")
                .build());
    
        }
    }
    
    variables:
      haVips:
        fn::invoke:
          function: tencentcloud:getHaVips
          arguments:
            subnetId: subnet-g6c7yi7o
    

    Using getHaVips

    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 getHaVips(args: GetHaVipsArgs, opts?: InvokeOptions): Promise<GetHaVipsResult>
    function getHaVipsOutput(args: GetHaVipsOutputArgs, opts?: InvokeOptions): Output<GetHaVipsResult>
    def get_ha_vips(address_ip: Optional[str] = None,
                    id: Optional[str] = None,
                    name: Optional[str] = None,
                    result_output_file: Optional[str] = None,
                    subnet_id: Optional[str] = None,
                    vpc_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetHaVipsResult
    def get_ha_vips_output(address_ip: Optional[pulumi.Input[str]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    result_output_file: Optional[pulumi.Input[str]] = None,
                    subnet_id: Optional[pulumi.Input[str]] = None,
                    vpc_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetHaVipsResult]
    func GetHaVips(ctx *Context, args *GetHaVipsArgs, opts ...InvokeOption) (*GetHaVipsResult, error)
    func GetHaVipsOutput(ctx *Context, args *GetHaVipsOutputArgs, opts ...InvokeOption) GetHaVipsResultOutput

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

    public static class GetHaVips 
    {
        public static Task<GetHaVipsResult> InvokeAsync(GetHaVipsArgs args, InvokeOptions? opts = null)
        public static Output<GetHaVipsResult> Invoke(GetHaVipsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHaVipsResult> getHaVips(GetHaVipsArgs args, InvokeOptions options)
    public static Output<GetHaVipsResult> getHaVips(GetHaVipsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getHaVips:getHaVips
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AddressIp string
    EIP of the HA VIP to be queried.
    Id string
    ID of the HA VIP to be queried.
    Name string
    Name of the HA VIP. The length of character is limited to 1-60.
    ResultOutputFile string
    Used to save results.
    SubnetId string
    Subnet id of the HA VIP to be queried.
    VpcId string
    VPC id of the HA VIP to be queried.
    AddressIp string
    EIP of the HA VIP to be queried.
    Id string
    ID of the HA VIP to be queried.
    Name string
    Name of the HA VIP. The length of character is limited to 1-60.
    ResultOutputFile string
    Used to save results.
    SubnetId string
    Subnet id of the HA VIP to be queried.
    VpcId string
    VPC id of the HA VIP to be queried.
    addressIp String
    EIP of the HA VIP to be queried.
    id String
    ID of the HA VIP to be queried.
    name String
    Name of the HA VIP. The length of character is limited to 1-60.
    resultOutputFile String
    Used to save results.
    subnetId String
    Subnet id of the HA VIP to be queried.
    vpcId String
    VPC id of the HA VIP to be queried.
    addressIp string
    EIP of the HA VIP to be queried.
    id string
    ID of the HA VIP to be queried.
    name string
    Name of the HA VIP. The length of character is limited to 1-60.
    resultOutputFile string
    Used to save results.
    subnetId string
    Subnet id of the HA VIP to be queried.
    vpcId string
    VPC id of the HA VIP to be queried.
    address_ip str
    EIP of the HA VIP to be queried.
    id str
    ID of the HA VIP to be queried.
    name str
    Name of the HA VIP. The length of character is limited to 1-60.
    result_output_file str
    Used to save results.
    subnet_id str
    Subnet id of the HA VIP to be queried.
    vpc_id str
    VPC id of the HA VIP to be queried.
    addressIp String
    EIP of the HA VIP to be queried.
    id String
    ID of the HA VIP to be queried.
    name String
    Name of the HA VIP. The length of character is limited to 1-60.
    resultOutputFile String
    Used to save results.
    subnetId String
    Subnet id of the HA VIP to be queried.
    vpcId String
    VPC id of the HA VIP to be queried.

    getHaVips Result

    The following output properties are available:

    HaVipLists List<GetHaVipsHaVipList>
    Information list of the dedicated HA VIPs.
    AddressIp string
    EIP that is associated.
    Id string
    ID of the HA VIP.
    Name string
    Name of the HA VIP.
    ResultOutputFile string
    SubnetId string
    Subnet id.
    VpcId string
    VPC id.
    HaVipLists []GetHaVipsHaVipList
    Information list of the dedicated HA VIPs.
    AddressIp string
    EIP that is associated.
    Id string
    ID of the HA VIP.
    Name string
    Name of the HA VIP.
    ResultOutputFile string
    SubnetId string
    Subnet id.
    VpcId string
    VPC id.
    haVipLists List<GetHaVipsHaVipList>
    Information list of the dedicated HA VIPs.
    addressIp String
    EIP that is associated.
    id String
    ID of the HA VIP.
    name String
    Name of the HA VIP.
    resultOutputFile String
    subnetId String
    Subnet id.
    vpcId String
    VPC id.
    haVipLists GetHaVipsHaVipList[]
    Information list of the dedicated HA VIPs.
    addressIp string
    EIP that is associated.
    id string
    ID of the HA VIP.
    name string
    Name of the HA VIP.
    resultOutputFile string
    subnetId string
    Subnet id.
    vpcId string
    VPC id.
    ha_vip_lists Sequence[GetHaVipsHaVipList]
    Information list of the dedicated HA VIPs.
    address_ip str
    EIP that is associated.
    id str
    ID of the HA VIP.
    name str
    Name of the HA VIP.
    result_output_file str
    subnet_id str
    Subnet id.
    vpc_id str
    VPC id.
    haVipLists List<Property Map>
    Information list of the dedicated HA VIPs.
    addressIp String
    EIP that is associated.
    id String
    ID of the HA VIP.
    name String
    Name of the HA VIP.
    resultOutputFile String
    subnetId String
    Subnet id.
    vpcId String
    VPC id.

    Supporting Types

    GetHaVipsHaVipList

    AddressIp string
    EIP of the HA VIP to be queried.
    CreateTime string
    Create time of the HA VIP.
    Id string
    ID of the HA VIP to be queried.
    InstanceId string
    Instance id that is associated.
    Name string
    Name of the HA VIP. The length of character is limited to 1-60.
    NetworkInterfaceId string
    Network interface id that is associated.
    State string
    State of the HA VIP. Valid values: AVAILABLE, UNBIND.
    SubnetId string
    Subnet id of the HA VIP to be queried.
    Vip string
    Virtual IP address, it must not be occupied and in this VPC network segment. If not set, it will be assigned after resource created automatically.
    VpcId string
    VPC id of the HA VIP to be queried.
    AddressIp string
    EIP of the HA VIP to be queried.
    CreateTime string
    Create time of the HA VIP.
    Id string
    ID of the HA VIP to be queried.
    InstanceId string
    Instance id that is associated.
    Name string
    Name of the HA VIP. The length of character is limited to 1-60.
    NetworkInterfaceId string
    Network interface id that is associated.
    State string
    State of the HA VIP. Valid values: AVAILABLE, UNBIND.
    SubnetId string
    Subnet id of the HA VIP to be queried.
    Vip string
    Virtual IP address, it must not be occupied and in this VPC network segment. If not set, it will be assigned after resource created automatically.
    VpcId string
    VPC id of the HA VIP to be queried.
    addressIp String
    EIP of the HA VIP to be queried.
    createTime String
    Create time of the HA VIP.
    id String
    ID of the HA VIP to be queried.
    instanceId String
    Instance id that is associated.
    name String
    Name of the HA VIP. The length of character is limited to 1-60.
    networkInterfaceId String
    Network interface id that is associated.
    state String
    State of the HA VIP. Valid values: AVAILABLE, UNBIND.
    subnetId String
    Subnet id of the HA VIP to be queried.
    vip String
    Virtual IP address, it must not be occupied and in this VPC network segment. If not set, it will be assigned after resource created automatically.
    vpcId String
    VPC id of the HA VIP to be queried.
    addressIp string
    EIP of the HA VIP to be queried.
    createTime string
    Create time of the HA VIP.
    id string
    ID of the HA VIP to be queried.
    instanceId string
    Instance id that is associated.
    name string
    Name of the HA VIP. The length of character is limited to 1-60.
    networkInterfaceId string
    Network interface id that is associated.
    state string
    State of the HA VIP. Valid values: AVAILABLE, UNBIND.
    subnetId string
    Subnet id of the HA VIP to be queried.
    vip string
    Virtual IP address, it must not be occupied and in this VPC network segment. If not set, it will be assigned after resource created automatically.
    vpcId string
    VPC id of the HA VIP to be queried.
    address_ip str
    EIP of the HA VIP to be queried.
    create_time str
    Create time of the HA VIP.
    id str
    ID of the HA VIP to be queried.
    instance_id str
    Instance id that is associated.
    name str
    Name of the HA VIP. The length of character is limited to 1-60.
    network_interface_id str
    Network interface id that is associated.
    state str
    State of the HA VIP. Valid values: AVAILABLE, UNBIND.
    subnet_id str
    Subnet id of the HA VIP to be queried.
    vip str
    Virtual IP address, it must not be occupied and in this VPC network segment. If not set, it will be assigned after resource created automatically.
    vpc_id str
    VPC id of the HA VIP to be queried.
    addressIp String
    EIP of the HA VIP to be queried.
    createTime String
    Create time of the HA VIP.
    id String
    ID of the HA VIP to be queried.
    instanceId String
    Instance id that is associated.
    name String
    Name of the HA VIP. The length of character is limited to 1-60.
    networkInterfaceId String
    Network interface id that is associated.
    state String
    State of the HA VIP. Valid values: AVAILABLE, UNBIND.
    subnetId String
    Subnet id of the HA VIP to be queried.
    vip String
    Virtual IP address, it must not be occupied and in this VPC network segment. If not set, it will be assigned after resource created automatically.
    vpcId String
    VPC id of the HA VIP to be queried.

    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