<filename>sdk/dotnet/Zia/Firewall/GetFirewallFilteringSourceIPGroups.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 zscaler.PulumiPackage.Zia.Firewall
{
    public static class GetFirewallFilteringSourceIPGroups
    {
        /// <summary>
        /// Use the **zia_firewall_filtering_ip_source_groups** data source to get information about ip source groups available in the Zscaler Internet Access cloud firewall. This data source can then be associated with a ZIA firewall filtering rule.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zia = Pulumi.Zia;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Zia.Firewall.GetFirewallFilteringSourceIPGroups.Invoke(new()
        ///     {
        ///         Name = "example",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetFirewallFilteringSourceIPGroupsResult> InvokeAsync(GetFirewallFilteringSourceIPGroupsArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.InvokeAsync<GetFirewallFilteringSourceIPGroupsResult>("zia:Firewall/getFirewallFilteringSourceIPGroups:getFirewallFilteringSourceIPGroups", args ?? new GetFirewallFilteringSourceIPGroupsArgs(), options.WithDefaults());

        /// <summary>
        /// Use the **zia_firewall_filtering_ip_source_groups** data source to get information about ip source groups available in the Zscaler Internet Access cloud firewall. This data source can then be associated with a ZIA firewall filtering rule.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Zia = Pulumi.Zia;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var example = Zia.Firewall.GetFirewallFilteringSourceIPGroups.Invoke(new()
        ///     {
        ///         Name = "example",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetFirewallFilteringSourceIPGroupsResult> Invoke(GetFirewallFilteringSourceIPGroupsInvokeArgs? args = null, InvokeOptions? options = null)
            => global::Pulumi.Deployment.Instance.Invoke<GetFirewallFilteringSourceIPGroupsResult>("zia:Firewall/getFirewallFilteringSourceIPGroups:getFirewallFilteringSourceIPGroups", args ?? new GetFirewallFilteringSourceIPGroupsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetFirewallFilteringSourceIPGroupsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the ip source group resource.
        /// </summary>
        [Input("id")]
        public int? Id { get; set; }

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

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

    public sealed class GetFirewallFilteringSourceIPGroupsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the ip source group resource.
        /// </summary>
        [Input("id")]
        public Input<int>? Id { get; set; }

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

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


    [OutputType]
    public sealed class GetFirewallFilteringSourceIPGroupsResult
    {
        /// <summary>
        /// (String)
        /// </summary>
        public readonly string Description;
        /// <summary>
        /// The ID of this resource.
        /// </summary>
        public readonly int Id;
        /// <summary>
        /// (List of String)
        /// </summary>
        public readonly ImmutableArray<string> IpAddresses;
        public readonly string Name;

        [OutputConstructor]
        private GetFirewallFilteringSourceIPGroupsResult(
            string description,

            int id,

            ImmutableArray<string> ipAddresses,

            string name)
        {
            Description = description;
            Id = id;
            IpAddresses = ipAddresses;
            Name = name;
        }
    }
}
