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

vkcs.DcVrrpInterface

Explore with Pulumi AI

Manages a direct connect VRRP interface 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 dcVrrpInterface = new vkcs.DcVrrpInterface("dcVrrpInterface", {
    description: "tf-example-description",
    dcVrrpId: vkcs_dc_vrrp.dc_vrrp.id,
    dcInterfaceId: vkcs_dc_interface.dc_interface.id,
    priority: 100,
    preempt: true,
    master: true,
});
Copy
import pulumi
import pulumi_vkcs as vkcs

dc_vrrp_interface = vkcs.DcVrrpInterface("dcVrrpInterface",
    description="tf-example-description",
    dc_vrrp_id=vkcs_dc_vrrp["dc_vrrp"]["id"],
    dc_interface_id=vkcs_dc_interface["dc_interface"]["id"],
    priority=100,
    preempt=True,
    master=True)
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.NewDcVrrpInterface(ctx, "dcVrrpInterface", &vkcs.DcVrrpInterfaceArgs{
			Description:   pulumi.String("tf-example-description"),
			DcVrrpId:      pulumi.Any(vkcs_dc_vrrp.Dc_vrrp.Id),
			DcInterfaceId: pulumi.Any(vkcs_dc_interface.Dc_interface.Id),
			Priority:      pulumi.Float64(100),
			Preempt:       pulumi.Bool(true),
			Master:        pulumi.Bool(true),
		})
		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 dcVrrpInterface = new Vkcs.DcVrrpInterface("dcVrrpInterface", new()
    {
        Description = "tf-example-description",
        DcVrrpId = vkcs_dc_vrrp.Dc_vrrp.Id,
        DcInterfaceId = vkcs_dc_interface.Dc_interface.Id,
        Priority = 100,
        Preempt = true,
        Master = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.DcVrrpInterface;
import com.pulumi.vkcs.DcVrrpInterfaceArgs;
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 dcVrrpInterface = new DcVrrpInterface("dcVrrpInterface", DcVrrpInterfaceArgs.builder()
            .description("tf-example-description")
            .dcVrrpId(vkcs_dc_vrrp.dc_vrrp().id())
            .dcInterfaceId(vkcs_dc_interface.dc_interface().id())
            .priority(100)
            .preempt(true)
            .master(true)
            .build());

    }
}
Copy
resources:
  dcVrrpInterface:
    type: vkcs:DcVrrpInterface
    properties:
      description: tf-example-description
      dcVrrpId: ${vkcs_dc_vrrp.dc_vrrp.id}
      dcInterfaceId: ${vkcs_dc_interface.dc_interface.id}
      priority: 100
      preempt: true
      master: true
Copy

Create DcVrrpInterface Resource

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

Constructor syntax

new DcVrrpInterface(name: string, args: DcVrrpInterfaceArgs, opts?: CustomResourceOptions);
@overload
def DcVrrpInterface(resource_name: str,
                    args: DcVrrpInterfaceArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def DcVrrpInterface(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    dc_interface_id: Optional[str] = None,
                    dc_vrrp_id: Optional[str] = None,
                    description: Optional[str] = None,
                    master: Optional[bool] = None,
                    name: Optional[str] = None,
                    preempt: Optional[bool] = None,
                    priority: Optional[float] = None,
                    region: Optional[str] = None)
func NewDcVrrpInterface(ctx *Context, name string, args DcVrrpInterfaceArgs, opts ...ResourceOption) (*DcVrrpInterface, error)
public DcVrrpInterface(string name, DcVrrpInterfaceArgs args, CustomResourceOptions? opts = null)
public DcVrrpInterface(String name, DcVrrpInterfaceArgs args)
public DcVrrpInterface(String name, DcVrrpInterfaceArgs args, CustomResourceOptions options)
type: vkcs:DcVrrpInterface
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. DcVrrpInterfaceArgs
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. DcVrrpInterfaceArgs
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. DcVrrpInterfaceArgs
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. DcVrrpInterfaceArgs
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. DcVrrpInterfaceArgs
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 dcVrrpInterfaceResource = new Vkcs.DcVrrpInterface("dcVrrpInterfaceResource", new()
{
    DcInterfaceId = "string",
    DcVrrpId = "string",
    Description = "string",
    Master = false,
    Name = "string",
    Preempt = false,
    Priority = 0,
    Region = "string",
});
Copy
example, err := vkcs.NewDcVrrpInterface(ctx, "dcVrrpInterfaceResource", &vkcs.DcVrrpInterfaceArgs{
DcInterfaceId: pulumi.String("string"),
DcVrrpId: pulumi.String("string"),
Description: pulumi.String("string"),
Master: pulumi.Bool(false),
Name: pulumi.String("string"),
Preempt: pulumi.Bool(false),
Priority: pulumi.Float64(0),
Region: pulumi.String("string"),
})
Copy
var dcVrrpInterfaceResource = new DcVrrpInterface("dcVrrpInterfaceResource", DcVrrpInterfaceArgs.builder()
    .dcInterfaceId("string")
    .dcVrrpId("string")
    .description("string")
    .master(false)
    .name("string")
    .preempt(false)
    .priority(0)
    .region("string")
    .build());
Copy
dc_vrrp_interface_resource = vkcs.DcVrrpInterface("dcVrrpInterfaceResource",
    dc_interface_id="string",
    dc_vrrp_id="string",
    description="string",
    master=False,
    name="string",
    preempt=False,
    priority=0,
    region="string")
Copy
const dcVrrpInterfaceResource = new vkcs.DcVrrpInterface("dcVrrpInterfaceResource", {
    dcInterfaceId: "string",
    dcVrrpId: "string",
    description: "string",
    master: false,
    name: "string",
    preempt: false,
    priority: 0,
    region: "string",
});
Copy
type: vkcs:DcVrrpInterface
properties:
    dcInterfaceId: string
    dcVrrpId: string
    description: string
    master: false
    name: string
    preempt: false
    priority: 0
    region: string
Copy

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

DcInterfaceId This property is required. string
required string → DC Interface ID to attach. Changing this creates a new resource
DcVrrpId This property is required. string
required string → VRRP ID to attach. Changing this creates a new resource
Description string
optional string → Description of the VRRP
Master bool
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
Name string
optional string → Name of the VRRP
Preempt bool
optional boolean → VRRP interface preempt behavior. Default is true
Priority double
optional number → VRRP interface priority. Default is 100
Region string
optional string → The region to fetch availability zones from, defaults to the provider's region.
DcInterfaceId This property is required. string
required string → DC Interface ID to attach. Changing this creates a new resource
DcVrrpId This property is required. string
required string → VRRP ID to attach. Changing this creates a new resource
Description string
optional string → Description of the VRRP
Master bool
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
Name string
optional string → Name of the VRRP
Preempt bool
optional boolean → VRRP interface preempt behavior. Default is true
Priority float64
optional number → VRRP interface priority. Default is 100
Region string
optional string → The region to fetch availability zones from, defaults to the provider's region.
dcInterfaceId This property is required. String
required string → DC Interface ID to attach. Changing this creates a new resource
dcVrrpId This property is required. String
required string → VRRP ID to attach. Changing this creates a new resource
description String
optional string → Description of the VRRP
master Boolean
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name String
optional string → Name of the VRRP
preempt Boolean
optional boolean → VRRP interface preempt behavior. Default is true
priority Double
optional number → VRRP interface priority. Default is 100
region String
optional string → The region to fetch availability zones from, defaults to the provider's region.
dcInterfaceId This property is required. string
required string → DC Interface ID to attach. Changing this creates a new resource
dcVrrpId This property is required. string
required string → VRRP ID to attach. Changing this creates a new resource
description string
optional string → Description of the VRRP
master boolean
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name string
optional string → Name of the VRRP
preempt boolean
optional boolean → VRRP interface preempt behavior. Default is true
priority number
optional number → VRRP interface priority. Default is 100
region string
optional string → The region to fetch availability zones from, defaults to the provider's region.
dc_interface_id This property is required. str
required string → DC Interface ID to attach. Changing this creates a new resource
dc_vrrp_id This property is required. str
required string → VRRP ID to attach. Changing this creates a new resource
description str
optional string → Description of the VRRP
master bool
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name str
optional string → Name of the VRRP
preempt bool
optional boolean → VRRP interface preempt behavior. Default is true
priority float
optional number → VRRP interface priority. Default is 100
region str
optional string → The region to fetch availability zones from, defaults to the provider's region.
dcInterfaceId This property is required. String
required string → DC Interface ID to attach. Changing this creates a new resource
dcVrrpId This property is required. String
required string → VRRP ID to attach. Changing this creates a new resource
description String
optional string → Description of the VRRP
master Boolean
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name String
optional string → Name of the VRRP
preempt Boolean
optional boolean → VRRP interface preempt behavior. Default is true
priority Number
optional number → VRRP interface priority. Default is 100
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 DcVrrpInterface 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 DcVrrpInterface Resource

Get an existing DcVrrpInterface 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?: DcVrrpInterfaceState, opts?: CustomResourceOptions): DcVrrpInterface
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        dc_interface_id: Optional[str] = None,
        dc_vrrp_id: Optional[str] = None,
        description: Optional[str] = None,
        master: Optional[bool] = None,
        name: Optional[str] = None,
        preempt: Optional[bool] = None,
        priority: Optional[float] = None,
        region: Optional[str] = None,
        updated_at: Optional[str] = None) -> DcVrrpInterface
func GetDcVrrpInterface(ctx *Context, name string, id IDInput, state *DcVrrpInterfaceState, opts ...ResourceOption) (*DcVrrpInterface, error)
public static DcVrrpInterface Get(string name, Input<string> id, DcVrrpInterfaceState? state, CustomResourceOptions? opts = null)
public static DcVrrpInterface get(String name, Output<String> id, DcVrrpInterfaceState state, CustomResourceOptions options)
resources:  _:    type: vkcs:DcVrrpInterface    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
DcInterfaceId string
required string → DC Interface ID to attach. Changing this creates a new resource
DcVrrpId string
required string → VRRP ID to attach. Changing this creates a new resource
Description string
optional string → Description of the VRRP
Master bool
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
Name string
optional string → Name of the VRRP
Preempt bool
optional boolean → VRRP interface preempt behavior. Default is true
Priority double
optional number → VRRP interface priority. Default is 100
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
DcInterfaceId string
required string → DC Interface ID to attach. Changing this creates a new resource
DcVrrpId string
required string → VRRP ID to attach. Changing this creates a new resource
Description string
optional string → Description of the VRRP
Master bool
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
Name string
optional string → Name of the VRRP
Preempt bool
optional boolean → VRRP interface preempt behavior. Default is true
Priority float64
optional number → VRRP interface priority. Default is 100
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
dcInterfaceId String
required string → DC Interface ID to attach. Changing this creates a new resource
dcVrrpId String
required string → VRRP ID to attach. Changing this creates a new resource
description String
optional string → Description of the VRRP
master Boolean
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name String
optional string → Name of the VRRP
preempt Boolean
optional boolean → VRRP interface preempt behavior. Default is true
priority Double
optional number → VRRP interface priority. Default is 100
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
dcInterfaceId string
required string → DC Interface ID to attach. Changing this creates a new resource
dcVrrpId string
required string → VRRP ID to attach. Changing this creates a new resource
description string
optional string → Description of the VRRP
master boolean
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name string
optional string → Name of the VRRP
preempt boolean
optional boolean → VRRP interface preempt behavior. Default is true
priority number
optional number → VRRP interface priority. Default is 100
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_interface_id str
required string → DC Interface ID to attach. Changing this creates a new resource
dc_vrrp_id str
required string → VRRP ID to attach. Changing this creates a new resource
description str
optional string → Description of the VRRP
master bool
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name str
optional string → Name of the VRRP
preempt bool
optional boolean → VRRP interface preempt behavior. Default is true
priority float
optional number → VRRP interface priority. Default is 100
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
dcInterfaceId String
required string → DC Interface ID to attach. Changing this creates a new resource
dcVrrpId String
required string → VRRP ID to attach. Changing this creates a new resource
description String
optional string → Description of the VRRP
master Boolean
optional boolean → Start VRRP instance on interface as VRRP Master. Default is false
name String
optional string → Name of the VRRP
preempt Boolean
optional boolean → VRRP interface preempt behavior. Default is true
priority Number
optional number → VRRP interface priority. Default is 100
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 vrrp interface can be imported using the id, e.g.

$ pulumi import vkcs:index/dcVrrpInterface:DcVrrpInterface mydcvrrpinterface 3f071a6d-3d21-435c-83f7-11b276f318f0
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.