tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getTseGatewayRoutes
Start a Neo task
Explain and create a tencentcloud.getTseGatewayRoutes resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of tse gateway_routes
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const gatewayRoutes = tencentcloud.getTseGatewayRoutes({
gatewayId: "gateway-ddbb709b",
serviceName: "test",
routeName: "keep-routes",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
gateway_routes = tencentcloud.get_tse_gateway_routes(gateway_id="gateway-ddbb709b",
service_name="test",
route_name="keep-routes")
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 {
_, err := tencentcloud.LookupTseGatewayRoutes(ctx, &tencentcloud.LookupTseGatewayRoutesArgs{
GatewayId: "gateway-ddbb709b",
ServiceName: pulumi.StringRef("test"),
RouteName: pulumi.StringRef("keep-routes"),
}, 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 gatewayRoutes = Tencentcloud.GetTseGatewayRoutes.Invoke(new()
{
GatewayId = "gateway-ddbb709b",
ServiceName = "test",
RouteName = "keep-routes",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetTseGatewayRoutesArgs;
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) {
final var gatewayRoutes = TencentcloudFunctions.getTseGatewayRoutes(GetTseGatewayRoutesArgs.builder()
.gatewayId("gateway-ddbb709b")
.serviceName("test")
.routeName("keep-routes")
.build());
}
}
variables:
gatewayRoutes:
fn::invoke:
function: tencentcloud:getTseGatewayRoutes
arguments:
gatewayId: gateway-ddbb709b
serviceName: test
routeName: keep-routes
Using getTseGatewayRoutes
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 getTseGatewayRoutes(args: GetTseGatewayRoutesArgs, opts?: InvokeOptions): Promise<GetTseGatewayRoutesResult>
function getTseGatewayRoutesOutput(args: GetTseGatewayRoutesOutputArgs, opts?: InvokeOptions): Output<GetTseGatewayRoutesResult>def get_tse_gateway_routes(gateway_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
route_name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTseGatewayRoutesResult
def get_tse_gateway_routes_output(gateway_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
route_name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTseGatewayRoutesResult]func LookupTseGatewayRoutes(ctx *Context, args *LookupTseGatewayRoutesArgs, opts ...InvokeOption) (*LookupTseGatewayRoutesResult, error)
func LookupTseGatewayRoutesOutput(ctx *Context, args *LookupTseGatewayRoutesOutputArgs, opts ...InvokeOption) LookupTseGatewayRoutesResultOutput> Note: This function is named LookupTseGatewayRoutes in the Go SDK.
public static class GetTseGatewayRoutes
{
public static Task<GetTseGatewayRoutesResult> InvokeAsync(GetTseGatewayRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetTseGatewayRoutesResult> Invoke(GetTseGatewayRoutesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTseGatewayRoutesResult> getTseGatewayRoutes(GetTseGatewayRoutesArgs args, InvokeOptions options)
public static Output<GetTseGatewayRoutesResult> getTseGatewayRoutes(GetTseGatewayRoutesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTseGatewayRoutes:getTseGatewayRoutes
arguments:
# arguments dictionaryThe following arguments are supported:
- Gateway
Id string - gateway ID.
- Id string
- service ID.
- Result
Output stringFile - Used to save results.
- Route
Name string - route name.
- Service
Name string - service name.
- Gateway
Id string - gateway ID.
- Id string
- service ID.
- Result
Output stringFile - Used to save results.
- Route
Name string - route name.
- Service
Name string - service name.
- gateway
Id String - gateway ID.
- id String
- service ID.
- result
Output StringFile - Used to save results.
- route
Name String - route name.
- service
Name String - service name.
- gateway
Id string - gateway ID.
- id string
- service ID.
- result
Output stringFile - Used to save results.
- route
Name string - route name.
- service
Name string - service name.
- gateway_
id str - gateway ID.
- id str
- service ID.
- result_
output_ strfile - Used to save results.
- route_
name str - route name.
- service_
name str - service name.
- gateway
Id String - gateway ID.
- id String
- service ID.
- result
Output StringFile - Used to save results.
- route
Name String - route name.
- service
Name String - service name.
getTseGatewayRoutes Result
The following output properties are available:
- Gateway
Id string - Id string
- service ID.
- Results
List<Get
Tse Gateway Routes Result> - result.
- Result
Output stringFile - Route
Name string - Service
Name string - service name.
- Gateway
Id string - Id string
- service ID.
- Results
[]Get
Tse Gateway Routes Result - result.
- Result
Output stringFile - Route
Name string - Service
Name string - service name.
- gateway
Id String - id String
- service ID.
- results
List<Get
Tse Gateway Routes Result> - result.
- result
Output StringFile - route
Name String - service
Name String - service name.
- gateway
Id string - id string
- service ID.
- results
Get
Tse Gateway Routes Result[] - result.
- result
Output stringFile - route
Name string - service
Name string - service name.
- gateway_
id str - id str
- service ID.
- results
Sequence[Get
Tse Gateway Routes Result] - result.
- result_
output_ strfile - route_
name str - service_
name str - service name.
- gateway
Id String - id String
- service ID.
- results List<Property Map>
- result.
- result
Output StringFile - route
Name String - service
Name String - service name.
Supporting Types
GetTseGatewayRoutesResult
- Route
Lists List<GetTse Gateway Routes Result Route List> - route list.
- Total
Count double - total count.
- Route
Lists []GetTse Gateway Routes Result Route List - route list.
- Total
Count float64 - total count.
- route
Lists List<GetTse Gateway Routes Result Route List> - route list.
- total
Count Double - total count.
- route
Lists GetTse Gateway Routes Result Route List[] - route list.
- total
Count number - total count.
- route_
lists Sequence[GetTse Gateway Routes Result Route List] - route list.
- total_
count float - total count.
- route
Lists List<Property Map> - route list.
- total
Count Number - total count.
GetTseGatewayRoutesResultRouteList
- Created
Time string - created time.
- Destination
Ports List<double> - destination port for Layer 4 matching.
- Force
Https bool - whether to enable forced HTTPS, no longer use.
- Headers
List<Get
Tse Gateway Routes Result Route List Header> - the headers of route.
- Hosts List<string>
- host list.
- Https
Redirect doubleStatus Code - https redirection status code.
- Id string
- service ID.
- Methods List<string>
- method list.
- Name string
- service name.
- Paths List<string>
- path list.
- Preserve
Host bool - whether to keep the host when forwarding to the backend.
- Protocols List<string>
- protocol list.
- Service
Id string - service ID.
- Service
Name string - service name.
- Strip
Path bool - whether to strip path when forwarding to the backend.
- Created
Time string - created time.
- Destination
Ports []float64 - destination port for Layer 4 matching.
- Force
Https bool - whether to enable forced HTTPS, no longer use.
- Headers
[]Get
Tse Gateway Routes Result Route List Header - the headers of route.
- Hosts []string
- host list.
- Https
Redirect float64Status Code - https redirection status code.
- Id string
- service ID.
- Methods []string
- method list.
- Name string
- service name.
- Paths []string
- path list.
- Preserve
Host bool - whether to keep the host when forwarding to the backend.
- Protocols []string
- protocol list.
- Service
Id string - service ID.
- Service
Name string - service name.
- Strip
Path bool - whether to strip path when forwarding to the backend.
- created
Time String - created time.
- destination
Ports List<Double> - destination port for Layer 4 matching.
- force
Https Boolean - whether to enable forced HTTPS, no longer use.
- headers
List<Get
Tse Gateway Routes Result Route List Header> - the headers of route.
- hosts List<String>
- host list.
- https
Redirect DoubleStatus Code - https redirection status code.
- id String
- service ID.
- methods List<String>
- method list.
- name String
- service name.
- paths List<String>
- path list.
- preserve
Host Boolean - whether to keep the host when forwarding to the backend.
- protocols List<String>
- protocol list.
- service
Id String - service ID.
- service
Name String - service name.
- strip
Path Boolean - whether to strip path when forwarding to the backend.
- created
Time string - created time.
- destination
Ports number[] - destination port for Layer 4 matching.
- force
Https boolean - whether to enable forced HTTPS, no longer use.
- headers
Get
Tse Gateway Routes Result Route List Header[] - the headers of route.
- hosts string[]
- host list.
- https
Redirect numberStatus Code - https redirection status code.
- id string
- service ID.
- methods string[]
- method list.
- name string
- service name.
- paths string[]
- path list.
- preserve
Host boolean - whether to keep the host when forwarding to the backend.
- protocols string[]
- protocol list.
- service
Id string - service ID.
- service
Name string - service name.
- strip
Path boolean - whether to strip path when forwarding to the backend.
- created_
time str - created time.
- destination_
ports Sequence[float] - destination port for Layer 4 matching.
- force_
https bool - whether to enable forced HTTPS, no longer use.
- headers
Sequence[Get
Tse Gateway Routes Result Route List Header] - the headers of route.
- hosts Sequence[str]
- host list.
- https_
redirect_ floatstatus_ code - https redirection status code.
- id str
- service ID.
- methods Sequence[str]
- method list.
- name str
- service name.
- paths Sequence[str]
- path list.
- preserve_
host bool - whether to keep the host when forwarding to the backend.
- protocols Sequence[str]
- protocol list.
- service_
id str - service ID.
- service_
name str - service name.
- strip_
path bool - whether to strip path when forwarding to the backend.
- created
Time String - created time.
- destination
Ports List<Number> - destination port for Layer 4 matching.
- force
Https Boolean - whether to enable forced HTTPS, no longer use.
- headers List<Property Map>
- the headers of route.
- hosts List<String>
- host list.
- https
Redirect NumberStatus Code - https redirection status code.
- id String
- service ID.
- methods List<String>
- method list.
- name String
- service name.
- paths List<String>
- path list.
- preserve
Host Boolean - whether to keep the host when forwarding to the backend.
- protocols List<String>
- protocol list.
- service
Id String - service ID.
- service
Name String - service name.
- strip
Path Boolean - whether to strip path when forwarding to the backend.
GetTseGatewayRoutesResultRouteListHeader
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
