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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
dcVrrpAddress:
type: vkcs:DcVrrpAddress
properties:
description: tf-example-description
dcVrrpId: ${vkcs_dc_vrrp.dc_vrrp.id}
ipAddress: 192.168.199.42
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 string
- The unique name of the resource.
- args DcVrrpAddressArgs
- 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 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 string
- The unique name of the resource.
- args DcVrrpAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcVrrpAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var dcVrrpAddressResource = new DcVrrpAddress("dcVrrpAddressResource", DcVrrpAddressArgs.builder()
.dcVrrpId("string")
.description("string")
.ipAddress("string")
.name("string")
.region("string")
.build());
dc_vrrp_address_resource = vkcs.DcVrrpAddress("dcVrrpAddressResource",
dc_vrrp_id="string",
description="string",
ip_address="string",
name="string",
region="string")
const dcVrrpAddressResource = new vkcs.DcVrrpAddress("dcVrrpAddressResource", {
dcVrrpId: "string",
description: "string",
ipAddress: "string",
name: "string",
region: "string",
});
type: vkcs:DcVrrpAddress
properties:
dcVrrpId: string
description: string
ipAddress: string
name: string
region: string
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:
- Dc
Vrrp stringId - required string → VRRP ID to attach. Changing this creates a new resource
- Description string
- optional string → Description of the VRRP
- Ip
Address 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'sregion
.
- Dc
Vrrp stringId - required string → VRRP ID to attach. Changing this creates a new resource
- Description string
- optional string → Description of the VRRP
- Ip
Address 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'sregion
.
- dc
Vrrp StringId - required string → VRRP ID to attach. Changing this creates a new resource
- description String
- optional string → Description of the VRRP
- ip
Address 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'sregion
.
- dc
Vrrp stringId - required string → VRRP ID to attach. Changing this creates a new resource
- description string
- optional string → Description of the VRRP
- ip
Address 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'sregion
.
- dc_
vrrp_ strid - 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'sregion
.
- dc
Vrrp StringId - required string → VRRP ID to attach. Changing this creates a new resource
- description String
- optional string → Description of the VRRP
- ip
Address 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'sregion
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DcVrrpAddress resource produces the following output properties:
- 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
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
- 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
Vrrp stringId - required string → VRRP ID to attach. Changing this creates a new resource
- Description string
- optional string → Description of the VRRP
- Ip
Address string - optional string → IP address to assign. Changing this creates a new resource
- Name string
- optional string → Name of the VRRP
- Port
Id string - string → Port ID used to assign IP address
- 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
Vrrp stringId - required string → VRRP ID to attach. Changing this creates a new resource
- Description string
- optional string → Description of the VRRP
- Ip
Address string - optional string → IP address to assign. Changing this creates a new resource
- Name string
- optional string → Name of the VRRP
- Port
Id string - string → Port ID used to assign IP address
- 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
Vrrp StringId - required string → VRRP ID to attach. Changing this creates a new resource
- description String
- optional string → Description of the VRRP
- ip
Address String - optional string → IP address to assign. Changing this creates a new resource
- name String
- optional string → Name of the VRRP
- port
Id String - string → Port ID used to assign IP address
- 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
Vrrp stringId - required string → VRRP ID to attach. Changing this creates a new resource
- description string
- optional string → Description of the VRRP
- ip
Address string - optional string → IP address to assign. Changing this creates a new resource
- name string
- optional string → Name of the VRRP
- port
Id string - string → Port ID used to assign IP address
- 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_
vrrp_ strid - 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'sregion
. - updated_
at str - string → Update timestamp
- created
At String - string → Creation timestamp
- dc
Vrrp StringId - required string → VRRP ID to attach. Changing this creates a new resource
- description String
- optional string → Description of the VRRP
- ip
Address String - optional string → IP address to assign. Changing this creates a new resource
- name String
- optional string → Name of the VRRP
- port
Id String - string → Port ID used to assign IP address
- 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 address can be imported using the id
, e.g.
$ pulumi import vkcs:index/dcVrrpAddress:DcVrrpAddress mydcvrrpaddress aa00d2a9-db9c-4976-898b-fcabb9f49505
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.