tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getApiGatewayThrottlingApis
Start a Neo task
Explain and create a tencentcloud.getApiGatewayThrottlingApis resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query API gateway throttling APIs.
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",
});
const api = new tencentcloud.ApiGatewayApi("api", {
serviceId: service.apiGatewayServiceId,
apiName: "tf_example",
apiDesc: "my hello api update",
authType: "SECRET",
protocol: "HTTP",
enableCors: true,
requestConfigPath: "/user/info",
requestConfigMethod: "POST",
requestParameters: [{
name: "email",
position: "QUERY",
type: "string",
desc: "your email please?",
defaultValue: "tom@qq.com",
required: true,
}],
serviceConfigType: "HTTP",
serviceConfigTimeout: 10,
serviceConfigUrl: "http://www.tencent.com",
serviceConfigPath: "/user",
serviceConfigMethod: "POST",
responseType: "XML",
responseSuccessExample: "<note>success</note>",
responseFailExample: "<note>fail</note>",
responseErrorCodes: [{
code: 10,
msg: "system error",
desc: "system error code",
convertedCode: -10,
needConvert: true,
}],
releaseLimit: 100,
preLimit: 100,
testLimit: 100,
});
const id = tencentcloud.getApiGatewayThrottlingApis({
serviceId: serviceId,
});
const foo = tencentcloud.getApiGatewayThrottlingApis({
serviceId: serviceTencentcloudApiGatewayApi.serviceId,
environmentNames: [
"release",
"test",
],
});
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")
api = tencentcloud.ApiGatewayApi("api",
service_id=service.api_gateway_service_id,
api_name="tf_example",
api_desc="my hello api update",
auth_type="SECRET",
protocol="HTTP",
enable_cors=True,
request_config_path="/user/info",
request_config_method="POST",
request_parameters=[{
"name": "email",
"position": "QUERY",
"type": "string",
"desc": "your email please?",
"default_value": "tom@qq.com",
"required": True,
}],
service_config_type="HTTP",
service_config_timeout=10,
service_config_url="http://www.tencent.com",
service_config_path="/user",
service_config_method="POST",
response_type="XML",
response_success_example="<note>success</note>",
response_fail_example="<note>fail</note>",
response_error_codes=[{
"code": 10,
"msg": "system error",
"desc": "system error code",
"converted_code": -10,
"need_convert": True,
}],
release_limit=100,
pre_limit=100,
test_limit=100)
id = tencentcloud.get_api_gateway_throttling_apis(service_id=service_id)
foo = tencentcloud.get_api_gateway_throttling_apis(service_id=service_tencentcloud_api_gateway_api["serviceId"],
environment_names=[
"release",
"test",
])
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"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewApiGatewayApi(ctx, "api", &tencentcloud.ApiGatewayApiArgs{
ServiceId: service.ApiGatewayServiceId,
ApiName: pulumi.String("tf_example"),
ApiDesc: pulumi.String("my hello api update"),
AuthType: pulumi.String("SECRET"),
Protocol: pulumi.String("HTTP"),
EnableCors: pulumi.Bool(true),
RequestConfigPath: pulumi.String("/user/info"),
RequestConfigMethod: pulumi.String("POST"),
RequestParameters: tencentcloud.ApiGatewayApiRequestParameterArray{
&tencentcloud.ApiGatewayApiRequestParameterArgs{
Name: pulumi.String("email"),
Position: pulumi.String("QUERY"),
Type: pulumi.String("string"),
Desc: pulumi.String("your email please?"),
DefaultValue: pulumi.String("tom@qq.com"),
Required: pulumi.Bool(true),
},
},
ServiceConfigType: pulumi.String("HTTP"),
ServiceConfigTimeout: pulumi.Float64(10),
ServiceConfigUrl: pulumi.String("http://www.tencent.com"),
ServiceConfigPath: pulumi.String("/user"),
ServiceConfigMethod: pulumi.String("POST"),
ResponseType: pulumi.String("XML"),
ResponseSuccessExample: pulumi.String("<note>success</note>"),
ResponseFailExample: pulumi.String("<note>fail</note>"),
ResponseErrorCodes: tencentcloud.ApiGatewayApiResponseErrorCodeArray{
&tencentcloud.ApiGatewayApiResponseErrorCodeArgs{
Code: pulumi.Float64(10),
Msg: pulumi.String("system error"),
Desc: pulumi.String("system error code"),
ConvertedCode: pulumi.Float64(-10),
NeedConvert: pulumi.Bool(true),
},
},
ReleaseLimit: pulumi.Float64(100),
PreLimit: pulumi.Float64(100),
TestLimit: pulumi.Float64(100),
})
if err != nil {
return err
}
_, err = tencentcloud.GetApiGatewayThrottlingApis(ctx, &tencentcloud.GetApiGatewayThrottlingApisArgs{
ServiceId: pulumi.StringRef(serviceId),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetApiGatewayThrottlingApis(ctx, &tencentcloud.GetApiGatewayThrottlingApisArgs{
ServiceId: pulumi.StringRef(serviceTencentcloudApiGatewayApi.ServiceId),
EnvironmentNames: []string{
"release",
"test",
},
}, nil)
if err != nil {
return err
}
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",
});
var api = new Tencentcloud.ApiGatewayApi("api", new()
{
ServiceId = service.ApiGatewayServiceId,
ApiName = "tf_example",
ApiDesc = "my hello api update",
AuthType = "SECRET",
Protocol = "HTTP",
EnableCors = true,
RequestConfigPath = "/user/info",
RequestConfigMethod = "POST",
RequestParameters = new[]
{
new Tencentcloud.Inputs.ApiGatewayApiRequestParameterArgs
{
Name = "email",
Position = "QUERY",
Type = "string",
Desc = "your email please?",
DefaultValue = "tom@qq.com",
Required = true,
},
},
ServiceConfigType = "HTTP",
ServiceConfigTimeout = 10,
ServiceConfigUrl = "http://www.tencent.com",
ServiceConfigPath = "/user",
ServiceConfigMethod = "POST",
ResponseType = "XML",
ResponseSuccessExample = "<note>success</note>",
ResponseFailExample = "<note>fail</note>",
ResponseErrorCodes = new[]
{
new Tencentcloud.Inputs.ApiGatewayApiResponseErrorCodeArgs
{
Code = 10,
Msg = "system error",
Desc = "system error code",
ConvertedCode = -10,
NeedConvert = true,
},
},
ReleaseLimit = 100,
PreLimit = 100,
TestLimit = 100,
});
var id = Tencentcloud.GetApiGatewayThrottlingApis.Invoke(new()
{
ServiceId = serviceId,
});
var foo = Tencentcloud.GetApiGatewayThrottlingApis.Invoke(new()
{
ServiceId = serviceTencentcloudApiGatewayApi.ServiceId,
EnvironmentNames = new[]
{
"release",
"test",
},
});
});
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.ApiGatewayApi;
import com.pulumi.tencentcloud.ApiGatewayApiArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayApiRequestParameterArgs;
import com.pulumi.tencentcloud.inputs.ApiGatewayApiResponseErrorCodeArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetApiGatewayThrottlingApisArgs;
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")
.build());
var api = new ApiGatewayApi("api", ApiGatewayApiArgs.builder()
.serviceId(service.apiGatewayServiceId())
.apiName("tf_example")
.apiDesc("my hello api update")
.authType("SECRET")
.protocol("HTTP")
.enableCors(true)
.requestConfigPath("/user/info")
.requestConfigMethod("POST")
.requestParameters(ApiGatewayApiRequestParameterArgs.builder()
.name("email")
.position("QUERY")
.type("string")
.desc("your email please?")
.defaultValue("tom@qq.com")
.required(true)
.build())
.serviceConfigType("HTTP")
.serviceConfigTimeout(10.0)
.serviceConfigUrl("http://www.tencent.com")
.serviceConfigPath("/user")
.serviceConfigMethod("POST")
.responseType("XML")
.responseSuccessExample("<note>success</note>")
.responseFailExample("<note>fail</note>")
.responseErrorCodes(ApiGatewayApiResponseErrorCodeArgs.builder()
.code(10.0)
.msg("system error")
.desc("system error code")
.convertedCode(-10.0)
.needConvert(true)
.build())
.releaseLimit(100.0)
.preLimit(100.0)
.testLimit(100.0)
.build());
final var id = TencentcloudFunctions.getApiGatewayThrottlingApis(GetApiGatewayThrottlingApisArgs.builder()
.serviceId(serviceId)
.build());
final var foo = TencentcloudFunctions.getApiGatewayThrottlingApis(GetApiGatewayThrottlingApisArgs.builder()
.serviceId(serviceTencentcloudApiGatewayApi.serviceId())
.environmentNames(
"release",
"test")
.build());
}
}
resources:
service:
type: tencentcloud:ApiGatewayService
properties:
serviceName: niceservice
protocol: http&https
serviceDesc: your nice service
netTypes:
- INNER
- OUTER
ipVersion: IPv4
api:
type: tencentcloud:ApiGatewayApi
properties:
serviceId: ${service.apiGatewayServiceId}
apiName: tf_example
apiDesc: my hello api update
authType: SECRET
protocol: HTTP
enableCors: true
requestConfigPath: /user/info
requestConfigMethod: POST
requestParameters:
- name: email
position: QUERY
type: string
desc: your email please?
defaultValue: tom@qq.com
required: true
serviceConfigType: HTTP
serviceConfigTimeout: 10
serviceConfigUrl: http://www.tencent.com
serviceConfigPath: /user
serviceConfigMethod: POST
responseType: XML
responseSuccessExample: <note>success</note>
responseFailExample: <note>fail</note>
responseErrorCodes:
- code: 10
msg: system error
desc: system error code
convertedCode: -10
needConvert: true
releaseLimit: 100
preLimit: 100
testLimit: 100
variables:
id:
fn::invoke:
function: tencentcloud:getApiGatewayThrottlingApis
arguments:
serviceId: ${serviceId}
foo:
fn::invoke:
function: tencentcloud:getApiGatewayThrottlingApis
arguments:
serviceId: ${serviceTencentcloudApiGatewayApi.serviceId}
environmentNames:
- release
- test
Using getApiGatewayThrottlingApis
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 getApiGatewayThrottlingApis(args: GetApiGatewayThrottlingApisArgs, opts?: InvokeOptions): Promise<GetApiGatewayThrottlingApisResult>
function getApiGatewayThrottlingApisOutput(args: GetApiGatewayThrottlingApisOutputArgs, opts?: InvokeOptions): Output<GetApiGatewayThrottlingApisResult>def get_api_gateway_throttling_apis(environment_names: Optional[Sequence[str]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
service_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiGatewayThrottlingApisResult
def get_api_gateway_throttling_apis_output(environment_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
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[GetApiGatewayThrottlingApisResult]func GetApiGatewayThrottlingApis(ctx *Context, args *GetApiGatewayThrottlingApisArgs, opts ...InvokeOption) (*GetApiGatewayThrottlingApisResult, error)
func GetApiGatewayThrottlingApisOutput(ctx *Context, args *GetApiGatewayThrottlingApisOutputArgs, opts ...InvokeOption) GetApiGatewayThrottlingApisResultOutput> Note: This function is named GetApiGatewayThrottlingApis in the Go SDK.
public static class GetApiGatewayThrottlingApis
{
public static Task<GetApiGatewayThrottlingApisResult> InvokeAsync(GetApiGatewayThrottlingApisArgs args, InvokeOptions? opts = null)
public static Output<GetApiGatewayThrottlingApisResult> Invoke(GetApiGatewayThrottlingApisInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetApiGatewayThrottlingApisResult> getApiGatewayThrottlingApis(GetApiGatewayThrottlingApisArgs args, InvokeOptions options)
public static Output<GetApiGatewayThrottlingApisResult> getApiGatewayThrottlingApis(GetApiGatewayThrottlingApisArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getApiGatewayThrottlingApis:getApiGatewayThrottlingApis
arguments:
# arguments dictionaryThe following arguments are supported:
- Environment
Names List<string> - Environment list.
- Id string
- Result
Output stringFile - Used to save results.
- Service
Id string - Unique service ID of API.
- Environment
Names []string - Environment list.
- Id string
- Result
Output stringFile - Used to save results.
- Service
Id string - Unique service ID of API.
- environment
Names List<String> - Environment list.
- id String
- result
Output StringFile - Used to save results.
- service
Id String - Unique service ID of API.
- environment
Names string[] - Environment list.
- id string
- result
Output stringFile - Used to save results.
- service
Id string - Unique service ID of API.
- environment_
names Sequence[str] - Environment list.
- id str
- result_
output_ strfile - Used to save results.
- service_
id str - Unique service ID of API.
- environment
Names List<String> - Environment list.
- id String
- result
Output StringFile - Used to save results.
- service
Id String - Unique service ID of API.
getApiGatewayThrottlingApis Result
The following output properties are available:
- Id string
- Lists
List<Get
Api Gateway Throttling Apis List> - A list of policies bound to API.
- Environment
Names List<string> - Result
Output stringFile - Service
Id string - Unique service ID of API.
- Id string
- Lists
[]Get
Api Gateway Throttling Apis List - A list of policies bound to API.
- Environment
Names []string - Result
Output stringFile - Service
Id string - Unique service ID of API.
- id String
- lists
List<Get
Api Gateway Throttling Apis List> - A list of policies bound to API.
- environment
Names List<String> - result
Output StringFile - service
Id String - Unique service ID of API.
- id string
- lists
Get
Api Gateway Throttling Apis List[] - A list of policies bound to API.
- environment
Names string[] - result
Output stringFile - service
Id string - Unique service ID of API.
- id str
- lists
Sequence[Get
Api Gateway Throttling Apis List] - A list of policies bound to API.
- environment_
names Sequence[str] - result_
output_ strfile - service_
id str - Unique service ID of API.
- id String
- lists List<Property Map>
- A list of policies bound to API.
- environment
Names List<String> - result
Output StringFile - service
Id String - Unique service ID of API.
Supporting Types
GetApiGatewayThrottlingApisList
- Api
Environment List<GetStrategies Api Gateway Throttling Apis List Api Environment Strategy> - List of throttling policies bound to API.
- Service
Id string - Unique service ID of API.
- Api
Environment []GetStrategies Api Gateway Throttling Apis List Api Environment Strategy - List of throttling policies bound to API.
- Service
Id string - Unique service ID of API.
- api
Environment List<GetStrategies Api Gateway Throttling Apis List Api Environment Strategy> - List of throttling policies bound to API.
- service
Id String - Unique service ID of API.
- api
Environment GetStrategies Api Gateway Throttling Apis List Api Environment Strategy[] - List of throttling policies bound to API.
- service
Id string - Unique service ID of API.
- api_
environment_ Sequence[Getstrategies Api Gateway Throttling Apis List Api Environment Strategy] - List of throttling policies bound to API.
- service_
id str - Unique service ID of API.
- api
Environment List<Property Map>Strategies - List of throttling policies bound to API.
- service
Id String - Unique service ID of API.
GetApiGatewayThrottlingApisListApiEnvironmentStrategy
- Api
Id string - Unique API ID.
- Api
Name string - Custom API name.
- Method string
- API method.
- Path string
- API path.
- Strategy
Lists List<GetApi Gateway Throttling Apis List Api Environment Strategy Strategy List> - Environment throttling information.
- Api
Id string - Unique API ID.
- Api
Name string - Custom API name.
- Method string
- API method.
- Path string
- API path.
- Strategy
Lists []GetApi Gateway Throttling Apis List Api Environment Strategy Strategy List - Environment throttling information.
- api
Id String - Unique API ID.
- api
Name String - Custom API name.
- method String
- API method.
- path String
- API path.
- strategy
Lists List<GetApi Gateway Throttling Apis List Api Environment Strategy Strategy List> - Environment throttling information.
- api
Id string - Unique API ID.
- api
Name string - Custom API name.
- method string
- API method.
- path string
- API path.
- strategy
Lists GetApi Gateway Throttling Apis List Api Environment Strategy Strategy List[] - Environment throttling information.
- api_
id str - Unique API ID.
- api_
name str - Custom API name.
- method str
- API method.
- path str
- API path.
- strategy_
lists Sequence[GetApi Gateway Throttling Apis List Api Environment Strategy Strategy List] - Environment throttling information.
- api
Id String - Unique API ID.
- api
Name String - Custom API name.
- method String
- API method.
- path String
- API path.
- strategy
Lists List<Property Map> - Environment throttling information.
GetApiGatewayThrottlingApisListApiEnvironmentStrategyStrategyList
- Environment
Name string - Environment name.
- Quota double
- Throttling value.
- Environment
Name string - Environment name.
- Quota float64
- Throttling value.
- environment
Name String - Environment name.
- quota Double
- Throttling value.
- environment
Name string - Environment name.
- quota number
- Throttling value.
- environment_
name str - Environment name.
- quota float
- Throttling value.
- environment
Name String - Environment name.
- quota Number
- Throttling value.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
