1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTseGatewayRoutes
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getTseGatewayRoutes

Explore with Pulumi AI

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",
    routeName: "keep-routes",
    serviceName: "test",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

gateway_routes = tencentcloud.get_tse_gateway_routes(gateway_id="gateway-ddbb709b",
    route_name="keep-routes",
    service_name="test")
Copy
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",
			RouteName:   pulumi.StringRef("keep-routes"),
			ServiceName: pulumi.StringRef("test"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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",
        RouteName = "keep-routes",
        ServiceName = "test",
    });

});
Copy
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")
            .routeName("keep-routes")
            .serviceName("test")
            .build());

    }
}
Copy
variables:
  gatewayRoutes:
    fn::invoke:
      function: tencentcloud:getTseGatewayRoutes
      arguments:
        gatewayId: gateway-ddbb709b
        routeName: keep-routes
        serviceName: test
Copy

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>
Copy
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]
Copy
func LookupTseGatewayRoutes(ctx *Context, args *LookupTseGatewayRoutesArgs, opts ...InvokeOption) (*LookupTseGatewayRoutesResult, error)
func LookupTseGatewayRoutesOutput(ctx *Context, args *LookupTseGatewayRoutesOutputArgs, opts ...InvokeOption) LookupTseGatewayRoutesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTseGatewayRoutesResult> getTseGatewayRoutes(GetTseGatewayRoutesArgs args, InvokeOptions options)
public static Output<GetTseGatewayRoutesResult> getTseGatewayRoutes(GetTseGatewayRoutesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getTseGatewayRoutes:getTseGatewayRoutes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

GatewayId This property is required. string
gateway ID.
Id string
service ID.
ResultOutputFile string
Used to save results.
RouteName string
route name.
ServiceName string
service name.
GatewayId This property is required. string
gateway ID.
Id string
service ID.
ResultOutputFile string
Used to save results.
RouteName string
route name.
ServiceName string
service name.
gatewayId This property is required. String
gateway ID.
id String
service ID.
resultOutputFile String
Used to save results.
routeName String
route name.
serviceName String
service name.
gatewayId This property is required. string
gateway ID.
id string
service ID.
resultOutputFile string
Used to save results.
routeName string
route name.
serviceName string
service name.
gateway_id This property is required. str
gateway ID.
id str
service ID.
result_output_file str
Used to save results.
route_name str
route name.
service_name str
service name.
gatewayId This property is required. String
gateway ID.
id String
service ID.
resultOutputFile String
Used to save results.
routeName String
route name.
serviceName String
service name.

getTseGatewayRoutes Result

The following output properties are available:

GatewayId string
Id string
service ID.
Results List<GetTseGatewayRoutesResult>
result.
ResultOutputFile string
RouteName string
ServiceName string
service name.
GatewayId string
Id string
service ID.
Results []GetTseGatewayRoutesResult
result.
ResultOutputFile string
RouteName string
ServiceName string
service name.
gatewayId String
id String
service ID.
results List<GetTseGatewayRoutesResult>
result.
resultOutputFile String
routeName String
serviceName String
service name.
gatewayId string
id string
service ID.
results GetTseGatewayRoutesResult[]
result.
resultOutputFile string
routeName string
serviceName string
service name.
gatewayId String
id String
service ID.
results List<Property Map>
result.
resultOutputFile String
routeName String
serviceName String
service name.

Supporting Types

GetTseGatewayRoutesResult

RouteLists This property is required. List<GetTseGatewayRoutesResultRouteList>
route list.
TotalCount This property is required. double
total count.
RouteLists This property is required. []GetTseGatewayRoutesResultRouteList
route list.
TotalCount This property is required. float64
total count.
routeLists This property is required. List<GetTseGatewayRoutesResultRouteList>
route list.
totalCount This property is required. Double
total count.
routeLists This property is required. GetTseGatewayRoutesResultRouteList[]
route list.
totalCount This property is required. number
total count.
route_lists This property is required. Sequence[GetTseGatewayRoutesResultRouteList]
route list.
total_count This property is required. float
total count.
routeLists This property is required. List<Property Map>
route list.
totalCount This property is required. Number
total count.

GetTseGatewayRoutesResultRouteList

CreatedTime This property is required. string
created time.
DestinationPorts This property is required. List<double>
destination port for Layer 4 matching.
ForceHttps This property is required. bool
whether to enable forced HTTPS, no longer use.
Headers This property is required. List<GetTseGatewayRoutesResultRouteListHeader>
the headers of route.
Hosts This property is required. List<string>
host list.
HttpsRedirectStatusCode This property is required. double
https redirection status code.
Id This property is required. string
service ID.
Methods This property is required. List<string>
method list.
Name This property is required. string
service name.
Paths This property is required. List<string>
path list.
PreserveHost This property is required. bool
whether to keep the host when forwarding to the backend.
Protocols This property is required. List<string>
protocol list.
ServiceId This property is required. string
service ID.
ServiceName This property is required. string
service name.
StripPath This property is required. bool
whether to strip path when forwarding to the backend.
CreatedTime This property is required. string
created time.
DestinationPorts This property is required. []float64
destination port for Layer 4 matching.
ForceHttps This property is required. bool
whether to enable forced HTTPS, no longer use.
Headers This property is required. []GetTseGatewayRoutesResultRouteListHeader
the headers of route.
Hosts This property is required. []string
host list.
HttpsRedirectStatusCode This property is required. float64
https redirection status code.
Id This property is required. string
service ID.
Methods This property is required. []string
method list.
Name This property is required. string
service name.
Paths This property is required. []string
path list.
PreserveHost This property is required. bool
whether to keep the host when forwarding to the backend.
Protocols This property is required. []string
protocol list.
ServiceId This property is required. string
service ID.
ServiceName This property is required. string
service name.
StripPath This property is required. bool
whether to strip path when forwarding to the backend.
createdTime This property is required. String
created time.
destinationPorts This property is required. List<Double>
destination port for Layer 4 matching.
forceHttps This property is required. Boolean
whether to enable forced HTTPS, no longer use.
headers This property is required. List<GetTseGatewayRoutesResultRouteListHeader>
the headers of route.
hosts This property is required. List<String>
host list.
httpsRedirectStatusCode This property is required. Double
https redirection status code.
id This property is required. String
service ID.
methods This property is required. List<String>
method list.
name This property is required. String
service name.
paths This property is required. List<String>
path list.
preserveHost This property is required. Boolean
whether to keep the host when forwarding to the backend.
protocols This property is required. List<String>
protocol list.
serviceId This property is required. String
service ID.
serviceName This property is required. String
service name.
stripPath This property is required. Boolean
whether to strip path when forwarding to the backend.
createdTime This property is required. string
created time.
destinationPorts This property is required. number[]
destination port for Layer 4 matching.
forceHttps This property is required. boolean
whether to enable forced HTTPS, no longer use.
headers This property is required. GetTseGatewayRoutesResultRouteListHeader[]
the headers of route.
hosts This property is required. string[]
host list.
httpsRedirectStatusCode This property is required. number
https redirection status code.
id This property is required. string
service ID.
methods This property is required. string[]
method list.
name This property is required. string
service name.
paths This property is required. string[]
path list.
preserveHost This property is required. boolean
whether to keep the host when forwarding to the backend.
protocols This property is required. string[]
protocol list.
serviceId This property is required. string
service ID.
serviceName This property is required. string
service name.
stripPath This property is required. boolean
whether to strip path when forwarding to the backend.
created_time This property is required. str
created time.
destination_ports This property is required. Sequence[float]
destination port for Layer 4 matching.
force_https This property is required. bool
whether to enable forced HTTPS, no longer use.
headers This property is required. Sequence[GetTseGatewayRoutesResultRouteListHeader]
the headers of route.
hosts This property is required. Sequence[str]
host list.
https_redirect_status_code This property is required. float
https redirection status code.
id This property is required. str
service ID.
methods This property is required. Sequence[str]
method list.
name This property is required. str
service name.
paths This property is required. Sequence[str]
path list.
preserve_host This property is required. bool
whether to keep the host when forwarding to the backend.
protocols This property is required. Sequence[str]
protocol list.
service_id This property is required. str
service ID.
service_name This property is required. str
service name.
strip_path This property is required. bool
whether to strip path when forwarding to the backend.
createdTime This property is required. String
created time.
destinationPorts This property is required. List<Number>
destination port for Layer 4 matching.
forceHttps This property is required. Boolean
whether to enable forced HTTPS, no longer use.
headers This property is required. List<Property Map>
the headers of route.
hosts This property is required. List<String>
host list.
httpsRedirectStatusCode This property is required. Number
https redirection status code.
id This property is required. String
service ID.
methods This property is required. List<String>
method list.
name This property is required. String
service name.
paths This property is required. List<String>
path list.
preserveHost This property is required. Boolean
whether to keep the host when forwarding to the backend.
protocols This property is required. List<String>
protocol list.
serviceId This property is required. String
service ID.
serviceName This property is required. String
service name.
stripPath This property is required. Boolean
whether to strip path when forwarding to the backend.

GetTseGatewayRoutesResultRouteListHeader

Key This property is required. string
key of header.
Value This property is required. string
value of header.
Key This property is required. string
key of header.
Value This property is required. string
value of header.
key This property is required. String
key of header.
value This property is required. String
value of header.
key This property is required. string
key of header.
value This property is required. string
value of header.
key This property is required. str
key of header.
value This property is required. str
value of header.
key This property is required. String
key of header.
value This property is required. String
value of header.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.