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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args DcVrrpInterfaceArgs
- 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 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 string
- The unique name of the resource.
- args DcVrrpInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcVrrpInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var dcVrrpInterfaceResource = new DcVrrpInterface("dcVrrpInterfaceResource", DcVrrpInterfaceArgs.builder()
.dcInterfaceId("string")
.dcVrrpId("string")
.description("string")
.master(false)
.name("string")
.preempt(false)
.priority(0)
.region("string")
.build());
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")
const dcVrrpInterfaceResource = new vkcs.DcVrrpInterface("dcVrrpInterfaceResource", {
dcInterfaceId: "string",
dcVrrpId: "string",
description: "string",
master: false,
name: "string",
preempt: false,
priority: 0,
region: "string",
});
type: vkcs:DcVrrpInterface
properties:
dcInterfaceId: string
dcVrrpId: string
description: string
master: false
name: string
preempt: false
priority: 0
region: string
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:
- Dc
Interface stringId - required string → DC Interface ID to attach. Changing this creates a new resource
- Dc
Vrrp stringId - 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'sregion
.
- Dc
Interface stringId - required string → DC Interface ID to attach. Changing this creates a new resource
- Dc
Vrrp stringId - 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'sregion
.
- dc
Interface StringId - required string → DC Interface ID to attach. Changing this creates a new resource
- dc
Vrrp StringId - 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'sregion
.
- dc
Interface stringId - required string → DC Interface ID to attach. Changing this creates a new resource
- dc
Vrrp stringId - 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'sregion
.
- dc_
interface_ strid - required string → DC Interface ID to attach. Changing this creates a new resource
- dc_
vrrp_ strid - 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'sregion
.
- dc
Interface StringId - required string → DC Interface ID to attach. Changing this creates a new resource
- dc
Vrrp StringId - 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'sregion
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DcVrrpInterface resource produces the following output properties:
- created_
at str - string → Creation timestamp
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - 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
- 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.
- Created
At string - string → Creation timestamp
- Dc
Interface stringId - required string → DC Interface ID to attach. Changing this creates a new resource
- Dc
Vrrp stringId - 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'sregion
. - Updated
At string - string → Update timestamp
- Created
At string - string → Creation timestamp
- Dc
Interface stringId - required string → DC Interface ID to attach. Changing this creates a new resource
- Dc
Vrrp stringId - 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'sregion
. - Updated
At string - string → Update timestamp
- created
At String - string → Creation timestamp
- dc
Interface StringId - required string → DC Interface ID to attach. Changing this creates a new resource
- dc
Vrrp StringId - 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'sregion
. - updated
At String - string → Update timestamp
- created
At string - string → Creation timestamp
- dc
Interface stringId - required string → DC Interface ID to attach. Changing this creates a new resource
- dc
Vrrp stringId - 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'sregion
. - updated
At string - string → Update timestamp
- created_
at str - string → Creation timestamp
- dc_
interface_ strid - required string → DC Interface ID to attach. Changing this creates a new resource
- dc_
vrrp_ strid - 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'sregion
. - updated_
at str - string → Update timestamp
- created
At String - string → Creation timestamp
- dc
Interface StringId - required string → DC Interface ID to attach. Changing this creates a new resource
- dc
Vrrp StringId - 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'sregion
. - updated
At 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
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.