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

tencentcloud.getTseGatewayRoutes

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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",
        routeName: "keep-routes",
        serviceName: "test",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      gatewayRoutes:
        fn::invoke:
          function: tencentcloud:getTseGatewayRoutes
          arguments:
            gatewayId: gateway-ddbb709b
            routeName: keep-routes
            serviceName: test
    

    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 dictionary

    The following arguments are supported:

    GatewayId string
    gateway ID.
    Id string
    service ID.
    ResultOutputFile string
    Used to save results.
    RouteName string
    route name.
    ServiceName string
    service name.
    GatewayId string
    gateway ID.
    Id string
    service ID.
    ResultOutputFile string
    Used to save results.
    RouteName string
    route name.
    ServiceName string
    service name.
    gatewayId String
    gateway ID.
    id String
    service ID.
    resultOutputFile String
    Used to save results.
    routeName String
    route name.
    serviceName String
    service name.
    gatewayId string
    gateway ID.
    id string
    service ID.
    resultOutputFile string
    Used to save results.
    routeName string
    route name.
    serviceName string
    service name.
    gateway_id 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 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 List<Property Map>
    route list.
    totalCount Number
    total count.

    GetTseGatewayRoutesResultRouteList

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

    GetTseGatewayRoutesResultRouteListHeader

    Key string
    key of header.
    Value string
    value of header.
    Key string
    key of header.
    Value string
    value of header.
    key String
    key of header.
    value String
    value of header.
    key string
    key of header.
    value string
    value of header.
    key str
    key of header.
    value str
    value of header.
    key String
    key of header.
    value String
    value of header.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack