// *** 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 zscaler.PulumiPackage.Zpa.ApplicationServer
{
    public static class GetApplicationServer
    {
        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Zpa.ApplicationServer.GetApplicationServer.Invoke(new()
        ///     {
        ///         Name = "server.example.com",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Zpa.ApplicationServer.GetApplicationServer.Invoke(new()
        ///     {
        ///         Id = "1234567890",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetApplicationServerResult> InvokeAsync(GetApplicationServerArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetApplicationServerResult>("zpa:ApplicationServer/getApplicationServer:getApplicationServer", args ?? new GetApplicationServerArgs(), options.WithDefaults());

        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Zpa.ApplicationServer.GetApplicationServer.Invoke(new()
        ///     {
        ///         Name = "server.example.com",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Zpa.ApplicationServer.GetApplicationServer.Invoke(new()
        ///     {
        ///         Id = "1234567890",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetApplicationServerResult> Invoke(GetApplicationServerInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetApplicationServerResult>("zpa:ApplicationServer/getApplicationServer:getApplicationServer", args ?? new GetApplicationServerInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetApplicationServerArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// This field defines the id of the application server.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// This field defines the name of the server.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        public GetApplicationServerArgs()
        {
        }
        public static new GetApplicationServerArgs Empty => new GetApplicationServerArgs();
    }

    public sealed class GetApplicationServerInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// This field defines the id of the application server.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// This field defines the name of the server.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        public GetApplicationServerInvokeArgs()
        {
        }
        public static new GetApplicationServerInvokeArgs Empty => new GetApplicationServerInvokeArgs();
    }


    [OutputType]
    public sealed class GetApplicationServerResult
    {
        /// <summary>
        /// (string) This field defines the domain or IP address of the server.
        /// </summary>
        public readonly string Address;
        /// <summary>
        /// (Set of String) This field defines the list of server groups IDs.
        /// </summary>
        public readonly ImmutableArray<string> AppServerGroupIds;
        public readonly string ConfigSpace;
        public readonly string CreationTime;
        /// <summary>
        /// (string) This field defines the description of the server.
        /// </summary>
        public readonly string Description;
        /// <summary>
        /// (bool) This field defines the status of the server.
        /// </summary>
        public readonly bool Enabled;
        public readonly string? Id;
        public readonly string ModifiedTime;
        public readonly string Modifiedby;
        public readonly string? Name;

        [OutputConstructor]
        private GetApplicationServerResult(
            string address,

            ImmutableArray<string> appServerGroupIds,

            string configSpace,

            string creationTime,

            string description,

            bool enabled,

            string? id,

            string modifiedTime,

            string modifiedby,

            string? name)
        {
            Address = address;
            AppServerGroupIds = appServerGroupIds;
            ConfigSpace = configSpace;
            CreationTime = creationTime;
            Description = description;
            Enabled = enabled;
            Id = id;
            ModifiedTime = modifiedTime;
            Modifiedby = modifiedby;
            Name = name;
        }
    }
}
