published on Monday, May 11, 2026 by tencentcloudstack
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:
- 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 stringPath Gateway Line Id - 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 stringPath Gateway Line Id - 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_ stringpath_ gateway_ line_ id - 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 StringPath Gateway Line Id - 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 stringPath Gateway Line Id - 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_ strpath_ gateway_ line_ id - 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 StringPath Gateway Line Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoMultiPathGatewayLine resource produces the following output properties:
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) -> TeoMultiPathGatewayLinefunc 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.
- 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 stringPath Gateway Line Id - ID of the resource.
- Zone
Id 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 stringPath Gateway Line Id - ID of the resource.
- Zone
Id 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_ stringpath_ gateway_ line_ id - ID of the resource.
- zone_
id 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 StringPath Gateway Line Id - ID of the resource.
- zone
Id 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 stringPath Gateway Line Id - ID of the resource.
- zone
Id 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_ strpath_ gateway_ line_ id - ID of the resource.
- zone_
id str - 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 StringPath Gateway Line Id - ID of the resource.
- zone
Id 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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
