tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getApiGatewayThrottlingServices
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query API gateway throttling services.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const service = new tencentcloud.ApiGatewayService("service", {
    serviceName: "niceservice",
    protocol: "http&https",
    serviceDesc: "your nice service",
    netTypes: [
        "INNER",
        "OUTER",
    ],
    ipVersion: "IPv4",
    releaseLimit: 100,
    preLimit: 100,
    testLimit: 100,
});
const id = tencentcloud.getApiGatewayThrottlingServicesOutput({
    serviceId: service.apiGatewayServiceId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
service = tencentcloud.ApiGatewayService("service",
    service_name="niceservice",
    protocol="http&https",
    service_desc="your nice service",
    net_types=[
        "INNER",
        "OUTER",
    ],
    ip_version="IPv4",
    release_limit=100,
    pre_limit=100,
    test_limit=100)
id = tencentcloud.get_api_gateway_throttling_services_output(service_id=service.api_gateway_service_id)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		service, err := tencentcloud.NewApiGatewayService(ctx, "service", &tencentcloud.ApiGatewayServiceArgs{
			ServiceName: pulumi.String("niceservice"),
			Protocol:    pulumi.String("http&https"),
			ServiceDesc: pulumi.String("your nice service"),
			NetTypes: pulumi.StringArray{
				pulumi.String("INNER"),
				pulumi.String("OUTER"),
			},
			IpVersion:    pulumi.String("IPv4"),
			ReleaseLimit: pulumi.Float64(100),
			PreLimit:     pulumi.Float64(100),
			TestLimit:    pulumi.Float64(100),
		})
		if err != nil {
			return err
		}
		_ = tencentcloud.GetApiGatewayThrottlingServicesOutput(ctx, tencentcloud.GetApiGatewayThrottlingServicesOutputArgs{
			ServiceId: service.ApiGatewayServiceId,
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() => 
{
    var service = new Tencentcloud.ApiGatewayService("service", new()
    {
        ServiceName = "niceservice",
        Protocol = "http&https",
        ServiceDesc = "your nice service",
        NetTypes = new[]
        {
            "INNER",
            "OUTER",
        },
        IpVersion = "IPv4",
        ReleaseLimit = 100,
        PreLimit = 100,
        TestLimit = 100,
    });
    var id = Tencentcloud.GetApiGatewayThrottlingServices.Invoke(new()
    {
        ServiceId = service.ApiGatewayServiceId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayService;
import com.pulumi.tencentcloud.ApiGatewayServiceArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetApiGatewayThrottlingServicesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var service = new ApiGatewayService("service", ApiGatewayServiceArgs.builder()
            .serviceName("niceservice")
            .protocol("http&https")
            .serviceDesc("your nice service")
            .netTypes(            
                "INNER",
                "OUTER")
            .ipVersion("IPv4")
            .releaseLimit(100)
            .preLimit(100)
            .testLimit(100)
            .build());
        final var id = TencentcloudFunctions.getApiGatewayThrottlingServices(GetApiGatewayThrottlingServicesArgs.builder()
            .serviceId(service.apiGatewayServiceId())
            .build());
    }
}
resources:
  service:
    type: tencentcloud:ApiGatewayService
    properties:
      serviceName: niceservice
      protocol: http&https
      serviceDesc: your nice service
      netTypes:
        - INNER
        - OUTER
      ipVersion: IPv4
      releaseLimit: 100
      preLimit: 100
      testLimit: 100
variables:
  id:
    fn::invoke:
      function: tencentcloud:getApiGatewayThrottlingServices
      arguments:
        serviceId: ${service.apiGatewayServiceId}
Using getApiGatewayThrottlingServices
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getApiGatewayThrottlingServices(args: GetApiGatewayThrottlingServicesArgs, opts?: InvokeOptions): Promise<GetApiGatewayThrottlingServicesResult>
function getApiGatewayThrottlingServicesOutput(args: GetApiGatewayThrottlingServicesOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayThrottlingServicesResult>def get_api_gateway_throttling_services(id: Optional[str] = None,
                                        result_output_file: Optional[str] = None,
                                        service_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetApiGatewayThrottlingServicesResult
def get_api_gateway_throttling_services_output(id: Optional[pulumi.Input[str]] = None,
                                        result_output_file: Optional[pulumi.Input[str]] = None,
                                        service_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetApiGatewayThrottlingServicesResult]func GetApiGatewayThrottlingServices(ctx *Context, args *GetApiGatewayThrottlingServicesArgs, opts ...InvokeOption) (*GetApiGatewayThrottlingServicesResult, error)
func GetApiGatewayThrottlingServicesOutput(ctx *Context, args *GetApiGatewayThrottlingServicesOutputArgs, opts ...InvokeOption) GetApiGatewayThrottlingServicesResultOutput> Note: This function is named GetApiGatewayThrottlingServices in the Go SDK.
public static class GetApiGatewayThrottlingServices 
{
    public static Task<GetApiGatewayThrottlingServicesResult> InvokeAsync(GetApiGatewayThrottlingServicesArgs args, InvokeOptions? opts = null)
    public static Output<GetApiGatewayThrottlingServicesResult> Invoke(GetApiGatewayThrottlingServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiGatewayThrottlingServicesResult> getApiGatewayThrottlingServices(GetApiGatewayThrottlingServicesArgs args, InvokeOptions options)
public static Output<GetApiGatewayThrottlingServicesResult> getApiGatewayThrottlingServices(GetApiGatewayThrottlingServicesArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getApiGatewayThrottlingServices:getApiGatewayThrottlingServices
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- ResultOutput stringFile 
- Used to save results.
- ServiceId string
- Service ID for query.
- Id string
- ResultOutput stringFile 
- Used to save results.
- ServiceId string
- Service ID for query.
- id String
- resultOutput StringFile 
- Used to save results.
- serviceId String
- Service ID for query.
- id string
- resultOutput stringFile 
- Used to save results.
- serviceId string
- Service ID for query.
- id str
- result_output_ strfile 
- Used to save results.
- service_id str
- Service ID for query.
- id String
- resultOutput StringFile 
- Used to save results.
- serviceId String
- Service ID for query.
getApiGatewayThrottlingServices Result
The following output properties are available:
- Id string
- Lists
List<GetApi Gateway Throttling Services List> 
- A list of Throttling policy.
- ResultOutput stringFile 
- ServiceId string
- Service ID for query.
- Id string
- Lists
[]GetApi Gateway Throttling Services List 
- A list of Throttling policy.
- ResultOutput stringFile 
- ServiceId string
- Service ID for query.
- id String
- lists
List<GetApi Gateway Throttling Services List> 
- A list of Throttling policy.
- resultOutput StringFile 
- serviceId String
- Service ID for query.
- id string
- lists
GetApi Gateway Throttling Services List[] 
- A list of Throttling policy.
- resultOutput stringFile 
- serviceId string
- Service ID for query.
- id str
- lists
Sequence[GetApi Gateway Throttling Services List] 
- A list of Throttling policy.
- result_output_ strfile 
- service_id str
- Service ID for query.
- id String
- lists List<Property Map>
- A list of Throttling policy.
- resultOutput StringFile 
- serviceId String
- Service ID for query.
Supporting Types
GetApiGatewayThrottlingServicesList     
- Environments
List<GetApi Gateway Throttling Services List Environment> 
- A list of Throttling policy.
- ServiceId string
- Service ID for query.
- Environments
[]GetApi Gateway Throttling Services List Environment 
- A list of Throttling policy.
- ServiceId string
- Service ID for query.
- environments
List<GetApi Gateway Throttling Services List Environment> 
- A list of Throttling policy.
- serviceId String
- Service ID for query.
- environments
GetApi Gateway Throttling Services List Environment[] 
- A list of Throttling policy.
- serviceId string
- Service ID for query.
- environments
Sequence[GetApi Gateway Throttling Services List Environment] 
- A list of Throttling policy.
- service_id str
- Service ID for query.
- environments List<Property Map>
- A list of Throttling policy.
- serviceId String
- Service ID for query.
GetApiGatewayThrottlingServicesListEnvironment      
- EnvironmentName string
- Environment name.
- Status double
- Release status.
- Strategy double
- Throttling value.
- Url string
- Access service environment URL.
- VersionName string
- Published version number.
- EnvironmentName string
- Environment name.
- Status float64
- Release status.
- Strategy float64
- Throttling value.
- Url string
- Access service environment URL.
- VersionName string
- Published version number.
- environmentName String
- Environment name.
- status Double
- Release status.
- strategy Double
- Throttling value.
- url String
- Access service environment URL.
- versionName String
- Published version number.
- environmentName string
- Environment name.
- status number
- Release status.
- strategy number
- Throttling value.
- url string
- Access service environment URL.
- versionName string
- Published version number.
- environment_name str
- Environment name.
- status float
- Release status.
- strategy float
- Throttling value.
- url str
- Access service environment URL.
- version_name str
- Published version number.
- environmentName String
- Environment name.
- status Number
- Release status.
- strategy Number
- Throttling value.
- url String
- Access service environment URL.
- versionName String
- Published version number.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack