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

tencentcloud.getTseGatewayServices

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_services

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const gatewayServices = tencentcloud.getTseGatewayServices({
        filters: [{
            key: "name",
            value: "test",
        }],
        gatewayId: "gateway-ddbb709b",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    gateway_services = tencentcloud.get_tse_gateway_services(filters=[{
            "key": "name",
            "value": "test",
        }],
        gateway_id="gateway-ddbb709b")
    
    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.LookupTseGatewayServices(ctx, &tencentcloud.LookupTseGatewayServicesArgs{
    			Filters: []tencentcloud.GetTseGatewayServicesFilter{
    				{
    					Key:   pulumi.StringRef("name"),
    					Value: pulumi.StringRef("test"),
    				},
    			},
    			GatewayId: "gateway-ddbb709b",
    		}, 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 gatewayServices = Tencentcloud.GetTseGatewayServices.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetTseGatewayServicesFilterInputArgs
                {
                    Key = "name",
                    Value = "test",
                },
            },
            GatewayId = "gateway-ddbb709b",
        });
    
    });
    
    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.GetTseGatewayServicesArgs;
    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 gatewayServices = TencentcloudFunctions.getTseGatewayServices(GetTseGatewayServicesArgs.builder()
                .filters(GetTseGatewayServicesFilterArgs.builder()
                    .key("name")
                    .value("test")
                    .build())
                .gatewayId("gateway-ddbb709b")
                .build());
    
        }
    }
    
    variables:
      gatewayServices:
        fn::invoke:
          function: tencentcloud:getTseGatewayServices
          arguments:
            filters:
              - key: name
                value: test
            gatewayId: gateway-ddbb709b
    

    Using getTseGatewayServices

    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 getTseGatewayServices(args: GetTseGatewayServicesArgs, opts?: InvokeOptions): Promise<GetTseGatewayServicesResult>
    function getTseGatewayServicesOutput(args: GetTseGatewayServicesOutputArgs, opts?: InvokeOptions): Output<GetTseGatewayServicesResult>
    def get_tse_gateway_services(filters: Optional[Sequence[GetTseGatewayServicesFilter]] = None,
                                 gateway_id: Optional[str] = None,
                                 id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetTseGatewayServicesResult
    def get_tse_gateway_services_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTseGatewayServicesFilterArgs]]]] = None,
                                 gateway_id: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetTseGatewayServicesResult]
    func LookupTseGatewayServices(ctx *Context, args *LookupTseGatewayServicesArgs, opts ...InvokeOption) (*LookupTseGatewayServicesResult, error)
    func LookupTseGatewayServicesOutput(ctx *Context, args *LookupTseGatewayServicesOutputArgs, opts ...InvokeOption) LookupTseGatewayServicesResultOutput

    > Note: This function is named LookupTseGatewayServices in the Go SDK.

    public static class GetTseGatewayServices 
    {
        public static Task<GetTseGatewayServicesResult> InvokeAsync(GetTseGatewayServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetTseGatewayServicesResult> Invoke(GetTseGatewayServicesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTseGatewayServicesResult> getTseGatewayServices(GetTseGatewayServicesArgs args, InvokeOptions options)
    public static Output<GetTseGatewayServicesResult> getTseGatewayServices(GetTseGatewayServicesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTseGatewayServices:getTseGatewayServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GatewayId string
    gateway ID.
    Filters List<GetTseGatewayServicesFilter>
    filter conditions, valid value:name,upstreamType.
    Id string
    service ID.
    ResultOutputFile string
    Used to save results.
    GatewayId string
    gateway ID.
    Filters []GetTseGatewayServicesFilter
    filter conditions, valid value:name,upstreamType.
    Id string
    service ID.
    ResultOutputFile string
    Used to save results.
    gatewayId String
    gateway ID.
    filters List<GetTseGatewayServicesFilter>
    filter conditions, valid value:name,upstreamType.
    id String
    service ID.
    resultOutputFile String
    Used to save results.
    gatewayId string
    gateway ID.
    filters GetTseGatewayServicesFilter[]
    filter conditions, valid value:name,upstreamType.
    id string
    service ID.
    resultOutputFile string
    Used to save results.
    gateway_id str
    gateway ID.
    filters Sequence[GetTseGatewayServicesFilter]
    filter conditions, valid value:name,upstreamType.
    id str
    service ID.
    result_output_file str
    Used to save results.
    gatewayId String
    gateway ID.
    filters List<Property Map>
    filter conditions, valid value:name,upstreamType.
    id String
    service ID.
    resultOutputFile String
    Used to save results.

    getTseGatewayServices Result

    The following output properties are available:

    Supporting Types

    GetTseGatewayServicesFilter

    Key string
    filter name.
    Value string
    filter value.
    Key string
    filter name.
    Value string
    filter value.
    key String
    filter name.
    value String
    filter value.
    key string
    filter name.
    value string
    filter value.
    key str
    filter name.
    value str
    filter value.
    key String
    filter name.
    value String
    filter value.

    GetTseGatewayServicesResult

    serviceLists List<Property Map>
    service list.
    totalCount Number
    total count.

    GetTseGatewayServicesResultServiceList

    CreatedTime string
    created time.
    Editable bool
    editable status.
    Id string
    service ID.
    Name string
    service name.
    Tags List<string>
    tag list.
    UpstreamInfos List<GetTseGatewayServicesResultServiceListUpstreamInfo>
    upstream information.
    UpstreamType string
    service type.
    CreatedTime string
    created time.
    Editable bool
    editable status.
    Id string
    service ID.
    Name string
    service name.
    Tags []string
    tag list.
    UpstreamInfos []GetTseGatewayServicesResultServiceListUpstreamInfo
    upstream information.
    UpstreamType string
    service type.
    createdTime String
    created time.
    editable Boolean
    editable status.
    id String
    service ID.
    name String
    service name.
    tags List<String>
    tag list.
    upstreamInfos List<GetTseGatewayServicesResultServiceListUpstreamInfo>
    upstream information.
    upstreamType String
    service type.
    createdTime string
    created time.
    editable boolean
    editable status.
    id string
    service ID.
    name string
    service name.
    tags string[]
    tag list.
    upstreamInfos GetTseGatewayServicesResultServiceListUpstreamInfo[]
    upstream information.
    upstreamType string
    service type.
    created_time str
    created time.
    editable bool
    editable status.
    id str
    service ID.
    name str
    service name.
    tags Sequence[str]
    tag list.
    upstream_infos Sequence[GetTseGatewayServicesResultServiceListUpstreamInfo]
    upstream information.
    upstream_type str
    service type.
    createdTime String
    created time.
    editable Boolean
    editable status.
    id String
    service ID.
    name String
    service name.
    tags List<String>
    tag list.
    upstreamInfos List<Property Map>
    upstream information.
    upstreamType String
    service type.

    GetTseGatewayServicesResultServiceListUpstreamInfo

    Algorithm string
    load balance algorithm,default:round-robin,least-connections and consisten_hashing also support.
    AutoScalingCvmPort double
    auto scaling group port of cvm.
    AutoScalingGroupId string
    auto scaling group ID of cvm.
    AutoScalingHookStatus string
    hook status in auto scaling group of cvm.
    AutoScalingTatCmdStatus string
    tat cmd status in auto scaling group of cvm.
    Host string
    Host.
    Namespace string
    namespace.
    Port double
    port.
    RealSourceType string
    exact source service type.
    ScfLambdaName string
    scf lambda name.
    ScfLambdaQualifier string
    scf lambda version.
    ScfNamespace string
    scf lambda namespace.
    ScfType string
    scf lambda type.
    ServiceName string
    the name of the service in registry or kubernetes.
    SlowStart double
    slow start time, unit:second,when it's enabled, weight of the node is increased from 1 to the target value gradually.
    SourceId string
    service source ID.
    SourceName string
    the name of source service.
    SourceType string
    source service type.
    Targets List<GetTseGatewayServicesResultServiceListUpstreamInfoTarget>
    provided when service type is IPList.
    Algorithm string
    load balance algorithm,default:round-robin,least-connections and consisten_hashing also support.
    AutoScalingCvmPort float64
    auto scaling group port of cvm.
    AutoScalingGroupId string
    auto scaling group ID of cvm.
    AutoScalingHookStatus string
    hook status in auto scaling group of cvm.
    AutoScalingTatCmdStatus string
    tat cmd status in auto scaling group of cvm.
    Host string
    Host.
    Namespace string
    namespace.
    Port float64
    port.
    RealSourceType string
    exact source service type.
    ScfLambdaName string
    scf lambda name.
    ScfLambdaQualifier string
    scf lambda version.
    ScfNamespace string
    scf lambda namespace.
    ScfType string
    scf lambda type.
    ServiceName string
    the name of the service in registry or kubernetes.
    SlowStart float64
    slow start time, unit:second,when it's enabled, weight of the node is increased from 1 to the target value gradually.
    SourceId string
    service source ID.
    SourceName string
    the name of source service.
    SourceType string
    source service type.
    Targets []GetTseGatewayServicesResultServiceListUpstreamInfoTarget
    provided when service type is IPList.
    algorithm String
    load balance algorithm,default:round-robin,least-connections and consisten_hashing also support.
    autoScalingCvmPort Double
    auto scaling group port of cvm.
    autoScalingGroupId String
    auto scaling group ID of cvm.
    autoScalingHookStatus String
    hook status in auto scaling group of cvm.
    autoScalingTatCmdStatus String
    tat cmd status in auto scaling group of cvm.
    host String
    Host.
    namespace String
    namespace.
    port Double
    port.
    realSourceType String
    exact source service type.
    scfLambdaName String
    scf lambda name.
    scfLambdaQualifier String
    scf lambda version.
    scfNamespace String
    scf lambda namespace.
    scfType String
    scf lambda type.
    serviceName String
    the name of the service in registry or kubernetes.
    slowStart Double
    slow start time, unit:second,when it's enabled, weight of the node is increased from 1 to the target value gradually.
    sourceId String
    service source ID.
    sourceName String
    the name of source service.
    sourceType String
    source service type.
    targets List<GetTseGatewayServicesResultServiceListUpstreamInfoTarget>
    provided when service type is IPList.
    algorithm string
    load balance algorithm,default:round-robin,least-connections and consisten_hashing also support.
    autoScalingCvmPort number
    auto scaling group port of cvm.
    autoScalingGroupId string
    auto scaling group ID of cvm.
    autoScalingHookStatus string
    hook status in auto scaling group of cvm.
    autoScalingTatCmdStatus string
    tat cmd status in auto scaling group of cvm.
    host string
    Host.
    namespace string
    namespace.
    port number
    port.
    realSourceType string
    exact source service type.
    scfLambdaName string
    scf lambda name.
    scfLambdaQualifier string
    scf lambda version.
    scfNamespace string
    scf lambda namespace.
    scfType string
    scf lambda type.
    serviceName string
    the name of the service in registry or kubernetes.
    slowStart number
    slow start time, unit:second,when it's enabled, weight of the node is increased from 1 to the target value gradually.
    sourceId string
    service source ID.
    sourceName string
    the name of source service.
    sourceType string
    source service type.
    targets GetTseGatewayServicesResultServiceListUpstreamInfoTarget[]
    provided when service type is IPList.
    algorithm str
    load balance algorithm,default:round-robin,least-connections and consisten_hashing also support.
    auto_scaling_cvm_port float
    auto scaling group port of cvm.
    auto_scaling_group_id str
    auto scaling group ID of cvm.
    auto_scaling_hook_status str
    hook status in auto scaling group of cvm.
    auto_scaling_tat_cmd_status str
    tat cmd status in auto scaling group of cvm.
    host str
    Host.
    namespace str
    namespace.
    port float
    port.
    real_source_type str
    exact source service type.
    scf_lambda_name str
    scf lambda name.
    scf_lambda_qualifier str
    scf lambda version.
    scf_namespace str
    scf lambda namespace.
    scf_type str
    scf lambda type.
    service_name str
    the name of the service in registry or kubernetes.
    slow_start float
    slow start time, unit:second,when it's enabled, weight of the node is increased from 1 to the target value gradually.
    source_id str
    service source ID.
    source_name str
    the name of source service.
    source_type str
    source service type.
    targets Sequence[GetTseGatewayServicesResultServiceListUpstreamInfoTarget]
    provided when service type is IPList.
    algorithm String
    load balance algorithm,default:round-robin,least-connections and consisten_hashing also support.
    autoScalingCvmPort Number
    auto scaling group port of cvm.
    autoScalingGroupId String
    auto scaling group ID of cvm.
    autoScalingHookStatus String
    hook status in auto scaling group of cvm.
    autoScalingTatCmdStatus String
    tat cmd status in auto scaling group of cvm.
    host String
    Host.
    namespace String
    namespace.
    port Number
    port.
    realSourceType String
    exact source service type.
    scfLambdaName String
    scf lambda name.
    scfLambdaQualifier String
    scf lambda version.
    scfNamespace String
    scf lambda namespace.
    scfType String
    scf lambda type.
    serviceName String
    the name of the service in registry or kubernetes.
    slowStart Number
    slow start time, unit:second,when it's enabled, weight of the node is increased from 1 to the target value gradually.
    sourceId String
    service source ID.
    sourceName String
    the name of source service.
    sourceType String
    source service type.
    targets List<Property Map>
    provided when service type is IPList.

    GetTseGatewayServicesResultServiceListUpstreamInfoTarget

    CreatedTime string
    created time.
    Health string
    health.
    Host string
    Host.
    Port double
    port.
    Source string
    source of target.
    Weight double
    weight.
    CreatedTime string
    created time.
    Health string
    health.
    Host string
    Host.
    Port float64
    port.
    Source string
    source of target.
    Weight float64
    weight.
    createdTime String
    created time.
    health String
    health.
    host String
    Host.
    port Double
    port.
    source String
    source of target.
    weight Double
    weight.
    createdTime string
    created time.
    health string
    health.
    host string
    Host.
    port number
    port.
    source string
    source of target.
    weight number
    weight.
    created_time str
    created time.
    health str
    health.
    host str
    Host.
    port float
    port.
    source str
    source of target.
    weight float
    weight.
    createdTime String
    created time.
    health String
    health.
    host String
    Host.
    port Number
    port.
    source String
    source of target.
    weight Number
    weight.

    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