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

vkcs.DcRouter

Explore with Pulumi AI

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

    Manages a direct connect router resource.

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

    New since v0.5.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const dcRouter = new vkcs.DcRouter("dcRouter", {
        availabilityZone: "GZ1",
        description: "tf-example-description",
        flavor: "standard",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    dc_router = vkcs.DcRouter("dcRouter",
        availability_zone="GZ1",
        description="tf-example-description",
        flavor="standard")
    
    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.NewDcRouter(ctx, "dcRouter", &vkcs.DcRouterArgs{
    			AvailabilityZone: pulumi.String("GZ1"),
    			Description:      pulumi.String("tf-example-description"),
    			Flavor:           pulumi.String("standard"),
    		})
    		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 dcRouter = new Vkcs.DcRouter("dcRouter", new()
        {
            AvailabilityZone = "GZ1",
            Description = "tf-example-description",
            Flavor = "standard",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.DcRouter;
    import com.pulumi.vkcs.DcRouterArgs;
    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 dcRouter = new DcRouter("dcRouter", DcRouterArgs.builder()
                .availabilityZone("GZ1")
                .description("tf-example-description")
                .flavor("standard")
                .build());
    
        }
    }
    
    resources:
      dcRouter:
        type: vkcs:DcRouter
        properties:
          availabilityZone: GZ1
          description: tf-example-description
          flavor: standard
    

    Create DcRouter Resource

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

    Constructor syntax

    new DcRouter(name: string, args?: DcRouterArgs, opts?: CustomResourceOptions);
    @overload
    def DcRouter(resource_name: str,
                 args: Optional[DcRouterArgs] = None,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcRouter(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 availability_zone: Optional[str] = None,
                 description: Optional[str] = None,
                 flavor: Optional[str] = None,
                 name: Optional[str] = None,
                 region: Optional[str] = None)
    func NewDcRouter(ctx *Context, name string, args *DcRouterArgs, opts ...ResourceOption) (*DcRouter, error)
    public DcRouter(string name, DcRouterArgs? args = null, CustomResourceOptions? opts = null)
    public DcRouter(String name, DcRouterArgs args)
    public DcRouter(String name, DcRouterArgs args, CustomResourceOptions options)
    
    type: vkcs:DcRouter
    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 DcRouterArgs
    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 DcRouterArgs
    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 DcRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcRouterArgs
    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 dcRouterResource = new Vkcs.DcRouter("dcRouterResource", new()
    {
        AvailabilityZone = "string",
        Description = "string",
        Flavor = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := vkcs.NewDcRouter(ctx, "dcRouterResource", &vkcs.DcRouterArgs{
    	AvailabilityZone: pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	Flavor:           pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	Region:           pulumi.String("string"),
    })
    
    var dcRouterResource = new DcRouter("dcRouterResource", DcRouterArgs.builder()
        .availabilityZone("string")
        .description("string")
        .flavor("string")
        .name("string")
        .region("string")
        .build());
    
    dc_router_resource = vkcs.DcRouter("dcRouterResource",
        availability_zone="string",
        description="string",
        flavor="string",
        name="string",
        region="string")
    
    const dcRouterResource = new vkcs.DcRouter("dcRouterResource", {
        availabilityZone: "string",
        description: "string",
        flavor: "string",
        name: "string",
        region: "string",
    });
    
    type: vkcs:DcRouter
    properties:
        availabilityZone: string
        description: string
        flavor: string
        name: string
        region: string
    

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

    AvailabilityZone string
    optional string → The availability zone in which to create the router. Changing this creates a new router
    Description string
    optional string → Description of the router
    Flavor string
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    Name string
    optional string → Name of the router
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    AvailabilityZone string
    optional string → The availability zone in which to create the router. Changing this creates a new router
    Description string
    optional string → Description of the router
    Flavor string
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    Name string
    optional string → Name of the router
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    availabilityZone String
    optional string → The availability zone in which to create the router. Changing this creates a new router
    description String
    optional string → Description of the router
    flavor String
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name String
    optional string → Name of the router
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    availabilityZone string
    optional string → The availability zone in which to create the router. Changing this creates a new router
    description string
    optional string → Description of the router
    flavor string
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name string
    optional string → Name of the router
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    availability_zone str
    optional string → The availability zone in which to create the router. Changing this creates a new router
    description str
    optional string → Description of the router
    flavor str
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name str
    optional string → Name of the router
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    availabilityZone String
    optional string → The availability zone in which to create the router. Changing this creates a new router
    description String
    optional string → Description of the router
    flavor String
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name String
    optional string → Name of the router
    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 DcRouter 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 DcRouter Resource

    Get an existing DcRouter 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?: DcRouterState, opts?: CustomResourceOptions): DcRouter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            flavor: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            updated_at: Optional[str] = None) -> DcRouter
    func GetDcRouter(ctx *Context, name string, id IDInput, state *DcRouterState, opts ...ResourceOption) (*DcRouter, error)
    public static DcRouter Get(string name, Input<string> id, DcRouterState? state, CustomResourceOptions? opts = null)
    public static DcRouter get(String name, Output<String> id, DcRouterState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:DcRouter    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:
    AvailabilityZone string
    optional string → The availability zone in which to create the router. Changing this creates a new router
    CreatedAt string
    string → Creation timestamp
    Description string
    optional string → Description of the router
    Flavor string
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    Name string
    optional string → Name of the router
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    UpdatedAt string
    string → Update timestamp
    AvailabilityZone string
    optional string → The availability zone in which to create the router. Changing this creates a new router
    CreatedAt string
    string → Creation timestamp
    Description string
    optional string → Description of the router
    Flavor string
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    Name string
    optional string → Name of the router
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    UpdatedAt string
    string → Update timestamp
    availabilityZone String
    optional string → The availability zone in which to create the router. Changing this creates a new router
    createdAt String
    string → Creation timestamp
    description String
    optional string → Description of the router
    flavor String
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name String
    optional string → Name of the router
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updatedAt String
    string → Update timestamp
    availabilityZone string
    optional string → The availability zone in which to create the router. Changing this creates a new router
    createdAt string
    string → Creation timestamp
    description string
    optional string → Description of the router
    flavor string
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name string
    optional string → Name of the router
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updatedAt string
    string → Update timestamp
    availability_zone str
    optional string → The availability zone in which to create the router. Changing this creates a new router
    created_at str
    string → Creation timestamp
    description str
    optional string → Description of the router
    flavor str
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name str
    optional string → Name of the router
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    updated_at str
    string → Update timestamp
    availabilityZone String
    optional string → The availability zone in which to create the router. Changing this creates a new router
    createdAt String
    string → Creation timestamp
    description String
    optional string → Description of the router
    flavor String
    optional string → Flavor of the router. Possible values can be obtained with vkcs.getDcApiOptions data source. Changing this creates a new router. Note: Not to be confused with compute service flavors.
    name String
    optional string → Name of the router
    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 router can be imported using the id, e.g.

    $ pulumi import vkcs:index/dcRouter:DcRouter mydcrouter b50b32fc-16e2-4cb0-acdb-638c865c4242
    

    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