// *** 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.Clb
{
    public static class GetInstances
    {
        /// <summary>
        /// Use this data source to query detailed information of CLB
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Clb.GetInstances.InvokeAsync(new Tencentcloud.Clb.GetInstancesArgs
        ///         {
        ///             ClbId = "lb-k2zjp9lv",
        ///             ClbName = "myclb",
        ///             NetworkType = "OPEN",
        ///             ProjectId = 0,
        ///             ResultOutputFile = "mytestpath",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetInstancesResult> InvokeAsync(GetInstancesArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetInstancesResult>("tencentcloud:Clb/getInstances:getInstances", args ?? new GetInstancesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of CLB
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var foo = Output.Create(Tencentcloud.Clb.GetInstances.InvokeAsync(new Tencentcloud.Clb.GetInstancesArgs
        ///         {
        ///             ClbId = "lb-k2zjp9lv",
        ///             ClbName = "myclb",
        ///             NetworkType = "OPEN",
        ///             ProjectId = 0,
        ///             ResultOutputFile = "mytestpath",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetInstancesResult> Invoke(GetInstancesInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetInstancesResult>("tencentcloud:Clb/getInstances:getInstances", args ?? new GetInstancesInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInstancesArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the CLB to be queried.
        /// </summary>
        [Input("clbId")]
        public string? ClbId { get; set; }

        /// <summary>
        /// Name of the CLB to be queried.
        /// </summary>
        [Input("clbName")]
        public string? ClbName { get; set; }

        /// <summary>
        /// Master available zone id.
        /// </summary>
        [Input("masterZone")]
        public string? MasterZone { get; set; }

        /// <summary>
        /// Type of CLB instance, and available values include `OPEN` and `INTERNAL`.
        /// </summary>
        [Input("networkType")]
        public string? NetworkType { get; set; }

        /// <summary>
        /// Project ID of the CLB.
        /// </summary>
        [Input("projectId")]
        public int? ProjectId { get; set; }

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

        public GetInstancesArgs()
        {
        }
    }

    public sealed class GetInstancesInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the CLB to be queried.
        /// </summary>
        [Input("clbId")]
        public Input<string>? ClbId { get; set; }

        /// <summary>
        /// Name of the CLB to be queried.
        /// </summary>
        [Input("clbName")]
        public Input<string>? ClbName { get; set; }

        /// <summary>
        /// Master available zone id.
        /// </summary>
        [Input("masterZone")]
        public Input<string>? MasterZone { get; set; }

        /// <summary>
        /// Type of CLB instance, and available values include `OPEN` and `INTERNAL`.
        /// </summary>
        [Input("networkType")]
        public Input<string>? NetworkType { get; set; }

        /// <summary>
        /// Project ID of the CLB.
        /// </summary>
        [Input("projectId")]
        public Input<int>? ProjectId { get; set; }

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

        public GetInstancesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetInstancesResult
    {
        /// <summary>
        /// ID of CLB.
        /// </summary>
        public readonly string? ClbId;
        /// <summary>
        /// A list of cloud load balancers. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInstancesClbListResult> ClbLists;
        /// <summary>
        /// Name of CLB.
        /// </summary>
        public readonly string? ClbName;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? MasterZone;
        /// <summary>
        /// Types of CLB.
        /// </summary>
        public readonly string? NetworkType;
        /// <summary>
        /// ID of the project.
        /// </summary>
        public readonly int? ProjectId;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetInstancesResult(
            string? clbId,

            ImmutableArray<Outputs.GetInstancesClbListResult> clbLists,

            string? clbName,

            string id,

            string? masterZone,

            string? networkType,

            int? projectId,

            string? resultOutputFile)
        {
            ClbId = clbId;
            ClbLists = clbLists;
            ClbName = clbName;
            Id = id;
            MasterZone = masterZone;
            NetworkType = networkType;
            ProjectId = projectId;
            ResultOutputFile = resultOutputFile;
        }
    }
}
