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

tencentcloud.getHaVipEipAttachments

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 VIP EIP attachments

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getHaVipEipAttachments({
        addressIp: "1.1.1.1",
        havipId: "havip-kjqwe4ba",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_ha_vip_eip_attachments(address_ip="1.1.1.1",
        havip_id="havip-kjqwe4ba")
    
    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.GetHaVipEipAttachments(ctx, &tencentcloud.GetHaVipEipAttachmentsArgs{
    			AddressIp: pulumi.StringRef("1.1.1.1"),
    			HavipId:   "havip-kjqwe4ba",
    		}, 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 foo = Tencentcloud.GetHaVipEipAttachments.Invoke(new()
        {
            AddressIp = "1.1.1.1",
            HavipId = "havip-kjqwe4ba",
        });
    
    });
    
    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.GetHaVipEipAttachmentsArgs;
    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 foo = TencentcloudFunctions.getHaVipEipAttachments(GetHaVipEipAttachmentsArgs.builder()
                .addressIp("1.1.1.1")
                .havipId("havip-kjqwe4ba")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getHaVipEipAttachments
          arguments:
            addressIp: 1.1.1.1
            havipId: havip-kjqwe4ba
    

    Using getHaVipEipAttachments

    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 getHaVipEipAttachments(args: GetHaVipEipAttachmentsArgs, opts?: InvokeOptions): Promise<GetHaVipEipAttachmentsResult>
    function getHaVipEipAttachmentsOutput(args: GetHaVipEipAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetHaVipEipAttachmentsResult>
    def get_ha_vip_eip_attachments(address_ip: Optional[str] = None,
                                   havip_id: Optional[str] = None,
                                   id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetHaVipEipAttachmentsResult
    def get_ha_vip_eip_attachments_output(address_ip: Optional[pulumi.Input[str]] = None,
                                   havip_id: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetHaVipEipAttachmentsResult]
    func GetHaVipEipAttachments(ctx *Context, args *GetHaVipEipAttachmentsArgs, opts ...InvokeOption) (*GetHaVipEipAttachmentsResult, error)
    func GetHaVipEipAttachmentsOutput(ctx *Context, args *GetHaVipEipAttachmentsOutputArgs, opts ...InvokeOption) GetHaVipEipAttachmentsResultOutput

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

    public static class GetHaVipEipAttachments 
    {
        public static Task<GetHaVipEipAttachmentsResult> InvokeAsync(GetHaVipEipAttachmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetHaVipEipAttachmentsResult> Invoke(GetHaVipEipAttachmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHaVipEipAttachmentsResult> getHaVipEipAttachments(GetHaVipEipAttachmentsArgs args, InvokeOptions options)
    public static Output<GetHaVipEipAttachmentsResult> getHaVipEipAttachments(GetHaVipEipAttachmentsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getHaVipEipAttachments:getHaVipEipAttachments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    HavipId string
    ID of the attached HA VIP to be queried.
    AddressIp string
    Public IP address of EIP to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    HavipId string
    ID of the attached HA VIP to be queried.
    AddressIp string
    Public IP address of EIP to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    havipId String
    ID of the attached HA VIP to be queried.
    addressIp String
    Public IP address of EIP to be queried.
    id String
    resultOutputFile String
    Used to save results.
    havipId string
    ID of the attached HA VIP to be queried.
    addressIp string
    Public IP address of EIP to be queried.
    id string
    resultOutputFile string
    Used to save results.
    havip_id str
    ID of the attached HA VIP to be queried.
    address_ip str
    Public IP address of EIP to be queried.
    id str
    result_output_file str
    Used to save results.
    havipId String
    ID of the attached HA VIP to be queried.
    addressIp String
    Public IP address of EIP to be queried.
    id String
    resultOutputFile String
    Used to save results.

    getHaVipEipAttachments Result

    The following output properties are available:

    HaVipEipAttachmentLists List<GetHaVipEipAttachmentsHaVipEipAttachmentList>
    A list of HA VIP EIP attachments. Each element contains the following attributes:
    HavipId string
    ID of the attached HA VIP.
    Id string
    AddressIp string
    Public IP address of EIP.
    ResultOutputFile string
    HaVipEipAttachmentLists []GetHaVipEipAttachmentsHaVipEipAttachmentList
    A list of HA VIP EIP attachments. Each element contains the following attributes:
    HavipId string
    ID of the attached HA VIP.
    Id string
    AddressIp string
    Public IP address of EIP.
    ResultOutputFile string
    haVipEipAttachmentLists List<GetHaVipEipAttachmentsHaVipEipAttachmentList>
    A list of HA VIP EIP attachments. Each element contains the following attributes:
    havipId String
    ID of the attached HA VIP.
    id String
    addressIp String
    Public IP address of EIP.
    resultOutputFile String
    haVipEipAttachmentLists GetHaVipEipAttachmentsHaVipEipAttachmentList[]
    A list of HA VIP EIP attachments. Each element contains the following attributes:
    havipId string
    ID of the attached HA VIP.
    id string
    addressIp string
    Public IP address of EIP.
    resultOutputFile string
    ha_vip_eip_attachment_lists Sequence[GetHaVipEipAttachmentsHaVipEipAttachmentList]
    A list of HA VIP EIP attachments. Each element contains the following attributes:
    havip_id str
    ID of the attached HA VIP.
    id str
    address_ip str
    Public IP address of EIP.
    result_output_file str
    haVipEipAttachmentLists List<Property Map>
    A list of HA VIP EIP attachments. Each element contains the following attributes:
    havipId String
    ID of the attached HA VIP.
    id String
    addressIp String
    Public IP address of EIP.
    resultOutputFile String

    Supporting Types

    GetHaVipEipAttachmentsHaVipEipAttachmentList

    AddressIp string
    Public IP address of EIP to be queried.
    HavipId string
    ID of the attached HA VIP to be queried.
    AddressIp string
    Public IP address of EIP to be queried.
    HavipId string
    ID of the attached HA VIP to be queried.
    addressIp String
    Public IP address of EIP to be queried.
    havipId String
    ID of the attached HA VIP to be queried.
    addressIp string
    Public IP address of EIP to be queried.
    havipId string
    ID of the attached HA VIP to be queried.
    address_ip str
    Public IP address of EIP to be queried.
    havip_id str
    ID of the attached HA VIP to be queried.
    addressIp String
    Public IP address of EIP to be queried.
    havipId String
    ID of the attached 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