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

vkcs.DcVrrp

Explore with Pulumi AI

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

    Manages a direct connect VRRP 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 dcVrrp = new vkcs.DcVrrp("dcVrrp", {
        description: "tf-example-description",
        groupId: 100,
        networkId: vkcs_networking_network.app.id,
        subnetId: vkcs_networking_subnet.app.id,
        advertInterval: 1,
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    dc_vrrp = vkcs.DcVrrp("dcVrrp",
        description="tf-example-description",
        group_id=100,
        network_id=vkcs_networking_network["app"]["id"],
        subnet_id=vkcs_networking_subnet["app"]["id"],
        advert_interval=1)
    
    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.NewDcVrrp(ctx, "dcVrrp", &vkcs.DcVrrpArgs{
    			Description:    pulumi.String("tf-example-description"),
    			GroupId:        pulumi.Float64(100),
    			NetworkId:      pulumi.Any(vkcs_networking_network.App.Id),
    			SubnetId:       pulumi.Any(vkcs_networking_subnet.App.Id),
    			AdvertInterval: pulumi.Float64(1),
    		})
    		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 dcVrrp = new Vkcs.DcVrrp("dcVrrp", new()
        {
            Description = "tf-example-description",
            GroupId = 100,
            NetworkId = vkcs_networking_network.App.Id,
            SubnetId = vkcs_networking_subnet.App.Id,
            AdvertInterval = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.DcVrrp;
    import com.pulumi.vkcs.DcVrrpArgs;
    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 dcVrrp = new DcVrrp("dcVrrp", DcVrrpArgs.builder()
                .description("tf-example-description")
                .groupId(100)
                .networkId(vkcs_networking_network.app().id())
                .subnetId(vkcs_networking_subnet.app().id())
                .advertInterval(1)
                .build());
    
        }
    }
    
    resources:
      dcVrrp:
        type: vkcs:DcVrrp
        properties:
          description: tf-example-description
          groupId: 100
          networkId: ${vkcs_networking_network.app.id}
          subnetId: ${vkcs_networking_subnet.app.id}
          advertInterval: 1
    

    Create DcVrrp Resource

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

    Constructor syntax

    new DcVrrp(name: string, args: DcVrrpArgs, opts?: CustomResourceOptions);
    @overload
    def DcVrrp(resource_name: str,
               args: DcVrrpArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcVrrp(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               group_id: Optional[float] = None,
               network_id: Optional[str] = None,
               advert_interval: Optional[float] = None,
               description: Optional[str] = None,
               enabled: Optional[bool] = None,
               name: Optional[str] = None,
               region: Optional[str] = None,
               subnet_id: Optional[str] = None)
    func NewDcVrrp(ctx *Context, name string, args DcVrrpArgs, opts ...ResourceOption) (*DcVrrp, error)
    public DcVrrp(string name, DcVrrpArgs args, CustomResourceOptions? opts = null)
    public DcVrrp(String name, DcVrrpArgs args)
    public DcVrrp(String name, DcVrrpArgs args, CustomResourceOptions options)
    
    type: vkcs:DcVrrp
    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 DcVrrpArgs
    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 DcVrrpArgs
    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 DcVrrpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcVrrpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcVrrpArgs
    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 dcVrrpResource = new Vkcs.DcVrrp("dcVrrpResource", new()
    {
        GroupId = 0,
        NetworkId = "string",
        AdvertInterval = 0,
        Description = "string",
        Enabled = false,
        Name = "string",
        Region = "string",
        SubnetId = "string",
    });
    
    example, err := vkcs.NewDcVrrp(ctx, "dcVrrpResource", &vkcs.DcVrrpArgs{
    	GroupId:        pulumi.Float64(0),
    	NetworkId:      pulumi.String("string"),
    	AdvertInterval: pulumi.Float64(0),
    	Description:    pulumi.String("string"),
    	Enabled:        pulumi.Bool(false),
    	Name:           pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	SubnetId:       pulumi.String("string"),
    })
    
    var dcVrrpResource = new DcVrrp("dcVrrpResource", DcVrrpArgs.builder()
        .groupId(0)
        .networkId("string")
        .advertInterval(0)
        .description("string")
        .enabled(false)
        .name("string")
        .region("string")
        .subnetId("string")
        .build());
    
    dc_vrrp_resource = vkcs.DcVrrp("dcVrrpResource",
        group_id=0,
        network_id="string",
        advert_interval=0,
        description="string",
        enabled=False,
        name="string",
        region="string",
        subnet_id="string")
    
    const dcVrrpResource = new vkcs.DcVrrp("dcVrrpResource", {
        groupId: 0,
        networkId: "string",
        advertInterval: 0,
        description: "string",
        enabled: false,
        name: "string",
        region: "string",
        subnetId: "string",
    });
    
    type: vkcs:DcVrrp
    properties:
        advertInterval: 0
        description: string
        enabled: false
        groupId: 0
        name: string
        networkId: string
        region: string
        subnetId: string
    

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

    GroupId double
    required number → VRRP Group ID
    NetworkId string
    required string → Network ID to attach. Changing this creates a new resource
    AdvertInterval double
    optional number → VRRP Advertise interval. Default is 1
    Description string
    optional string → Description of the VRRP
    Enabled bool
    optional boolean → Enable or disable item. Default is true
    Name string
    optional string → Name of the VRRP
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    SubnetId string
    optional string → Subnet ID to attach. Changing this creates a new resource
    GroupId float64
    required number → VRRP Group ID
    NetworkId string
    required string → Network ID to attach. Changing this creates a new resource
    AdvertInterval float64
    optional number → VRRP Advertise interval. Default is 1
    Description string
    optional string → Description of the VRRP
    Enabled bool
    optional boolean → Enable or disable item. Default is true
    Name string
    optional string → Name of the VRRP
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    SubnetId string
    optional string → Subnet ID to attach. Changing this creates a new resource
    groupId Double
    required number → VRRP Group ID
    networkId String
    required string → Network ID to attach. Changing this creates a new resource
    advertInterval Double
    optional number → VRRP Advertise interval. Default is 1
    description String
    optional string → Description of the VRRP
    enabled Boolean
    optional boolean → Enable or disable item. Default is true
    name String
    optional string → Name of the VRRP
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    subnetId String
    optional string → Subnet ID to attach. Changing this creates a new resource
    groupId number
    required number → VRRP Group ID
    networkId string
    required string → Network ID to attach. Changing this creates a new resource
    advertInterval number
    optional number → VRRP Advertise interval. Default is 1
    description string
    optional string → Description of the VRRP
    enabled boolean
    optional boolean → Enable or disable item. Default is true
    name string
    optional string → Name of the VRRP
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    subnetId string
    optional string → Subnet ID to attach. Changing this creates a new resource
    group_id float
    required number → VRRP Group ID
    network_id str
    required string → Network ID to attach. Changing this creates a new resource
    float
    optional number → VRRP Advertise interval. Default is 1
    description str
    optional string → Description of the VRRP
    enabled bool
    optional boolean → Enable or disable item. Default is true
    name str
    optional string → Name of the VRRP
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    subnet_id str
    optional string → Subnet ID to attach. Changing this creates a new resource
    groupId Number
    required number → VRRP Group ID
    networkId String
    required string → Network ID to attach. Changing this creates a new resource
    advertInterval Number
    optional number → VRRP Advertise interval. Default is 1
    description String
    optional string → Description of the VRRP
    enabled Boolean
    optional boolean → Enable or disable item. Default is true
    name String
    optional string → Name of the VRRP
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    subnetId String
    optional string → Subnet ID to attach. Changing this creates a new resource

    Outputs

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

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

    Look up Existing DcVrrp Resource

    Get an existing DcVrrp 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?: DcVrrpState, opts?: CustomResourceOptions): DcVrrp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            advert_interval: Optional[float] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            group_id: Optional[float] = None,
            name: Optional[str] = None,
            network_id: Optional[str] = None,
            region: Optional[str] = None,
            sdn: Optional[str] = None,
            subnet_id: Optional[str] = None,
            updated_at: Optional[str] = None) -> DcVrrp
    func GetDcVrrp(ctx *Context, name string, id IDInput, state *DcVrrpState, opts ...ResourceOption) (*DcVrrp, error)
    public static DcVrrp Get(string name, Input<string> id, DcVrrpState? state, CustomResourceOptions? opts = null)
    public static DcVrrp get(String name, Output<String> id, DcVrrpState state, CustomResourceOptions options)
    resources:  _:    type: vkcs:DcVrrp    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:
    AdvertInterval double
    optional number → VRRP Advertise interval. Default is 1
    CreatedAt string
    string → Creation timestamp
    Description string
    optional string → Description of the VRRP
    Enabled bool
    optional boolean → Enable or disable item. Default is true
    GroupId double
    required number → VRRP Group ID
    Name string
    optional string → Name of the VRRP
    NetworkId string
    required string → Network ID to attach. Changing this creates a new resource
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    Sdn string
    string → SDN of created VRRP
    SubnetId string
    optional string → Subnet ID to attach. Changing this creates a new resource
    UpdatedAt string
    string → Update timestamp
    AdvertInterval float64
    optional number → VRRP Advertise interval. Default is 1
    CreatedAt string
    string → Creation timestamp
    Description string
    optional string → Description of the VRRP
    Enabled bool
    optional boolean → Enable or disable item. Default is true
    GroupId float64
    required number → VRRP Group ID
    Name string
    optional string → Name of the VRRP
    NetworkId string
    required string → Network ID to attach. Changing this creates a new resource
    Region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    Sdn string
    string → SDN of created VRRP
    SubnetId string
    optional string → Subnet ID to attach. Changing this creates a new resource
    UpdatedAt string
    string → Update timestamp
    advertInterval Double
    optional number → VRRP Advertise interval. Default is 1
    createdAt String
    string → Creation timestamp
    description String
    optional string → Description of the VRRP
    enabled Boolean
    optional boolean → Enable or disable item. Default is true
    groupId Double
    required number → VRRP Group ID
    name String
    optional string → Name of the VRRP
    networkId String
    required string → Network ID to attach. Changing this creates a new resource
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    sdn String
    string → SDN of created VRRP
    subnetId String
    optional string → Subnet ID to attach. Changing this creates a new resource
    updatedAt String
    string → Update timestamp
    advertInterval number
    optional number → VRRP Advertise interval. Default is 1
    createdAt string
    string → Creation timestamp
    description string
    optional string → Description of the VRRP
    enabled boolean
    optional boolean → Enable or disable item. Default is true
    groupId number
    required number → VRRP Group ID
    name string
    optional string → Name of the VRRP
    networkId string
    required string → Network ID to attach. Changing this creates a new resource
    region string
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    sdn string
    string → SDN of created VRRP
    subnetId string
    optional string → Subnet ID to attach. Changing this creates a new resource
    updatedAt string
    string → Update timestamp
    advert_interval float
    optional number → VRRP Advertise interval. Default is 1
    created_at str
    string → Creation timestamp
    description str
    optional string → Description of the VRRP
    enabled bool
    optional boolean → Enable or disable item. Default is true
    group_id float
    required number → VRRP Group ID
    name str
    optional string → Name of the VRRP
    network_id str
    required string → Network ID to attach. Changing this creates a new resource
    region str
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    sdn str
    string → SDN of created VRRP
    subnet_id str
    optional string → Subnet ID to attach. Changing this creates a new resource
    updated_at str
    string → Update timestamp
    advertInterval Number
    optional number → VRRP Advertise interval. Default is 1
    createdAt String
    string → Creation timestamp
    description String
    optional string → Description of the VRRP
    enabled Boolean
    optional boolean → Enable or disable item. Default is true
    groupId Number
    required number → VRRP Group ID
    name String
    optional string → Name of the VRRP
    networkId String
    required string → Network ID to attach. Changing this creates a new resource
    region String
    optional string → The region to fetch availability zones from, defaults to the provider's region.
    sdn String
    string → SDN of created VRRP
    subnetId String
    optional string → Subnet ID to attach. Changing this creates a new resource
    updatedAt String
    string → Update timestamp

    Import

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

    $ pulumi import vkcs:index/dcVrrp:DcVrrp mydcvrrp f6149e79-b441-4327-90fc-7653acbc204c
    

    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