vkcs.DcVrrp
Explore with Pulumi AI
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:
- Group
Id double - required number → VRRP Group ID
- Network
Id string - required string → Network ID to attach. Changing this creates a new resource
- Advert
Interval 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'sregion
. - Subnet
Id string - optional string → Subnet ID to attach. Changing this creates a new resource
- Group
Id float64 - required number → VRRP Group ID
- Network
Id string - required string → Network ID to attach. Changing this creates a new resource
- Advert
Interval 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'sregion
. - Subnet
Id string - optional string → Subnet ID to attach. Changing this creates a new resource
- group
Id Double - required number → VRRP Group ID
- network
Id String - required string → Network ID to attach. Changing this creates a new resource
- advert
Interval 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'sregion
. - subnet
Id String - optional string → Subnet ID to attach. Changing this creates a new resource
- group
Id number - required number → VRRP Group ID
- network
Id string - required string → Network ID to attach. Changing this creates a new resource
- advert
Interval 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'sregion
. - subnet
Id 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
- advert_
interval 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'sregion
. - subnet_
id str - optional string → Subnet ID to attach. Changing this creates a new resource
- group
Id Number - required number → VRRP Group ID
- network
Id String - required string → Network ID to attach. Changing this creates a new resource
- advert
Interval 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'sregion
. - subnet
Id 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:
- 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
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.
- Advert
Interval double - optional number → VRRP Advertise interval. Default is 1
- Created
At string - string → Creation timestamp
- Description string
- optional string → Description of the VRRP
- Enabled bool
- optional boolean → Enable or disable item. Default is true
- Group
Id double - required number → VRRP Group ID
- Name string
- optional string → Name of the VRRP
- Network
Id 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'sregion
. - Sdn string
- string → SDN of created VRRP
- Subnet
Id string - optional string → Subnet ID to attach. Changing this creates a new resource
- Updated
At string - string → Update timestamp
- Advert
Interval float64 - optional number → VRRP Advertise interval. Default is 1
- Created
At string - string → Creation timestamp
- Description string
- optional string → Description of the VRRP
- Enabled bool
- optional boolean → Enable or disable item. Default is true
- Group
Id float64 - required number → VRRP Group ID
- Name string
- optional string → Name of the VRRP
- Network
Id 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'sregion
. - Sdn string
- string → SDN of created VRRP
- Subnet
Id string - optional string → Subnet ID to attach. Changing this creates a new resource
- Updated
At string - string → Update timestamp
- advert
Interval Double - optional number → VRRP Advertise interval. Default is 1
- created
At String - string → Creation timestamp
- description String
- optional string → Description of the VRRP
- enabled Boolean
- optional boolean → Enable or disable item. Default is true
- group
Id Double - required number → VRRP Group ID
- name String
- optional string → Name of the VRRP
- network
Id 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'sregion
. - sdn String
- string → SDN of created VRRP
- subnet
Id String - optional string → Subnet ID to attach. Changing this creates a new resource
- updated
At String - string → Update timestamp
- advert
Interval number - optional number → VRRP Advertise interval. Default is 1
- created
At string - string → Creation timestamp
- description string
- optional string → Description of the VRRP
- enabled boolean
- optional boolean → Enable or disable item. Default is true
- group
Id number - required number → VRRP Group ID
- name string
- optional string → Name of the VRRP
- network
Id 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'sregion
. - sdn string
- string → SDN of created VRRP
- subnet
Id string - optional string → Subnet ID to attach. Changing this creates a new resource
- updated
At 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'sregion
. - 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
- advert
Interval Number - optional number → VRRP Advertise interval. Default is 1
- created
At String - string → Creation timestamp
- description String
- optional string → Description of the VRRP
- enabled Boolean
- optional boolean → Enable or disable item. Default is true
- group
Id Number - required number → VRRP Group ID
- name String
- optional string → Name of the VRRP
- network
Id 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'sregion
. - sdn String
- string → SDN of created VRRP
- subnet
Id String - optional string → Subnet ID to attach. Changing this creates a new resource
- updated
At 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.