<gh_stars>0// *** 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.ApiGateway
{
    public static class GetIpStrategies
    {
        /// <summary>
        /// Use this data source to query API gateway IP strategy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var service = new Tencentcloud.ApiGateway.Service("service", new Tencentcloud.ApiGateway.ServiceArgs
        ///         {
        ///             ServiceName = "ck",
        ///             Protocol = "http&amp;https",
        ///             ServiceDesc = "your nice service",
        ///             NetTypes = 
        ///             {
        ///                 "INNER",
        ///                 "OUTER",
        ///             },
        ///             IpVersion = "IPv4",
        ///         });
        ///         var test = new Tencentcloud.ApiGateway.IpStrategy("test", new Tencentcloud.ApiGateway.IpStrategyArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             StrategyName = "tf_test",
        ///             StrategyType = "BLACK",
        ///             StrategyData = "9.9.9.9",
        ///         });
        ///         var id = Tencentcloud.ApiGateway.GetIpStrategies.Invoke(new Tencentcloud.ApiGateway.GetIpStrategiesInvokeArgs
        ///         {
        ///             ServiceId = test.ServiceId,
        ///         });
        ///         var name = Tencentcloud.ApiGateway.GetIpStrategies.Invoke(new Tencentcloud.ApiGateway.GetIpStrategiesInvokeArgs
        ///         {
        ///             ServiceId = test.ServiceId,
        ///             StrategyName = test.StrategyName,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetIpStrategiesResult> InvokeAsync(GetIpStrategiesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetIpStrategiesResult>("tencentcloud:ApiGateway/getIpStrategies:getIpStrategies", args ?? new GetIpStrategiesArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query API gateway IP strategy.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var service = new Tencentcloud.ApiGateway.Service("service", new Tencentcloud.ApiGateway.ServiceArgs
        ///         {
        ///             ServiceName = "ck",
        ///             Protocol = "http&amp;https",
        ///             ServiceDesc = "your nice service",
        ///             NetTypes = 
        ///             {
        ///                 "INNER",
        ///                 "OUTER",
        ///             },
        ///             IpVersion = "IPv4",
        ///         });
        ///         var test = new Tencentcloud.ApiGateway.IpStrategy("test", new Tencentcloud.ApiGateway.IpStrategyArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             StrategyName = "tf_test",
        ///             StrategyType = "BLACK",
        ///             StrategyData = "9.9.9.9",
        ///         });
        ///         var id = Tencentcloud.ApiGateway.GetIpStrategies.Invoke(new Tencentcloud.ApiGateway.GetIpStrategiesInvokeArgs
        ///         {
        ///             ServiceId = test.ServiceId,
        ///         });
        ///         var name = Tencentcloud.ApiGateway.GetIpStrategies.Invoke(new Tencentcloud.ApiGateway.GetIpStrategiesInvokeArgs
        ///         {
        ///             ServiceId = test.ServiceId,
        ///             StrategyName = test.StrategyName,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetIpStrategiesResult> Invoke(GetIpStrategiesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetIpStrategiesResult>("tencentcloud:ApiGateway/getIpStrategies:getIpStrategies", args ?? new GetIpStrategiesInvokeArgs(), options.WithDefaults());
    }


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

        /// <summary>
        /// The service ID to be queried.
        /// </summary>
        [Input("serviceId", required: true)]
        public string ServiceId { get; set; } = null!;

        /// <summary>
        /// Name of IP policy.
        /// </summary>
        [Input("strategyName")]
        public string? StrategyName { get; set; }

        public GetIpStrategiesArgs()
        {
        }
    }

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

        /// <summary>
        /// The service ID to be queried.
        /// </summary>
        [Input("serviceId", required: true)]
        public Input<string> ServiceId { get; set; } = null!;

        /// <summary>
        /// Name of IP policy.
        /// </summary>
        [Input("strategyName")]
        public Input<string>? StrategyName { get; set; }

        public GetIpStrategiesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetIpStrategiesResult
    {
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A list of strategy.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetIpStrategiesListResult> Lists;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// The service ID.
        /// </summary>
        public readonly string ServiceId;
        /// <summary>
        /// Name of the strategy.
        /// </summary>
        public readonly string? StrategyName;

        [OutputConstructor]
        private GetIpStrategiesResult(
            string id,

            ImmutableArray<Outputs.GetIpStrategiesListResult> lists,

            string? resultOutputFile,

            string serviceId,

            string? strategyName)
        {
            Id = id;
            Lists = lists;
            ResultOutputFile = resultOutputFile;
            ServiceId = serviceId;
            StrategyName = strategyName;
        }
    }
}
