<reponame>zscaler/pulumi-zpa// *** 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.BrowserCertificate
{
    public static class GetBaCertificate
    {
        /// <summary>
        /// Use the **zpa_ba_certificate** data source to get information about a browser access certificate created in the Zscaler Private Access cloud. This data source is required when creating a browser access application segment resource.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var foo = Zpa.BrowserCertificate.GetBaCertificate.Invoke(new()
        ///     {
        ///         Name = "example.acme.com",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var foo = Zpa.BrowserCertificate.GetBaCertificate.Invoke(new()
        ///     {
        ///         Id = "1234567890",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetBaCertificateResult> InvokeAsync(GetBaCertificateArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetBaCertificateResult>("zpa:BrowserCertificate/getBaCertificate:getBaCertificate", args ?? new GetBaCertificateArgs(), options.WithDefaults());

        /// <summary>
        /// Use the **zpa_ba_certificate** data source to get information about a browser access certificate created in the Zscaler Private Access cloud. This data source is required when creating a browser access application segment resource.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var foo = Zpa.BrowserCertificate.GetBaCertificate.Invoke(new()
        ///     {
        ///         Name = "example.acme.com",
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zpa = Pulumi.Zpa;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var foo = Zpa.BrowserCertificate.GetBaCertificate.Invoke(new()
        ///     {
        ///         Id = "1234567890",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetBaCertificateResult> Invoke(GetBaCertificateInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetBaCertificateResult>("zpa:BrowserCertificate/getBaCertificate:getBaCertificate", args ?? new GetBaCertificateInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetBaCertificateArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The id of the browser access certificate to be exported.
        /// </summary>
        [Input("id")]
        public string? Id { get; set; }

        /// <summary>
        /// The name of the browser access certificate to be exported.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

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

    public sealed class GetBaCertificateInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The id of the browser access certificate to be exported.
        /// </summary>
        [Input("id")]
        public Input<string>? Id { get; set; }

        /// <summary>
        /// The name of the browser access certificate to be exported.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

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


    [OutputType]
    public sealed class GetBaCertificateResult
    {
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string CertChain;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string Cname;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string CreationTime;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string Description;
        public readonly string? Id;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string IssuedBy;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string IssuedTo;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string ModifiedTime;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string Modifiedby;
        public readonly string? Name;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly ImmutableArray<string> Sans;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string SerialNo;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string Status;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string ValidFromInEpochsec;
        /// <summary>
        /// (string)
        /// </summary>
        public readonly string ValidToInEpochsec;

        [OutputConstructor]
        private GetBaCertificateResult(
            string certChain,

            string cname,

            string creationTime,

            string description,

            string? id,

            string issuedBy,

            string issuedTo,

            string modifiedTime,

            string modifiedby,

            string? name,

            ImmutableArray<string> sans,

            string serialNo,

            string status,

            string validFromInEpochsec,

            string validToInEpochsec)
        {
            CertChain = certChain;
            Cname = cname;
            CreationTime = creationTime;
            Description = description;
            Id = id;
            IssuedBy = issuedBy;
            IssuedTo = issuedTo;
            ModifiedTime = modifiedTime;
            Modifiedby = modifiedby;
            Name = name;
            Sans = sans;
            SerialNo = serialNo;
            Status = status;
            ValidFromInEpochsec = validFromInEpochsec;
            ValidToInEpochsec = validToInEpochsec;
        }
    }
}
