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

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
resources:
  dcConntrackHelper:
    type: vkcs:DcConntrackHelper
    properties:
      dcRouterId: ${vkcs_dc_router.dc_router.id}
      description: tf-example-description
      helper: ftp
      protocol: tcp
      port: 21
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. DcConntrackHelperArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DcConntrackHelperArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DcConntrackHelperArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var dcConntrackHelperResource = new DcConntrackHelper("dcConntrackHelperResource", DcConntrackHelperArgs.builder()
    .dcRouterId("string")
    .helper("string")
    .port(0)
    .protocol("string")
    .description("string")
    .name("string")
    .region("string")
    .build());
Copy
dc_conntrack_helper_resource = vkcs.DcConntrackHelper("dcConntrackHelperResource",
    dc_router_id="string",
    helper="string",
    port=0,
    protocol="string",
    description="string",
    name="string",
    region="string")
Copy
const dcConntrackHelperResource = new vkcs.DcConntrackHelper("dcConntrackHelperResource", {
    dcRouterId: "string",
    helper: "string",
    port: 0,
    protocol: "string",
    description: "string",
    name: "string",
    region: "string",
});
Copy
type: vkcs:DcConntrackHelper
properties:
    dcRouterId: string
    description: string
    helper: string
    name: string
    port: 0
    protocol: string
    region: string
Copy

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 This property is required. string
required string → Direct Connect Router ID. Changing this creates a new resource
Helper This property is required. string
required string → Helper type. Must be one of: "ftp".
Port This property is required. double
required number → Network port for conntrack target rule.
Protocol This property is required. 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 This property is required. string
required string → Direct Connect Router ID. Changing this creates a new resource
Helper This property is required. string
required string → Helper type. Must be one of: "ftp".
Port This property is required. float64
required number → Network port for conntrack target rule.
Protocol This property is required. 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 This property is required. String
required string → Direct Connect Router ID. Changing this creates a new resource
helper This property is required. String
required string → Helper type. Must be one of: "ftp".
port This property is required. Double
required number → Network port for conntrack target rule.
protocol This property is required. 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 This property is required. string
required string → Direct Connect Router ID. Changing this creates a new resource
helper This property is required. string
required string → Helper type. Must be one of: "ftp".
port This property is required. number
required number → Network port for conntrack target rule.
protocol This property is required. 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 This property is required. str
required string → Direct Connect Router ID. Changing this creates a new resource
helper This property is required. str
required string → Helper type. Must be one of: "ftp".
port This property is required. float
required number → Network port for conntrack target rule.
protocol This property is required. 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 This property is required. String
required string → Direct Connect Router ID. Changing this creates a new resource
helper This property is required. String
required string → Helper type. Must be one of: "ftp".
port This property is required. Number
required number → Network port for conntrack target rule.
protocol This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Copy

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.