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

vkcs.DcVrrpAddress

Explore with Pulumi AI

Manages a direct connect VRRP address 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 dcVrrpAddress = new vkcs.DcVrrpAddress("dcVrrpAddress", {
    description: "tf-example-description",
    dcVrrpId: vkcs_dc_vrrp.dc_vrrp.id,
    ipAddress: "192.168.199.42",
});
Copy
import pulumi
import pulumi_vkcs as vkcs

dc_vrrp_address = vkcs.DcVrrpAddress("dcVrrpAddress",
    description="tf-example-description",
    dc_vrrp_id=vkcs_dc_vrrp["dc_vrrp"]["id"],
    ip_address="192.168.199.42")
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.NewDcVrrpAddress(ctx, "dcVrrpAddress", &vkcs.DcVrrpAddressArgs{
			Description: pulumi.String("tf-example-description"),
			DcVrrpId:    pulumi.Any(vkcs_dc_vrrp.Dc_vrrp.Id),
			IpAddress:   pulumi.String("192.168.199.42"),
		})
		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 dcVrrpAddress = new Vkcs.DcVrrpAddress("dcVrrpAddress", new()
    {
        Description = "tf-example-description",
        DcVrrpId = vkcs_dc_vrrp.Dc_vrrp.Id,
        IpAddress = "192.168.199.42",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.DcVrrpAddress;
import com.pulumi.vkcs.DcVrrpAddressArgs;
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 dcVrrpAddress = new DcVrrpAddress("dcVrrpAddress", DcVrrpAddressArgs.builder()
            .description("tf-example-description")
            .dcVrrpId(vkcs_dc_vrrp.dc_vrrp().id())
            .ipAddress("192.168.199.42")
            .build());

    }
}
Copy
resources:
  dcVrrpAddress:
    type: vkcs:DcVrrpAddress
    properties:
      description: tf-example-description
      dcVrrpId: ${vkcs_dc_vrrp.dc_vrrp.id}
      ipAddress: 192.168.199.42
Copy

Create DcVrrpAddress Resource

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

Constructor syntax

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

@overload
def DcVrrpAddress(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  dc_vrrp_id: Optional[str] = None,
                  description: Optional[str] = None,
                  ip_address: Optional[str] = None,
                  name: Optional[str] = None,
                  region: Optional[str] = None)
func NewDcVrrpAddress(ctx *Context, name string, args DcVrrpAddressArgs, opts ...ResourceOption) (*DcVrrpAddress, error)
public DcVrrpAddress(string name, DcVrrpAddressArgs args, CustomResourceOptions? opts = null)
public DcVrrpAddress(String name, DcVrrpAddressArgs args)
public DcVrrpAddress(String name, DcVrrpAddressArgs args, CustomResourceOptions options)
type: vkcs:DcVrrpAddress
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. DcVrrpAddressArgs
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. DcVrrpAddressArgs
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. DcVrrpAddressArgs
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. DcVrrpAddressArgs
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. DcVrrpAddressArgs
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 dcVrrpAddressResource = new Vkcs.DcVrrpAddress("dcVrrpAddressResource", new()
{
    DcVrrpId = "string",
    Description = "string",
    IpAddress = "string",
    Name = "string",
    Region = "string",
});
Copy
example, err := vkcs.NewDcVrrpAddress(ctx, "dcVrrpAddressResource", &vkcs.DcVrrpAddressArgs{
DcVrrpId: pulumi.String("string"),
Description: pulumi.String("string"),
IpAddress: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
})
Copy
var dcVrrpAddressResource = new DcVrrpAddress("dcVrrpAddressResource", DcVrrpAddressArgs.builder()
    .dcVrrpId("string")
    .description("string")
    .ipAddress("string")
    .name("string")
    .region("string")
    .build());
Copy
dc_vrrp_address_resource = vkcs.DcVrrpAddress("dcVrrpAddressResource",
    dc_vrrp_id="string",
    description="string",
    ip_address="string",
    name="string",
    region="string")
Copy
const dcVrrpAddressResource = new vkcs.DcVrrpAddress("dcVrrpAddressResource", {
    dcVrrpId: "string",
    description: "string",
    ipAddress: "string",
    name: "string",
    region: "string",
});
Copy
type: vkcs:DcVrrpAddress
properties:
    dcVrrpId: string
    description: string
    ipAddress: string
    name: string
    region: string
Copy

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

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
IpAddress string
optional string → IP address to assign. Changing this creates a new resource
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.
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
IpAddress string
optional string → IP address to assign. Changing this creates a new resource
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.
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
ipAddress String
optional string → IP address to assign. Changing this creates a new resource
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.
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
ipAddress string
optional string → IP address to assign. Changing this creates a new resource
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.
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
ip_address str
optional string → IP address to assign. Changing this creates a new resource
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.
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
ipAddress String
optional string → IP address to assign. Changing this creates a new resource
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.

Outputs

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

CreatedAt string
string → Creation timestamp
Id string
The provider-assigned unique ID for this managed resource.
PortId string
string → Port ID used to assign IP address
UpdatedAt string
string → Update timestamp
CreatedAt string
string → Creation timestamp
Id string
The provider-assigned unique ID for this managed resource.
PortId string
string → Port ID used to assign IP address
UpdatedAt string
string → Update timestamp
createdAt String
string → Creation timestamp
id String
The provider-assigned unique ID for this managed resource.
portId String
string → Port ID used to assign IP address
updatedAt String
string → Update timestamp
createdAt string
string → Creation timestamp
id string
The provider-assigned unique ID for this managed resource.
portId string
string → Port ID used to assign IP address
updatedAt string
string → Update timestamp
created_at str
string → Creation timestamp
id str
The provider-assigned unique ID for this managed resource.
port_id str
string → Port ID used to assign IP address
updated_at str
string → Update timestamp
createdAt String
string → Creation timestamp
id String
The provider-assigned unique ID for this managed resource.
portId String
string → Port ID used to assign IP address
updatedAt String
string → Update timestamp

Look up Existing DcVrrpAddress Resource

Get an existing DcVrrpAddress 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?: DcVrrpAddressState, opts?: CustomResourceOptions): DcVrrpAddress
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        dc_vrrp_id: Optional[str] = None,
        description: Optional[str] = None,
        ip_address: Optional[str] = None,
        name: Optional[str] = None,
        port_id: Optional[str] = None,
        region: Optional[str] = None,
        updated_at: Optional[str] = None) -> DcVrrpAddress
func GetDcVrrpAddress(ctx *Context, name string, id IDInput, state *DcVrrpAddressState, opts ...ResourceOption) (*DcVrrpAddress, error)
public static DcVrrpAddress Get(string name, Input<string> id, DcVrrpAddressState? state, CustomResourceOptions? opts = null)
public static DcVrrpAddress get(String name, Output<String> id, DcVrrpAddressState state, CustomResourceOptions options)
resources:  _:    type: vkcs:DcVrrpAddress    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
DcVrrpId string
required string → VRRP ID to attach. Changing this creates a new resource
Description string
optional string → Description of the VRRP
IpAddress string
optional string → IP address to assign. Changing this creates a new resource
Name string
optional string → Name of the VRRP
PortId string
string → Port ID used to assign IP address
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
DcVrrpId string
required string → VRRP ID to attach. Changing this creates a new resource
Description string
optional string → Description of the VRRP
IpAddress string
optional string → IP address to assign. Changing this creates a new resource
Name string
optional string → Name of the VRRP
PortId string
string → Port ID used to assign IP address
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
dcVrrpId String
required string → VRRP ID to attach. Changing this creates a new resource
description String
optional string → Description of the VRRP
ipAddress String
optional string → IP address to assign. Changing this creates a new resource
name String
optional string → Name of the VRRP
portId String
string → Port ID used to assign IP address
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
dcVrrpId string
required string → VRRP ID to attach. Changing this creates a new resource
description string
optional string → Description of the VRRP
ipAddress string
optional string → IP address to assign. Changing this creates a new resource
name string
optional string → Name of the VRRP
portId string
string → Port ID used to assign IP address
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_vrrp_id str
required string → VRRP ID to attach. Changing this creates a new resource
description str
optional string → Description of the VRRP
ip_address str
optional string → IP address to assign. Changing this creates a new resource
name str
optional string → Name of the VRRP
port_id str
string → Port ID used to assign IP address
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
dcVrrpId String
required string → VRRP ID to attach. Changing this creates a new resource
description String
optional string → Description of the VRRP
ipAddress String
optional string → IP address to assign. Changing this creates a new resource
name String
optional string → Name of the VRRP
portId String
string → Port ID used to assign IP address
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 address can be imported using the id, e.g.

$ pulumi import vkcs:index/dcVrrpAddress:DcVrrpAddress mydcvrrpaddress aa00d2a9-db9c-4976-898b-fcabb9f49505
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.