<filename>sdk/dotnet/Tencentcloud/Ha/GetVips.cs// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Ha
{
    public static class GetVips
    {
        /// <summary>
        /// Use this data source to query detailed information of HA VIPs.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var havips = Output.Create(Tencentcloud.Ha.GetVips.InvokeAsync(new Tencentcloud.Ha.GetVipsArgs
        ///         {
        ///             AddressIp = "10.0.4.16",
        ///             Id = "havip-kjqwe4ba",
        ///             Name = "test",
        ///             SubnetId = "subnet-4d4m4cd4",
        ///             VpcId = "vpc-gzea3dd7",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetVipsResult> InvokeAsync(GetVipsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetVipsResult>("tencentcloud:Ha/getVips:getVips", args ?? new GetVipsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of HA VIPs.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var havips = Output.Create(Tencentcloud.Ha.GetVips.InvokeAsync(new Tencentcloud.Ha.GetVipsArgs
        ///         {
        ///             AddressIp = "10.0.4.16",
        ///             Id = "havip-kjqwe4ba",
        ///             Name = "test",
        ///             SubnetId = "subnet-4d4m4cd4",
        ///             VpcId = "vpc-gzea3dd7",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetVipsResult> Invoke(GetVipsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetVipsResult>("tencentcloud:Ha/getVips:getVips", args ?? new GetVipsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetVipsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// EIP of the HA VIP to be queried.
        /// </summary>
        [Input("addressIp")]
        public string? AddressIp { get; set; }

        /// <summary>
        /// ID of the HA VIP to be queried.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// Name of the HA VIP. The length of character is limited to 1-60.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        /// <summary>
        /// Subnet id of the HA VIP to be queried.
        /// </summary>
        [Input("subnetId")]
        public string? SubnetId { get; set; }

        /// <summary>
        /// VPC id of the HA VIP to be queried.
        /// </summary>
        [Input("vpcId")]
        public string? VpcId { get; set; }

        public GetVipsArgs()
        {
        }
    }

    public sealed class GetVipsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// EIP of the HA VIP to be queried.
        /// </summary>
        [Input("addressIp")]
        public Input<string>? AddressIp { get; set; }

        /// <summary>
        /// ID of the HA VIP to be queried.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// Name of the HA VIP. The length of character is limited to 1-60.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        /// <summary>
        /// Subnet id of the HA VIP to be queried.
        /// </summary>
        [Input("subnetId")]
        public Input<string>? SubnetId { get; set; }

        /// <summary>
        /// VPC id of the HA VIP to be queried.
        /// </summary>
        [Input("vpcId")]
        public Input<string>? VpcId { get; set; }

        public GetVipsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetVipsResult
    {
        /// <summary>
        /// EIP that is associated.
        /// </summary>
        public readonly string? AddressIp;
        /// <summary>
        /// Information list of the dedicated HA VIPs.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetVipsHaVipListResult> HaVipLists;
        /// <summary>
        /// ID of the HA VIP.
        /// </summary>
        public readonly string? Id;
        /// <summary>
        /// Name of the HA VIP.
        /// </summary>
        public readonly string? Name;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Subnet id.
        /// </summary>
        public readonly string? SubnetId;
        /// <summary>
        /// VPC id.
        /// </summary>
        public readonly string? VpcId;

        [OutputConstructor]
        private GetVipsResult(
            string? addressIp,

            ImmutableArray<Outputs.GetVipsHaVipListResult> haVipLists,

            string? id,

            string? name,

            string? resultOutputFile,

            string? subnetId,

            string? vpcId)
        {
            AddressIp = addressIp;
            HaVipLists = haVipLists;
            Id = id;
            Name = name;
            ResultOutputFile = resultOutputFile;
            SubnetId = subnetId;
            VpcId = vpcId;
        }
    }
}
