1. Packages
  2. Vkcs Provider
  3. API Docs
  4. DcConntrackHelper
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.DcConntrackHelper

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Manages a direct connect conntrack helper resource.

    Note: This resource requires Sprut SDN to be enabled in your project.

    New since v0.8.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const dcConntrackHelper = new vkcs.DcConntrackHelper("dcConntrackHelper", {
        dcRouterId: vkcs_dc_router.dc_router.id,
        description: "tf-example-description",
        helper: "ftp",
        protocol: "tcp",
        port: 21,
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    dc_conntrack_helper = vkcs.DcConntrackHelper("dcConntrackHelper",
        dc_router_id=vkcs_dc_router["dc_router"]["id"],
        description="tf-example-description",
        helper="ftp",
        protocol="tcp",
        port=21)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.NewDcConntrackHelper(ctx, "dcConntrackHelper", &vkcs.DcConntrackHelperArgs{
    			DcRouterId:  pulumi.Any(vkcs_dc_router.Dc_router.Id),
    			Description: pulumi.String("tf-example-description"),
    			Helper:      pulumi.String("ftp"),
    			Protocol:    pulumi.String("tcp"),
    			Port:        pulumi.Float64(21),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var dcConntrackHelper = new Vkcs.DcConntrackHelper("dcConntrackHelper", new()
        {
            DcRouterId = vkcs_dc_router.Dc_router.Id,
            Description = "tf-example-description",
            Helper = "ftp",
            Protocol = "tcp",
            Port = 21,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.DcConntrackHelper;
    import com.pulumi.vkcs.DcConntrackHelperArgs;
    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 dcConntrackHelper = new DcConntrackHelper("dcConntrackHelper", DcConntrackHelperArgs.builder()
                .dcRouterId(vkcs_dc_router.dc_router().id())
                .description("tf-example-description")
                .helper("ftp")
                .protocol("tcp")
                .port(21)
                .build());
    
        }
    }
    
    resources:
      dcConntrackHelper:
        type: vkcs:DcConntrackHelper
        properties:
          dcRouterId: ${vkcs_dc_router.dc_router.id}
          description: tf-example-description
          helper: ftp
          protocol: tcp
          port: 21
    

    Create DcConntrackHelper Resource

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

    Constructor syntax

    new DcConntrackHelper(name: string, args: DcConntrackHelperArgs, opts?: CustomResourceOptions);
    @overload
    def DcConntrackHelper(resource_name: str,
                          args: DcConntrackHelperArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcConntrackHelper(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          dc_router_id: Optional[str] = None,
                          helper: Optional[str] = None,
                          port: Optional[float] = None,
                          protocol: Optional[str] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None,
                          region: Optional[str] = None)
    func NewDcConntrackHelper(ctx *Context, name string, args DcConntrackHelperArgs, opts ...ResourceOption) (*DcConntrackHelper, error)
    public DcConntrackHelper(string name, DcConntrackHelperArgs args, CustomResourceOptions? opts = null)
    public DcConntrackHelper(String name, DcConntrackHelperArgs args)
    public DcConntrackHelper(String name, DcConntrackHelperArgs args, CustomResourceOptions options)
    
    type: vkcs:DcConntrackHelper
    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 DcConntrackHelperArgs
    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 DcConntrackHelperArgs
    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 DcConntrackHelperArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcConntrackHelperArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcConntrackHelperArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dcConntrackHelperResource = new Vkcs.DcConntrackHelper("dcConntrackHelperResource", new()
    {
        DcRouterId = "string",
        Helper = "string",
        Port = 0,
        Protocol = "string",
        Description = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := vkcs.NewDcConntrackHelper(ctx, "dcConntrackHelperResource", &vkcs.DcConntrackHelperArgs{
    	DcRouterId:  pulumi.String("string"),
    	Helper:      pulumi.String("string"),
    	Port:        pulumi.Float64(0),
    	Protocol:    pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    })
    
    var dcConntrackHelperResource = new DcConntrackHelper("dcConntrackHelperResource", DcConntrackHelperArgs.builder()
        .dcRouterId("string")
        .helper("string")
        .port(0)
        .protocol("string")
        .description("string")
        .name("string")
        .region("string")
        .build());
    
    dc_conntrack_helper_resource = vkcs.DcConntrackHelper("dcConntrackHelperResource",
        dc_router_id="string",
        helper="string",
        port=0,
        protocol="string",
        description="string",
        name="string",
        region="string")
    
    const dcConntrackHelperResource = new vkcs.DcConntrackHelper("dcConntrackHelperResource", {
        dcRouterId: "string",
        helper: "string",
        port: 0,
        protocol: "string",
        description: "string",
        name: "string",
        region: "string",
    });
    
    type: vkcs:DcConntrackHelper
    properties:
        dcRouterId: string
        description: string
        helper: string
        name: string
        port: 0
        protocol: string
        region: string
    

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

    DcRouterId string
    required string → Direct Connect Router ID. Changing this creates a new resource
    Helper string
    required string → Helper type. Must be one of: "ftp".
    Port double
    required number → Network port for conntrack target rule.
    Protocol string
    required string → Protocol. Must be one of: "tcp".
    Description string
    optional string → Description of the conntrack helper
    Name string
    optional string → Name of the conntrack helper
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    DcRouterId string
    required string → Direct Connect Router ID. Changing this creates a new resource
    Helper string
    required string → Helper type. Must be one of: "ftp".
    Port float64
    required number → Network port for conntrack target rule.
    Protocol string
    required string → Protocol. Must be one of: "tcp".
    Description string
    optional string → Description of the conntrack helper
    Name string
    optional string → Name of the conntrack helper
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    dcRouterId String
    required string → Direct Connect Router ID. Changing this creates a new resource
    helper String
    required string → Helper type. Must be one of: "ftp".
    port Double
    required number → Network port for conntrack target rule.
    protocol String
    required string → Protocol. Must be one of: "tcp".
    description String
    optional string → Description of the conntrack helper
    name String
    optional string → Name of the conntrack helper
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    dcRouterId string
    required string → Direct Connect Router ID. Changing this creates a new resource
    helper string
    required string → Helper type. Must be one of: "ftp".
    port number
    required number → Network port for conntrack target rule.
    protocol string
    required string → Protocol. Must be one of: "tcp".
    description string
    optional string → Description of the conntrack helper
    name string
    optional string → Name of the conntrack helper
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    dc_router_id str
    required string → Direct Connect Router ID. Changing this creates a new resource
    helper str
    required string → Helper type. Must be one of: "ftp".
    port float
    required number → Network port for conntrack target rule.
    protocol str
    required string → Protocol. Must be one of: "tcp".
    description str
    optional string → Description of the conntrack helper
    name str
    optional string → Name of the conntrack helper
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    dcRouterId String
    required string → Direct Connect Router ID. Changing this creates a new resource
    helper String
    required string → Helper type. Must be one of: "ftp".
    port Number
    required number → Network port for conntrack target rule.
    protocol String
    required string → Protocol. Must be one of: "tcp".
    description String
    optional string → Description of the conntrack helper
    name String
    optional string → Name of the conntrack helper
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.

    Outputs

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

    CreatedAt string
    string → Creation timestamp
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    string → Update timestamp
    CreatedAt string
    string → Creation timestamp
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    string → Update timestamp
    createdAt String
    string → Creation timestamp
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    string → Update timestamp
    createdAt string
    string → Creation timestamp
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    string → Update timestamp
    created_at str
    string → Creation timestamp
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    string → Update timestamp
    createdAt String
    string → Creation timestamp
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    string → Update timestamp

    Look up Existing DcConntrackHelper Resource

    Get an existing DcConntrackHelper 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?: DcConntrackHelperState, opts?: CustomResourceOptions): DcConntrackHelper
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            dc_router_id: Optional[str] = None,
            description: Optional[str] = None,
            helper: Optional[str] = None,
            name: Optional[str] = None,
            port: Optional[float] = None,
            protocol: Optional[str] = None,
            region: Optional[str] = None,
            updated_at: Optional[str] = None) -> DcConntrackHelper
    func GetDcConntrackHelper(ctx *Context, name string, id IDInput, state *DcConntrackHelperState, opts ...ResourceOption) (*DcConntrackHelper, error)
    public static DcConntrackHelper Get(string name, Input<string> id, DcConntrackHelperState? state, CustomResourceOptions? opts = null)
    public static DcConntrackHelper get(String name, Output<String> id, DcConntrackHelperState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:DcConntrackHelper    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:
    CreatedAt string
    string → Creation timestamp
    DcRouterId string
    required string → Direct Connect Router ID. Changing this creates a new resource
    Description string
    optional string → Description of the conntrack helper
    Helper string
    required string → Helper type. Must be one of: "ftp".
    Name string
    optional string → Name of the conntrack helper
    Port double
    required number → Network port for conntrack target rule.
    Protocol string
    required string → Protocol. Must be one of: "tcp".
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    UpdatedAt string
    string → Update timestamp
    CreatedAt string
    string → Creation timestamp
    DcRouterId string
    required string → Direct Connect Router ID. Changing this creates a new resource
    Description string
    optional string → Description of the conntrack helper
    Helper string
    required string → Helper type. Must be one of: "ftp".
    Name string
    optional string → Name of the conntrack helper
    Port float64
    required number → Network port for conntrack target rule.
    Protocol string
    required string → Protocol. Must be one of: "tcp".
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    UpdatedAt string
    string → Update timestamp
    createdAt String
    string → Creation timestamp
    dcRouterId String
    required string → Direct Connect Router ID. Changing this creates a new resource
    description String
    optional string → Description of the conntrack helper
    helper String
    required string → Helper type. Must be one of: "ftp".
    name String
    optional string → Name of the conntrack helper
    port Double
    required number → Network port for conntrack target rule.
    protocol String
    required string → Protocol. Must be one of: "tcp".
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updatedAt String
    string → Update timestamp
    createdAt string
    string → Creation timestamp
    dcRouterId string
    required string → Direct Connect Router ID. Changing this creates a new resource
    description string
    optional string → Description of the conntrack helper
    helper string
    required string → Helper type. Must be one of: "ftp".
    name string
    optional string → Name of the conntrack helper
    port number
    required number → Network port for conntrack target rule.
    protocol string
    required string → Protocol. Must be one of: "tcp".
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updatedAt string
    string → Update timestamp
    created_at str
    string → Creation timestamp
    dc_router_id str
    required string → Direct Connect Router ID. Changing this creates a new resource
    description str
    optional string → Description of the conntrack helper
    helper str
    required string → Helper type. Must be one of: "ftp".
    name str
    optional string → Name of the conntrack helper
    port float
    required number → Network port for conntrack target rule.
    protocol str
    required string → Protocol. Must be one of: "tcp".
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updated_at str
    string → Update timestamp
    createdAt String
    string → Creation timestamp
    dcRouterId String
    required string → Direct Connect Router ID. Changing this creates a new resource
    description String
    optional string → Description of the conntrack helper
    helper String
    required string → Helper type. Must be one of: "ftp".
    name String
    optional string → Name of the conntrack helper
    port Number
    required number → Network port for conntrack target rule.
    protocol String
    required string → Protocol. Must be one of: "tcp".
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updatedAt String
    string → Update timestamp

    Import

    Direct connect conntrack helper can be imported using the id, e.g.

    $ pulumi import vkcs:index/dcConntrackHelper:DcConntrackHelper mydcconntrackhelper 52a0a638-0a75-4a15-b3f3-d5c9f953e93f
    

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

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs