<reponame>Dwonczykj/gember_deploy// *** 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 GetApis
    {
        /// <summary>
        /// Use this data source to query API gateway APIs.
        /// 
        /// {{% 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 api = new Tencentcloud.ApiGateway.Api("api", new Tencentcloud.ApiGateway.ApiArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             ApiName = "hello",
        ///             ApiDesc = "my hello api",
        ///             AuthType = "NONE",
        ///             Protocol = "HTTP",
        ///             EnableCors = true,
        ///             RequestConfigPath = "/user/info",
        ///             RequestConfigMethod = "GET",
        ///             ServiceConfigType = "HTTP",
        ///             ServiceConfigTimeout = 15,
        ///             ServiceConfigUrl = "http://www.qq.com",
        ///             ServiceConfigPath = "/user",
        ///             ServiceConfigMethod = "GET",
        ///             ResponseType = "HTML",
        ///             ResponseSuccessExample = "success",
        ///             ResponseFailExample = "fail",
        ///         });
        ///         var id = Tencentcloud.ApiGateway.GetApis.Invoke(new Tencentcloud.ApiGateway.GetApisInvokeArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             ApiId = api.Id,
        ///         });
        ///         var name = Tencentcloud.ApiGateway.GetApis.Invoke(new Tencentcloud.ApiGateway.GetApisInvokeArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             ApiName = api.ApiName,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetApisResult> InvokeAsync(GetApisArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetApisResult>("tencentcloud:ApiGateway/getApis:getApis", args ?? new GetApisArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query API gateway APIs.
        /// 
        /// {{% 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 api = new Tencentcloud.ApiGateway.Api("api", new Tencentcloud.ApiGateway.ApiArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             ApiName = "hello",
        ///             ApiDesc = "my hello api",
        ///             AuthType = "NONE",
        ///             Protocol = "HTTP",
        ///             EnableCors = true,
        ///             RequestConfigPath = "/user/info",
        ///             RequestConfigMethod = "GET",
        ///             ServiceConfigType = "HTTP",
        ///             ServiceConfigTimeout = 15,
        ///             ServiceConfigUrl = "http://www.qq.com",
        ///             ServiceConfigPath = "/user",
        ///             ServiceConfigMethod = "GET",
        ///             ResponseType = "HTML",
        ///             ResponseSuccessExample = "success",
        ///             ResponseFailExample = "fail",
        ///         });
        ///         var id = Tencentcloud.ApiGateway.GetApis.Invoke(new Tencentcloud.ApiGateway.GetApisInvokeArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             ApiId = api.Id,
        ///         });
        ///         var name = Tencentcloud.ApiGateway.GetApis.Invoke(new Tencentcloud.ApiGateway.GetApisInvokeArgs
        ///         {
        ///             ServiceId = service.Id,
        ///             ApiName = api.ApiName,
        ///         });
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetApisResult> Invoke(GetApisInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetApisResult>("tencentcloud:ApiGateway/getApis:getApis", args ?? new GetApisInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetApisArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Created API ID.
        /// </summary>
        [Input("apiId")]
        public string? ApiId { get; set; }

        /// <summary>
        /// Custom API name.
        /// </summary>
        [Input("apiName")]
        public string? ApiName { get; set; }

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

        /// <summary>
        /// Service ID for query.
        /// </summary>
        [Input("serviceId", required: true)]
        public string ServiceId { get; set; } = null!;

        public GetApisArgs()
        {
        }
    }

    public sealed class GetApisInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Created API ID.
        /// </summary>
        [Input("apiId")]
        public Input<string>? ApiId { get; set; }

        /// <summary>
        /// Custom API name.
        /// </summary>
        [Input("apiName")]
        public Input<string>? ApiName { get; set; }

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

        /// <summary>
        /// Service ID for query.
        /// </summary>
        [Input("serviceId", required: true)]
        public Input<string> ServiceId { get; set; } = null!;

        public GetApisInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetApisResult
    {
        public readonly string? ApiId;
        /// <summary>
        /// Custom API name.
        /// </summary>
        public readonly string? ApiName;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A list of APIs.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetApisListResult> Lists;
        public readonly string? ResultOutputFile;
        /// <summary>
        /// Which service this API belongs. Refer to resource `tencentcloud.ApiGateway.Service`.
        /// </summary>
        public readonly string ServiceId;

        [OutputConstructor]
        private GetApisResult(
            string? apiId,

            string? apiName,

            string id,

            ImmutableArray<Outputs.GetApisListResult> lists,

            string? resultOutputFile,

            string serviceId)
        {
            ApiId = apiId;
            ApiName = apiName;
            Id = id;
            Lists = lists;
            ResultOutputFile = resultOutputFile;
            ServiceId = serviceId;
        }
    }
}
