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

tencentcloud.TseCngwNetwork

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_network

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cngwNetwork = new tencentcloud.TseCngwNetwork("cngwNetwork", {
        description: "des-test1",
        gatewayId: "gateway-cf8c99c3",
        groupId: "group-a160d123",
        internetAddressVersion: "IPV4",
        internetMaxBandwidthOut: 1,
        internetPayMode: "BANDWIDTH",
        masterZoneId: "ap-guangzhou-3",
        multiZoneFlag: true,
        slaType: "clb.c2.medium",
        slaveZoneId: "ap-guangzhou-4",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cngw_network = tencentcloud.TseCngwNetwork("cngwNetwork",
        description="des-test1",
        gateway_id="gateway-cf8c99c3",
        group_id="group-a160d123",
        internet_address_version="IPV4",
        internet_max_bandwidth_out=1,
        internet_pay_mode="BANDWIDTH",
        master_zone_id="ap-guangzhou-3",
        multi_zone_flag=True,
        sla_type="clb.c2.medium",
        slave_zone_id="ap-guangzhou-4")
    
    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.NewTseCngwNetwork(ctx, "cngwNetwork", &tencentcloud.TseCngwNetworkArgs{
    			Description:             pulumi.String("des-test1"),
    			GatewayId:               pulumi.String("gateway-cf8c99c3"),
    			GroupId:                 pulumi.String("group-a160d123"),
    			InternetAddressVersion:  pulumi.String("IPV4"),
    			InternetMaxBandwidthOut: pulumi.Float64(1),
    			InternetPayMode:         pulumi.String("BANDWIDTH"),
    			MasterZoneId:            pulumi.String("ap-guangzhou-3"),
    			MultiZoneFlag:           pulumi.Bool(true),
    			SlaType:                 pulumi.String("clb.c2.medium"),
    			SlaveZoneId:             pulumi.String("ap-guangzhou-4"),
    		})
    		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 cngwNetwork = new Tencentcloud.TseCngwNetwork("cngwNetwork", new()
        {
            Description = "des-test1",
            GatewayId = "gateway-cf8c99c3",
            GroupId = "group-a160d123",
            InternetAddressVersion = "IPV4",
            InternetMaxBandwidthOut = 1,
            InternetPayMode = "BANDWIDTH",
            MasterZoneId = "ap-guangzhou-3",
            MultiZoneFlag = true,
            SlaType = "clb.c2.medium",
            SlaveZoneId = "ap-guangzhou-4",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TseCngwNetwork;
    import com.pulumi.tencentcloud.TseCngwNetworkArgs;
    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 cngwNetwork = new TseCngwNetwork("cngwNetwork", TseCngwNetworkArgs.builder()
                .description("des-test1")
                .gatewayId("gateway-cf8c99c3")
                .groupId("group-a160d123")
                .internetAddressVersion("IPV4")
                .internetMaxBandwidthOut(1)
                .internetPayMode("BANDWIDTH")
                .masterZoneId("ap-guangzhou-3")
                .multiZoneFlag(true)
                .slaType("clb.c2.medium")
                .slaveZoneId("ap-guangzhou-4")
                .build());
    
        }
    }
    
    resources:
      cngwNetwork:
        type: tencentcloud:TseCngwNetwork
        properties:
          description: des-test1
          gatewayId: gateway-cf8c99c3
          groupId: group-a160d123
          internetAddressVersion: IPV4
          internetMaxBandwidthOut: 1
          internetPayMode: BANDWIDTH
          masterZoneId: ap-guangzhou-3
          multiZoneFlag: true
          slaType: clb.c2.medium
          slaveZoneId: ap-guangzhou-4
    

    Create TseCngwNetwork Resource

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

    Constructor syntax

    new TseCngwNetwork(name: string, args: TseCngwNetworkArgs, opts?: CustomResourceOptions);
    @overload
    def TseCngwNetwork(resource_name: str,
                       args: TseCngwNetworkArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def TseCngwNetwork(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       gateway_id: Optional[str] = None,
                       group_id: Optional[str] = None,
                       description: Optional[str] = None,
                       internet_address_version: Optional[str] = None,
                       internet_max_bandwidth_out: Optional[float] = None,
                       internet_pay_mode: Optional[str] = None,
                       master_zone_id: Optional[str] = None,
                       multi_zone_flag: Optional[bool] = None,
                       sla_type: Optional[str] = None,
                       slave_zone_id: Optional[str] = None,
                       tse_cngw_network_id: Optional[str] = None)
    func NewTseCngwNetwork(ctx *Context, name string, args TseCngwNetworkArgs, opts ...ResourceOption) (*TseCngwNetwork, error)
    public TseCngwNetwork(string name, TseCngwNetworkArgs args, CustomResourceOptions? opts = null)
    public TseCngwNetwork(String name, TseCngwNetworkArgs args)
    public TseCngwNetwork(String name, TseCngwNetworkArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TseCngwNetwork
    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 TseCngwNetworkArgs
    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 TseCngwNetworkArgs
    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 TseCngwNetworkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TseCngwNetworkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TseCngwNetworkArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    GatewayId string
    gateway ID.
    GroupId string
    gateway group ID.
    Description string
    description of clb.
    InternetAddressVersion string
    internet type. Reference value:IPV4 (default value), IPV6.
    InternetMaxBandwidthOut double
    public network bandwidth.
    InternetPayMode string
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    MasterZoneId string
    primary availability zone.
    MultiZoneFlag bool
    Whether load balancing has multiple availability zones.
    SlaType string
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    SlaveZoneId string
    alternate availability zone.
    TseCngwNetworkId string
    ID of the resource.
    GatewayId string
    gateway ID.
    GroupId string
    gateway group ID.
    Description string
    description of clb.
    InternetAddressVersion string
    internet type. Reference value:IPV4 (default value), IPV6.
    InternetMaxBandwidthOut float64
    public network bandwidth.
    InternetPayMode string
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    MasterZoneId string
    primary availability zone.
    MultiZoneFlag bool
    Whether load balancing has multiple availability zones.
    SlaType string
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    SlaveZoneId string
    alternate availability zone.
    TseCngwNetworkId string
    ID of the resource.
    gatewayId String
    gateway ID.
    groupId String
    gateway group ID.
    description String
    description of clb.
    internetAddressVersion String
    internet type. Reference value:IPV4 (default value), IPV6.
    internetMaxBandwidthOut Double
    public network bandwidth.
    internetPayMode String
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    masterZoneId String
    primary availability zone.
    multiZoneFlag Boolean
    Whether load balancing has multiple availability zones.
    slaType String
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slaveZoneId String
    alternate availability zone.
    tseCngwNetworkId String
    ID of the resource.
    gatewayId string
    gateway ID.
    groupId string
    gateway group ID.
    description string
    description of clb.
    internetAddressVersion string
    internet type. Reference value:IPV4 (default value), IPV6.
    internetMaxBandwidthOut number
    public network bandwidth.
    internetPayMode string
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    masterZoneId string
    primary availability zone.
    multiZoneFlag boolean
    Whether load balancing has multiple availability zones.
    slaType string
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slaveZoneId string
    alternate availability zone.
    tseCngwNetworkId string
    ID of the resource.
    gateway_id str
    gateway ID.
    group_id str
    gateway group ID.
    description str
    description of clb.
    internet_address_version str
    internet type. Reference value:IPV4 (default value), IPV6.
    internet_max_bandwidth_out float
    public network bandwidth.
    internet_pay_mode str
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    master_zone_id str
    primary availability zone.
    multi_zone_flag bool
    Whether load balancing has multiple availability zones.
    sla_type str
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slave_zone_id str
    alternate availability zone.
    tse_cngw_network_id str
    ID of the resource.
    gatewayId String
    gateway ID.
    groupId String
    gateway group ID.
    description String
    description of clb.
    internetAddressVersion String
    internet type. Reference value:IPV4 (default value), IPV6.
    internetMaxBandwidthOut Number
    public network bandwidth.
    internetPayMode String
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    masterZoneId String
    primary availability zone.
    multiZoneFlag Boolean
    Whether load balancing has multiple availability zones.
    slaType String
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slaveZoneId String
    alternate availability zone.
    tseCngwNetworkId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkId string
    network id.
    Vip string
    clb vip.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkId string
    network id.
    Vip string
    clb vip.
    id String
    The provider-assigned unique ID for this managed resource.
    networkId String
    network id.
    vip String
    clb vip.
    id string
    The provider-assigned unique ID for this managed resource.
    networkId string
    network id.
    vip string
    clb vip.
    id str
    The provider-assigned unique ID for this managed resource.
    network_id str
    network id.
    vip str
    clb vip.
    id String
    The provider-assigned unique ID for this managed resource.
    networkId String
    network id.
    vip String
    clb vip.

    Look up Existing TseCngwNetwork Resource

    Get an existing TseCngwNetwork 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?: TseCngwNetworkState, opts?: CustomResourceOptions): TseCngwNetwork
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            gateway_id: Optional[str] = None,
            group_id: Optional[str] = None,
            internet_address_version: Optional[str] = None,
            internet_max_bandwidth_out: Optional[float] = None,
            internet_pay_mode: Optional[str] = None,
            master_zone_id: Optional[str] = None,
            multi_zone_flag: Optional[bool] = None,
            network_id: Optional[str] = None,
            sla_type: Optional[str] = None,
            slave_zone_id: Optional[str] = None,
            tse_cngw_network_id: Optional[str] = None,
            vip: Optional[str] = None) -> TseCngwNetwork
    func GetTseCngwNetwork(ctx *Context, name string, id IDInput, state *TseCngwNetworkState, opts ...ResourceOption) (*TseCngwNetwork, error)
    public static TseCngwNetwork Get(string name, Input<string> id, TseCngwNetworkState? state, CustomResourceOptions? opts = null)
    public static TseCngwNetwork get(String name, Output<String> id, TseCngwNetworkState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TseCngwNetwork    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:
    Description string
    description of clb.
    GatewayId string
    gateway ID.
    GroupId string
    gateway group ID.
    InternetAddressVersion string
    internet type. Reference value:IPV4 (default value), IPV6.
    InternetMaxBandwidthOut double
    public network bandwidth.
    InternetPayMode string
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    MasterZoneId string
    primary availability zone.
    MultiZoneFlag bool
    Whether load balancing has multiple availability zones.
    NetworkId string
    network id.
    SlaType string
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    SlaveZoneId string
    alternate availability zone.
    TseCngwNetworkId string
    ID of the resource.
    Vip string
    clb vip.
    Description string
    description of clb.
    GatewayId string
    gateway ID.
    GroupId string
    gateway group ID.
    InternetAddressVersion string
    internet type. Reference value:IPV4 (default value), IPV6.
    InternetMaxBandwidthOut float64
    public network bandwidth.
    InternetPayMode string
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    MasterZoneId string
    primary availability zone.
    MultiZoneFlag bool
    Whether load balancing has multiple availability zones.
    NetworkId string
    network id.
    SlaType string
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    SlaveZoneId string
    alternate availability zone.
    TseCngwNetworkId string
    ID of the resource.
    Vip string
    clb vip.
    description String
    description of clb.
    gatewayId String
    gateway ID.
    groupId String
    gateway group ID.
    internetAddressVersion String
    internet type. Reference value:IPV4 (default value), IPV6.
    internetMaxBandwidthOut Double
    public network bandwidth.
    internetPayMode String
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    masterZoneId String
    primary availability zone.
    multiZoneFlag Boolean
    Whether load balancing has multiple availability zones.
    networkId String
    network id.
    slaType String
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slaveZoneId String
    alternate availability zone.
    tseCngwNetworkId String
    ID of the resource.
    vip String
    clb vip.
    description string
    description of clb.
    gatewayId string
    gateway ID.
    groupId string
    gateway group ID.
    internetAddressVersion string
    internet type. Reference value:IPV4 (default value), IPV6.
    internetMaxBandwidthOut number
    public network bandwidth.
    internetPayMode string
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    masterZoneId string
    primary availability zone.
    multiZoneFlag boolean
    Whether load balancing has multiple availability zones.
    networkId string
    network id.
    slaType string
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slaveZoneId string
    alternate availability zone.
    tseCngwNetworkId string
    ID of the resource.
    vip string
    clb vip.
    description str
    description of clb.
    gateway_id str
    gateway ID.
    group_id str
    gateway group ID.
    internet_address_version str
    internet type. Reference value:IPV4 (default value), IPV6.
    internet_max_bandwidth_out float
    public network bandwidth.
    internet_pay_mode str
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    master_zone_id str
    primary availability zone.
    multi_zone_flag bool
    Whether load balancing has multiple availability zones.
    network_id str
    network id.
    sla_type str
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slave_zone_id str
    alternate availability zone.
    tse_cngw_network_id str
    ID of the resource.
    vip str
    clb vip.
    description String
    description of clb.
    gatewayId String
    gateway ID.
    groupId String
    gateway group ID.
    internetAddressVersion String
    internet type. Reference value:IPV4 (default value), IPV6.
    internetMaxBandwidthOut Number
    public network bandwidth.
    internetPayMode String
    trade type of internet. Reference value:BANDWIDTH (default value), TRAFFIC.
    masterZoneId String
    primary availability zone.
    multiZoneFlag Boolean
    Whether load balancing has multiple availability zones.
    networkId String
    network id.
    slaType String
    specification type of clb. Default shared type when this parameter is empty, Note: input shared is not supported when creating. Reference value:clb.c2.medium, clb.c3.small, clb.c3.medium, clb.c4.small, clb.c4.medium, clb.c4.large, clb.c4.xlarge.
    slaveZoneId String
    alternate availability zone.
    tseCngwNetworkId String
    ID of the resource.
    vip String
    clb vip.

    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