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

tencentcloud.TseCngwService

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tse cngw_service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-4";
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        availabilityZone: availabilityZone,
        cidrBlock: "10.0.1.0/24",
    });
    const cngwGateway = new tencentcloud.TseCngwGateway("cngwGateway", {
        description: "terraform test1",
        enableCls: true,
        engineRegion: "ap-guangzhou",
        featureVersion: "STANDARD",
        gatewayVersion: "2.5.1",
        ingressClassName: "tse-nginx-ingress",
        internetMaxBandwidthOut: 0,
        tradeType: 0,
        type: "kong",
        nodeConfig: {
            number: 2,
            specification: "1c2g",
        },
        vpcConfig: {
            subnetId: subnet.subnetId,
            vpcId: vpc.vpcId,
        },
        tags: {
            createdBy: "terraform",
        },
    });
    const cngwService = new tencentcloud.TseCngwService("cngwService", {
        gatewayId: cngwGateway.tseCngwGatewayId,
        path: "/test",
        protocol: "http",
        retries: 5,
        timeout: 60000,
        upstreamType: "HostIP",
        upstreamInfo: {
            algorithm: "round-robin",
            autoScalingCvmPort: 0,
            host: "arunma.cn",
            port: 8012,
            slowStart: 0,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-4"
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        availability_zone=availability_zone,
        cidr_block="10.0.1.0/24")
    cngw_gateway = tencentcloud.TseCngwGateway("cngwGateway",
        description="terraform test1",
        enable_cls=True,
        engine_region="ap-guangzhou",
        feature_version="STANDARD",
        gateway_version="2.5.1",
        ingress_class_name="tse-nginx-ingress",
        internet_max_bandwidth_out=0,
        trade_type=0,
        type="kong",
        node_config={
            "number": 2,
            "specification": "1c2g",
        },
        vpc_config={
            "subnet_id": subnet.subnet_id,
            "vpc_id": vpc.vpc_id,
        },
        tags={
            "createdBy": "terraform",
        })
    cngw_service = tencentcloud.TseCngwService("cngwService",
        gateway_id=cngw_gateway.tse_cngw_gateway_id,
        path="/test",
        protocol="http",
        retries=5,
        timeout=60000,
        upstream_type="HostIP",
        upstream_info={
            "algorithm": "round-robin",
            "auto_scaling_cvm_port": 0,
            "host": "arunma.cn",
            "port": 8012,
            "slow_start": 0,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-guangzhou-4"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			AvailabilityZone: pulumi.String(availabilityZone),
    			CidrBlock:        pulumi.String("10.0.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		cngwGateway, err := tencentcloud.NewTseCngwGateway(ctx, "cngwGateway", &tencentcloud.TseCngwGatewayArgs{
    			Description:             pulumi.String("terraform test1"),
    			EnableCls:               pulumi.Bool(true),
    			EngineRegion:            pulumi.String("ap-guangzhou"),
    			FeatureVersion:          pulumi.String("STANDARD"),
    			GatewayVersion:          pulumi.String("2.5.1"),
    			IngressClassName:        pulumi.String("tse-nginx-ingress"),
    			InternetMaxBandwidthOut: pulumi.Float64(0),
    			TradeType:               pulumi.Float64(0),
    			Type:                    pulumi.String("kong"),
    			NodeConfig: &tencentcloud.TseCngwGatewayNodeConfigArgs{
    				Number:        pulumi.Float64(2),
    				Specification: pulumi.String("1c2g"),
    			},
    			VpcConfig: &tencentcloud.TseCngwGatewayVpcConfigArgs{
    				SubnetId: subnet.SubnetId,
    				VpcId:    vpc.VpcId,
    			},
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewTseCngwService(ctx, "cngwService", &tencentcloud.TseCngwServiceArgs{
    			GatewayId:    cngwGateway.TseCngwGatewayId,
    			Path:         pulumi.String("/test"),
    			Protocol:     pulumi.String("http"),
    			Retries:      pulumi.Float64(5),
    			Timeout:      pulumi.Float64(60000),
    			UpstreamType: pulumi.String("HostIP"),
    			UpstreamInfo: &tencentcloud.TseCngwServiceUpstreamInfoArgs{
    				Algorithm:          pulumi.String("round-robin"),
    				AutoScalingCvmPort: pulumi.Float64(0),
    				Host:               pulumi.String("arunma.cn"),
    				Port:               pulumi.Float64(8012),
    				SlowStart:          pulumi.Float64(0),
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-4";
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            AvailabilityZone = availabilityZone,
            CidrBlock = "10.0.1.0/24",
        });
    
        var cngwGateway = new Tencentcloud.TseCngwGateway("cngwGateway", new()
        {
            Description = "terraform test1",
            EnableCls = true,
            EngineRegion = "ap-guangzhou",
            FeatureVersion = "STANDARD",
            GatewayVersion = "2.5.1",
            IngressClassName = "tse-nginx-ingress",
            InternetMaxBandwidthOut = 0,
            TradeType = 0,
            Type = "kong",
            NodeConfig = new Tencentcloud.Inputs.TseCngwGatewayNodeConfigArgs
            {
                Number = 2,
                Specification = "1c2g",
            },
            VpcConfig = new Tencentcloud.Inputs.TseCngwGatewayVpcConfigArgs
            {
                SubnetId = subnet.SubnetId,
                VpcId = vpc.VpcId,
            },
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
        var cngwService = new Tencentcloud.TseCngwService("cngwService", new()
        {
            GatewayId = cngwGateway.TseCngwGatewayId,
            Path = "/test",
            Protocol = "http",
            Retries = 5,
            Timeout = 60000,
            UpstreamType = "HostIP",
            UpstreamInfo = new Tencentcloud.Inputs.TseCngwServiceUpstreamInfoArgs
            {
                Algorithm = "round-robin",
                AutoScalingCvmPort = 0,
                Host = "arunma.cn",
                Port = 8012,
                SlowStart = 0,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.TseCngwGateway;
    import com.pulumi.tencentcloud.TseCngwGatewayArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwGatewayNodeConfigArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwGatewayVpcConfigArgs;
    import com.pulumi.tencentcloud.TseCngwService;
    import com.pulumi.tencentcloud.TseCngwServiceArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwServiceUpstreamInfoArgs;
    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 config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-4");
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .availabilityZone(availabilityZone)
                .cidrBlock("10.0.1.0/24")
                .build());
    
            var cngwGateway = new TseCngwGateway("cngwGateway", TseCngwGatewayArgs.builder()
                .description("terraform test1")
                .enableCls(true)
                .engineRegion("ap-guangzhou")
                .featureVersion("STANDARD")
                .gatewayVersion("2.5.1")
                .ingressClassName("tse-nginx-ingress")
                .internetMaxBandwidthOut(0)
                .tradeType(0)
                .type("kong")
                .nodeConfig(TseCngwGatewayNodeConfigArgs.builder()
                    .number(2)
                    .specification("1c2g")
                    .build())
                .vpcConfig(TseCngwGatewayVpcConfigArgs.builder()
                    .subnetId(subnet.subnetId())
                    .vpcId(vpc.vpcId())
                    .build())
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
            var cngwService = new TseCngwService("cngwService", TseCngwServiceArgs.builder()
                .gatewayId(cngwGateway.tseCngwGatewayId())
                .path("/test")
                .protocol("http")
                .retries(5)
                .timeout(60000)
                .upstreamType("HostIP")
                .upstreamInfo(TseCngwServiceUpstreamInfoArgs.builder()
                    .algorithm("round-robin")
                    .autoScalingCvmPort(0)
                    .host("arunma.cn")
                    .port(8012)
                    .slowStart(0)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-4
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          availabilityZone: ${availabilityZone}
          cidrBlock: 10.0.1.0/24
      cngwGateway:
        type: tencentcloud:TseCngwGateway
        properties:
          description: terraform test1
          enableCls: true
          engineRegion: ap-guangzhou
          featureVersion: STANDARD
          gatewayVersion: 2.5.1
          ingressClassName: tse-nginx-ingress
          internetMaxBandwidthOut: 0
          tradeType: 0
          type: kong
          nodeConfig:
            number: 2
            specification: 1c2g
          vpcConfig:
            subnetId: ${subnet.subnetId}
            vpcId: ${vpc.vpcId}
          tags:
            createdBy: terraform
      cngwService:
        type: tencentcloud:TseCngwService
        properties:
          gatewayId: ${cngwGateway.tseCngwGatewayId}
          path: /test
          protocol: http
          retries: 5
          timeout: 60000
          upstreamType: HostIP
          upstreamInfo:
            algorithm: round-robin
            autoScalingCvmPort: 0
            host: arunma.cn
            port: 8012
            slowStart: 0
    

    Create TseCngwService Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TseCngwService(name: string, args: TseCngwServiceArgs, opts?: CustomResourceOptions);
    @overload
    def TseCngwService(resource_name: str,
                       args: TseCngwServiceArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def TseCngwService(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       gateway_id: Optional[str] = None,
                       path: Optional[str] = None,
                       protocol: Optional[str] = None,
                       retries: Optional[float] = None,
                       timeout: Optional[float] = None,
                       upstream_info: Optional[TseCngwServiceUpstreamInfoArgs] = None,
                       upstream_type: Optional[str] = None,
                       name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       tse_cngw_service_id: Optional[str] = None)
    func NewTseCngwService(ctx *Context, name string, args TseCngwServiceArgs, opts ...ResourceOption) (*TseCngwService, error)
    public TseCngwService(string name, TseCngwServiceArgs args, CustomResourceOptions? opts = null)
    public TseCngwService(String name, TseCngwServiceArgs args)
    public TseCngwService(String name, TseCngwServiceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TseCngwService
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TseCngwServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TseCngwServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TseCngwServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TseCngwServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TseCngwServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TseCngwService Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TseCngwService resource accepts the following input properties:

    GatewayId string
    gateway ID.
    Path string
    path.
    Protocol string
    protocol. Reference value:https, http, tcp, udp.
    Retries double
    retry times.
    Timeout double
    time out, unit:ms.
    UpstreamInfo TseCngwServiceUpstreamInfo
    service config information.
    UpstreamType string
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    Name string
    service name.
    Tags Dictionary<string, string>
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    TseCngwServiceId string
    ID of the resource.
    GatewayId string
    gateway ID.
    Path string
    path.
    Protocol string
    protocol. Reference value:https, http, tcp, udp.
    Retries float64
    retry times.
    Timeout float64
    time out, unit:ms.
    UpstreamInfo TseCngwServiceUpstreamInfoArgs
    service config information.
    UpstreamType string
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    Name string
    service name.
    Tags map[string]string
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    TseCngwServiceId string
    ID of the resource.
    gatewayId String
    gateway ID.
    path String
    path.
    protocol String
    protocol. Reference value:https, http, tcp, udp.
    retries Double
    retry times.
    timeout Double
    time out, unit:ms.
    upstreamInfo TseCngwServiceUpstreamInfo
    service config information.
    upstreamType String
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    name String
    service name.
    tags Map<String,String>
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    tseCngwServiceId String
    ID of the resource.
    gatewayId string
    gateway ID.
    path string
    path.
    protocol string
    protocol. Reference value:https, http, tcp, udp.
    retries number
    retry times.
    timeout number
    time out, unit:ms.
    upstreamInfo TseCngwServiceUpstreamInfo
    service config information.
    upstreamType string
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    name string
    service name.
    tags {[key: string]: string}
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    tseCngwServiceId string
    ID of the resource.
    gateway_id str
    gateway ID.
    path str
    path.
    protocol str
    protocol. Reference value:https, http, tcp, udp.
    retries float
    retry times.
    timeout float
    time out, unit:ms.
    upstream_info TseCngwServiceUpstreamInfoArgs
    service config information.
    upstream_type str
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    name str
    service name.
    tags Mapping[str, str]
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    tse_cngw_service_id str
    ID of the resource.
    gatewayId String
    gateway ID.
    path String
    path.
    protocol String
    protocol. Reference value:https, http, tcp, udp.
    retries Number
    retry times.
    timeout Number
    time out, unit:ms.
    upstreamInfo Property Map
    service config information.
    upstreamType String
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    name String
    service name.
    tags Map<String>
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    tseCngwServiceId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TseCngwService resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceId string
    service id.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceId string
    service id.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceId String
    service id.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceId string
    service id.
    id str
    The provider-assigned unique ID for this managed resource.
    service_id str
    service id.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceId String
    service id.

    Look up Existing TseCngwService Resource

    Get an existing TseCngwService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TseCngwServiceState, opts?: CustomResourceOptions): TseCngwService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            gateway_id: Optional[str] = None,
            name: Optional[str] = None,
            path: Optional[str] = None,
            protocol: Optional[str] = None,
            retries: Optional[float] = None,
            service_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeout: Optional[float] = None,
            tse_cngw_service_id: Optional[str] = None,
            upstream_info: Optional[TseCngwServiceUpstreamInfoArgs] = None,
            upstream_type: Optional[str] = None) -> TseCngwService
    func GetTseCngwService(ctx *Context, name string, id IDInput, state *TseCngwServiceState, opts ...ResourceOption) (*TseCngwService, error)
    public static TseCngwService Get(string name, Input<string> id, TseCngwServiceState? state, CustomResourceOptions? opts = null)
    public static TseCngwService get(String name, Output<String> id, TseCngwServiceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TseCngwService    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    GatewayId string
    gateway ID.
    Name string
    service name.
    Path string
    path.
    Protocol string
    protocol. Reference value:https, http, tcp, udp.
    Retries double
    retry times.
    ServiceId string
    service id.
    Tags Dictionary<string, string>
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    Timeout double
    time out, unit:ms.
    TseCngwServiceId string
    ID of the resource.
    UpstreamInfo TseCngwServiceUpstreamInfo
    service config information.
    UpstreamType string
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    GatewayId string
    gateway ID.
    Name string
    service name.
    Path string
    path.
    Protocol string
    protocol. Reference value:https, http, tcp, udp.
    Retries float64
    retry times.
    ServiceId string
    service id.
    Tags map[string]string
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    Timeout float64
    time out, unit:ms.
    TseCngwServiceId string
    ID of the resource.
    UpstreamInfo TseCngwServiceUpstreamInfoArgs
    service config information.
    UpstreamType string
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    gatewayId String
    gateway ID.
    name String
    service name.
    path String
    path.
    protocol String
    protocol. Reference value:https, http, tcp, udp.
    retries Double
    retry times.
    serviceId String
    service id.
    tags Map<String,String>
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    timeout Double
    time out, unit:ms.
    tseCngwServiceId String
    ID of the resource.
    upstreamInfo TseCngwServiceUpstreamInfo
    service config information.
    upstreamType String
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    gatewayId string
    gateway ID.
    name string
    service name.
    path string
    path.
    protocol string
    protocol. Reference value:https, http, tcp, udp.
    retries number
    retry times.
    serviceId string
    service id.
    tags {[key: string]: string}
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    timeout number
    time out, unit:ms.
    tseCngwServiceId string
    ID of the resource.
    upstreamInfo TseCngwServiceUpstreamInfo
    service config information.
    upstreamType string
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    gateway_id str
    gateway ID.
    name str
    service name.
    path str
    path.
    protocol str
    protocol. Reference value:https, http, tcp, udp.
    retries float
    retry times.
    service_id str
    service id.
    tags Mapping[str, str]
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    timeout float
    time out, unit:ms.
    tse_cngw_service_id str
    ID of the resource.
    upstream_info TseCngwServiceUpstreamInfoArgs
    service config information.
    upstream_type str
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.
    gatewayId String
    gateway ID.
    name String
    service name.
    path String
    path.
    protocol String
    protocol. Reference value:https, http, tcp, udp.
    retries Number
    retry times.
    serviceId String
    service id.
    tags Map<String>
    Deprecate ineffective tags Tag description list.

    Deprecated: Deprecated

    timeout Number
    time out, unit:ms.
    tseCngwServiceId String
    ID of the resource.
    upstreamInfo Property Map
    service config information.
    upstreamType String
    service type. Reference value:Kubernetes, Registry, IPList, HostIP, Scf.

    Supporting Types

    TseCngwServiceUpstreamInfo, TseCngwServiceUpstreamInfoArgs

    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
    an IP address or domain name.
    Namespace string
    namespace.
    Port double
    backend service port.valid values: 1 to 65535.
    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 is 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<TseCngwServiceUpstreamInfoTarget>
    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
    an IP address or domain name.
    Namespace string
    namespace.
    Port float64
    backend service port.valid values: 1 to 65535.
    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 is 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 []TseCngwServiceUpstreamInfoTarget
    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
    an IP address or domain name.
    namespace String
    namespace.
    port Double
    backend service port.valid values: 1 to 65535.
    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 is 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<TseCngwServiceUpstreamInfoTarget>
    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
    an IP address or domain name.
    namespace string
    namespace.
    port number
    backend service port.valid values: 1 to 65535.
    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 is 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 TseCngwServiceUpstreamInfoTarget[]
    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
    an IP address or domain name.
    namespace str
    namespace.
    port float
    backend service port.valid values: 1 to 65535.
    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 is 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[TseCngwServiceUpstreamInfoTarget]
    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
    an IP address or domain name.
    namespace String
    namespace.
    port Number
    backend service port.valid values: 1 to 65535.
    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 is 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.

    TseCngwServiceUpstreamInfoTarget, TseCngwServiceUpstreamInfoTargetArgs

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

    Import

    tse cngw_service can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tseCngwService:TseCngwService cngw_service gatewayId#name
    

    To learn more about importing existing cloud resources, see Importing resources.

    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