1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoMultiPathGatewayLine
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Provides a resource to create a teo multi path gateway line for EdgeOne(TEO).

    Example Usage

    Custom line type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const custom = new tencentcloud.TeoMultiPathGatewayLine("custom", {
        zoneId: "zone-359h792djt7h",
        gatewayId: "mpgw-g3176ppeye",
        lineType: "custom",
        lineAddress: "1.2.3.4:81",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    custom = tencentcloud.TeoMultiPathGatewayLine("custom",
        zone_id="zone-359h792djt7h",
        gateway_id="mpgw-g3176ppeye",
        line_type="custom",
        line_address="1.2.3.4:81")
    
    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.NewTeoMultiPathGatewayLine(ctx, "custom", &tencentcloud.TeoMultiPathGatewayLineArgs{
    			ZoneId:      pulumi.String("zone-359h792djt7h"),
    			GatewayId:   pulumi.String("mpgw-g3176ppeye"),
    			LineType:    pulumi.String("custom"),
    			LineAddress: pulumi.String("1.2.3.4:81"),
    		})
    		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 custom = new Tencentcloud.TeoMultiPathGatewayLine("custom", new()
        {
            ZoneId = "zone-359h792djt7h",
            GatewayId = "mpgw-g3176ppeye",
            LineType = "custom",
            LineAddress = "1.2.3.4:81",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoMultiPathGatewayLine;
    import com.pulumi.tencentcloud.TeoMultiPathGatewayLineArgs;
    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) {
            var custom = new TeoMultiPathGatewayLine("custom", TeoMultiPathGatewayLineArgs.builder()
                .zoneId("zone-359h792djt7h")
                .gatewayId("mpgw-g3176ppeye")
                .lineType("custom")
                .lineAddress("1.2.3.4:81")
                .build());
    
        }
    }
    
    resources:
      custom:
        type: tencentcloud:TeoMultiPathGatewayLine
        properties:
          zoneId: zone-359h792djt7h
          gatewayId: mpgw-g3176ppeye
          lineType: custom
          lineAddress: 1.2.3.4:81
    
    Example coming soon!
    

    Proxy line type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const proxy = new tencentcloud.TeoMultiPathGatewayLine("proxy", {
        gatewayId: "mpgw-g3176ppeye",
        lineAddress: "tf-test.359h792djt7h.eo.dnse0.com:82",
        lineType: "proxy",
        proxyId: "sid-3phb7c7we1ns",
        zoneId: "zone-359h792djt7h",
        ruleId: "rule-3picr1x9wa0u",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    proxy = tencentcloud.TeoMultiPathGatewayLine("proxy",
        gateway_id="mpgw-g3176ppeye",
        line_address="tf-test.359h792djt7h.eo.dnse0.com:82",
        line_type="proxy",
        proxy_id="sid-3phb7c7we1ns",
        zone_id="zone-359h792djt7h",
        rule_id="rule-3picr1x9wa0u")
    
    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.NewTeoMultiPathGatewayLine(ctx, "proxy", &tencentcloud.TeoMultiPathGatewayLineArgs{
    			GatewayId:   pulumi.String("mpgw-g3176ppeye"),
    			LineAddress: pulumi.String("tf-test.359h792djt7h.eo.dnse0.com:82"),
    			LineType:    pulumi.String("proxy"),
    			ProxyId:     pulumi.String("sid-3phb7c7we1ns"),
    			ZoneId:      pulumi.String("zone-359h792djt7h"),
    			RuleId:      pulumi.String("rule-3picr1x9wa0u"),
    		})
    		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 proxy = new Tencentcloud.TeoMultiPathGatewayLine("proxy", new()
        {
            GatewayId = "mpgw-g3176ppeye",
            LineAddress = "tf-test.359h792djt7h.eo.dnse0.com:82",
            LineType = "proxy",
            ProxyId = "sid-3phb7c7we1ns",
            ZoneId = "zone-359h792djt7h",
            RuleId = "rule-3picr1x9wa0u",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoMultiPathGatewayLine;
    import com.pulumi.tencentcloud.TeoMultiPathGatewayLineArgs;
    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) {
            var proxy = new TeoMultiPathGatewayLine("proxy", TeoMultiPathGatewayLineArgs.builder()
                .gatewayId("mpgw-g3176ppeye")
                .lineAddress("tf-test.359h792djt7h.eo.dnse0.com:82")
                .lineType("proxy")
                .proxyId("sid-3phb7c7we1ns")
                .zoneId("zone-359h792djt7h")
                .ruleId("rule-3picr1x9wa0u")
                .build());
    
        }
    }
    
    resources:
      proxy:
        type: tencentcloud:TeoMultiPathGatewayLine
        properties:
          gatewayId: mpgw-g3176ppeye
          lineAddress: tf-test.359h792djt7h.eo.dnse0.com:82
          lineType: proxy
          proxyId: sid-3phb7c7we1ns
          zoneId: zone-359h792djt7h
          ruleId: rule-3picr1x9wa0u
    
    Example coming soon!
    

    Create TeoMultiPathGatewayLine Resource

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

    Constructor syntax

    new TeoMultiPathGatewayLine(name: string, args: TeoMultiPathGatewayLineArgs, opts?: CustomResourceOptions);
    @overload
    def TeoMultiPathGatewayLine(resource_name: str,
                                args: TeoMultiPathGatewayLineArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoMultiPathGatewayLine(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                gateway_id: Optional[str] = None,
                                line_address: Optional[str] = None,
                                line_type: Optional[str] = None,
                                zone_id: Optional[str] = None,
                                proxy_id: Optional[str] = None,
                                rule_id: Optional[str] = None,
                                teo_multi_path_gateway_line_id: Optional[str] = None)
    func NewTeoMultiPathGatewayLine(ctx *Context, name string, args TeoMultiPathGatewayLineArgs, opts ...ResourceOption) (*TeoMultiPathGatewayLine, error)
    public TeoMultiPathGatewayLine(string name, TeoMultiPathGatewayLineArgs args, CustomResourceOptions? opts = null)
    public TeoMultiPathGatewayLine(String name, TeoMultiPathGatewayLineArgs args)
    public TeoMultiPathGatewayLine(String name, TeoMultiPathGatewayLineArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoMultiPathGatewayLine
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teomultipathgatewayline" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeoMultiPathGatewayLineArgs
    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 TeoMultiPathGatewayLineArgs
    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 TeoMultiPathGatewayLineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoMultiPathGatewayLineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoMultiPathGatewayLineArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoMultiPathGatewayLine 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 TeoMultiPathGatewayLine resource accepts the following input properties:

    GatewayId string
    Multi-path gateway ID.
    LineAddress string
    Line address, format is host:port.
    LineType string
    Line type. Valid values: direct, proxy, custom.
    ZoneId string
    Site ID.
    ProxyId string
    L4 proxy instance ID, required when LineType is proxy.
    RuleId string
    Forwarding rule ID, required when LineType is proxy.
    TeoMultiPathGatewayLineId string
    ID of the resource.
    GatewayId string
    Multi-path gateway ID.
    LineAddress string
    Line address, format is host:port.
    LineType string
    Line type. Valid values: direct, proxy, custom.
    ZoneId string
    Site ID.
    ProxyId string
    L4 proxy instance ID, required when LineType is proxy.
    RuleId string
    Forwarding rule ID, required when LineType is proxy.
    TeoMultiPathGatewayLineId string
    ID of the resource.
    gateway_id string
    Multi-path gateway ID.
    line_address string
    Line address, format is host:port.
    line_type string
    Line type. Valid values: direct, proxy, custom.
    zone_id string
    Site ID.
    proxy_id string
    L4 proxy instance ID, required when LineType is proxy.
    rule_id string
    Forwarding rule ID, required when LineType is proxy.
    teo_multi_path_gateway_line_id string
    ID of the resource.
    gatewayId String
    Multi-path gateway ID.
    lineAddress String
    Line address, format is host:port.
    lineType String
    Line type. Valid values: direct, proxy, custom.
    zoneId String
    Site ID.
    proxyId String
    L4 proxy instance ID, required when LineType is proxy.
    ruleId String
    Forwarding rule ID, required when LineType is proxy.
    teoMultiPathGatewayLineId String
    ID of the resource.
    gatewayId string
    Multi-path gateway ID.
    lineAddress string
    Line address, format is host:port.
    lineType string
    Line type. Valid values: direct, proxy, custom.
    zoneId string
    Site ID.
    proxyId string
    L4 proxy instance ID, required when LineType is proxy.
    ruleId string
    Forwarding rule ID, required when LineType is proxy.
    teoMultiPathGatewayLineId string
    ID of the resource.
    gateway_id str
    Multi-path gateway ID.
    line_address str
    Line address, format is host:port.
    line_type str
    Line type. Valid values: direct, proxy, custom.
    zone_id str
    Site ID.
    proxy_id str
    L4 proxy instance ID, required when LineType is proxy.
    rule_id str
    Forwarding rule ID, required when LineType is proxy.
    teo_multi_path_gateway_line_id str
    ID of the resource.
    gatewayId String
    Multi-path gateway ID.
    lineAddress String
    Line address, format is host:port.
    lineType String
    Line type. Valid values: direct, proxy, custom.
    zoneId String
    Site ID.
    proxyId String
    L4 proxy instance ID, required when LineType is proxy.
    ruleId String
    Forwarding rule ID, required when LineType is proxy.
    teoMultiPathGatewayLineId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LineId string
    Line ID, returned after creation by cloud API.
    Id string
    The provider-assigned unique ID for this managed resource.
    LineId string
    Line ID, returned after creation by cloud API.
    id string
    The provider-assigned unique ID for this managed resource.
    line_id string
    Line ID, returned after creation by cloud API.
    id String
    The provider-assigned unique ID for this managed resource.
    lineId String
    Line ID, returned after creation by cloud API.
    id string
    The provider-assigned unique ID for this managed resource.
    lineId string
    Line ID, returned after creation by cloud API.
    id str
    The provider-assigned unique ID for this managed resource.
    line_id str
    Line ID, returned after creation by cloud API.
    id String
    The provider-assigned unique ID for this managed resource.
    lineId String
    Line ID, returned after creation by cloud API.

    Look up Existing TeoMultiPathGatewayLine Resource

    Get an existing TeoMultiPathGatewayLine 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?: TeoMultiPathGatewayLineState, opts?: CustomResourceOptions): TeoMultiPathGatewayLine
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            gateway_id: Optional[str] = None,
            line_address: Optional[str] = None,
            line_id: Optional[str] = None,
            line_type: Optional[str] = None,
            proxy_id: Optional[str] = None,
            rule_id: Optional[str] = None,
            teo_multi_path_gateway_line_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoMultiPathGatewayLine
    func GetTeoMultiPathGatewayLine(ctx *Context, name string, id IDInput, state *TeoMultiPathGatewayLineState, opts ...ResourceOption) (*TeoMultiPathGatewayLine, error)
    public static TeoMultiPathGatewayLine Get(string name, Input<string> id, TeoMultiPathGatewayLineState? state, CustomResourceOptions? opts = null)
    public static TeoMultiPathGatewayLine get(String name, Output<String> id, TeoMultiPathGatewayLineState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoMultiPathGatewayLine    get:      id: ${id}
    import {
      to = tencentcloud_teomultipathgatewayline.example
      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
    Multi-path gateway ID.
    LineAddress string
    Line address, format is host:port.
    LineId string
    Line ID, returned after creation by cloud API.
    LineType string
    Line type. Valid values: direct, proxy, custom.
    ProxyId string
    L4 proxy instance ID, required when LineType is proxy.
    RuleId string
    Forwarding rule ID, required when LineType is proxy.
    TeoMultiPathGatewayLineId string
    ID of the resource.
    ZoneId string
    Site ID.
    GatewayId string
    Multi-path gateway ID.
    LineAddress string
    Line address, format is host:port.
    LineId string
    Line ID, returned after creation by cloud API.
    LineType string
    Line type. Valid values: direct, proxy, custom.
    ProxyId string
    L4 proxy instance ID, required when LineType is proxy.
    RuleId string
    Forwarding rule ID, required when LineType is proxy.
    TeoMultiPathGatewayLineId string
    ID of the resource.
    ZoneId string
    Site ID.
    gateway_id string
    Multi-path gateway ID.
    line_address string
    Line address, format is host:port.
    line_id string
    Line ID, returned after creation by cloud API.
    line_type string
    Line type. Valid values: direct, proxy, custom.
    proxy_id string
    L4 proxy instance ID, required when LineType is proxy.
    rule_id string
    Forwarding rule ID, required when LineType is proxy.
    teo_multi_path_gateway_line_id string
    ID of the resource.
    zone_id string
    Site ID.
    gatewayId String
    Multi-path gateway ID.
    lineAddress String
    Line address, format is host:port.
    lineId String
    Line ID, returned after creation by cloud API.
    lineType String
    Line type. Valid values: direct, proxy, custom.
    proxyId String
    L4 proxy instance ID, required when LineType is proxy.
    ruleId String
    Forwarding rule ID, required when LineType is proxy.
    teoMultiPathGatewayLineId String
    ID of the resource.
    zoneId String
    Site ID.
    gatewayId string
    Multi-path gateway ID.
    lineAddress string
    Line address, format is host:port.
    lineId string
    Line ID, returned after creation by cloud API.
    lineType string
    Line type. Valid values: direct, proxy, custom.
    proxyId string
    L4 proxy instance ID, required when LineType is proxy.
    ruleId string
    Forwarding rule ID, required when LineType is proxy.
    teoMultiPathGatewayLineId string
    ID of the resource.
    zoneId string
    Site ID.
    gateway_id str
    Multi-path gateway ID.
    line_address str
    Line address, format is host:port.
    line_id str
    Line ID, returned after creation by cloud API.
    line_type str
    Line type. Valid values: direct, proxy, custom.
    proxy_id str
    L4 proxy instance ID, required when LineType is proxy.
    rule_id str
    Forwarding rule ID, required when LineType is proxy.
    teo_multi_path_gateway_line_id str
    ID of the resource.
    zone_id str
    Site ID.
    gatewayId String
    Multi-path gateway ID.
    lineAddress String
    Line address, format is host:port.
    lineId String
    Line ID, returned after creation by cloud API.
    lineType String
    Line type. Valid values: direct, proxy, custom.
    proxyId String
    L4 proxy instance ID, required when LineType is proxy.
    ruleId String
    Forwarding rule ID, required when LineType is proxy.
    teoMultiPathGatewayLineId String
    ID of the resource.
    zoneId String
    Site ID.

    Import

    teo multi path gateway line can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/teoMultiPathGatewayLine:TeoMultiPathGatewayLine example zone-279qso5a4cw9#gw-2qwk1t3g3jx9#line-1
    

    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.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.