opennebula.VirtualRouterInstance
Explore with Pulumi AI
Provides an OpenNebula virtual router instance resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opennebula from "@pulumi/opennebula";
const exampleVirtualRouterInstanceTemplate = new opennebula.VirtualRouterInstanceTemplate("exampleVirtualRouterInstanceTemplate", {
permissions: "642",
group: "oneadmin",
cpu: 0.5,
vcpu: 1,
memory: 512,
context: {
dns_hostname: "yes",
network: "YES",
},
graphics: {
keymap: "en-us",
listen: "0.0.0.0",
type: "VNC",
},
os: {
arch: "x86_64",
boot: "",
},
tags: {
environment: "example",
},
});
const exampleVirtualRouter = new opennebula.VirtualRouter("exampleVirtualRouter", {
permissions: "642",
group: "oneadmin",
description: "This is an example of virtual router",
instanceTemplateId: exampleVirtualRouterInstanceTemplate.virtualRouterInstanceTemplateId,
lock: "USE",
tags: {
environment: "example",
},
});
const exampleVirtualRouterInstance = new opennebula.VirtualRouterInstance("exampleVirtualRouterInstance", {
group: "oneadmin",
permissions: "642",
memory: 128,
cpu: 0.1,
virtualRouterId: exampleVirtualRouter.virtualRouterId,
tags: {
environment: "example",
},
templateSections: [{
name: "exmaple",
elements: {
key1: "value1",
},
}],
});
import pulumi
import pulumi_opennebula as opennebula
example_virtual_router_instance_template = opennebula.VirtualRouterInstanceTemplate("exampleVirtualRouterInstanceTemplate",
permissions="642",
group="oneadmin",
cpu=0.5,
vcpu=1,
memory=512,
context={
"dns_hostname": "yes",
"network": "YES",
},
graphics={
"keymap": "en-us",
"listen": "0.0.0.0",
"type": "VNC",
},
os={
"arch": "x86_64",
"boot": "",
},
tags={
"environment": "example",
})
example_virtual_router = opennebula.VirtualRouter("exampleVirtualRouter",
permissions="642",
group="oneadmin",
description="This is an example of virtual router",
instance_template_id=example_virtual_router_instance_template.virtual_router_instance_template_id,
lock="USE",
tags={
"environment": "example",
})
example_virtual_router_instance = opennebula.VirtualRouterInstance("exampleVirtualRouterInstance",
group="oneadmin",
permissions="642",
memory=128,
cpu=0.1,
virtual_router_id=example_virtual_router.virtual_router_id,
tags={
"environment": "example",
},
template_sections=[{
"name": "exmaple",
"elements": {
"key1": "value1",
},
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleVirtualRouterInstanceTemplate, err := opennebula.NewVirtualRouterInstanceTemplate(ctx, "exampleVirtualRouterInstanceTemplate", &opennebula.VirtualRouterInstanceTemplateArgs{
Permissions: pulumi.String("642"),
Group: pulumi.String("oneadmin"),
Cpu: pulumi.Float64(0.5),
Vcpu: pulumi.Float64(1),
Memory: pulumi.Float64(512),
Context: pulumi.StringMap{
"dns_hostname": pulumi.String("yes"),
"network": pulumi.String("YES"),
},
Graphics: &opennebula.VirtualRouterInstanceTemplateGraphicsArgs{
Keymap: pulumi.String("en-us"),
Listen: pulumi.String("0.0.0.0"),
Type: pulumi.String("VNC"),
},
Os: &opennebula.VirtualRouterInstanceTemplateOsArgs{
Arch: pulumi.String("x86_64"),
Boot: pulumi.String(""),
},
Tags: pulumi.StringMap{
"environment": pulumi.String("example"),
},
})
if err != nil {
return err
}
exampleVirtualRouter, err := opennebula.NewVirtualRouter(ctx, "exampleVirtualRouter", &opennebula.VirtualRouterArgs{
Permissions: pulumi.String("642"),
Group: pulumi.String("oneadmin"),
Description: pulumi.String("This is an example of virtual router"),
InstanceTemplateId: exampleVirtualRouterInstanceTemplate.VirtualRouterInstanceTemplateId,
Lock: pulumi.String("USE"),
Tags: pulumi.StringMap{
"environment": pulumi.String("example"),
},
})
if err != nil {
return err
}
_, err = opennebula.NewVirtualRouterInstance(ctx, "exampleVirtualRouterInstance", &opennebula.VirtualRouterInstanceArgs{
Group: pulumi.String("oneadmin"),
Permissions: pulumi.String("642"),
Memory: pulumi.Float64(128),
Cpu: pulumi.Float64(0.1),
VirtualRouterId: exampleVirtualRouter.VirtualRouterId,
Tags: pulumi.StringMap{
"environment": pulumi.String("example"),
},
TemplateSections: opennebula.VirtualRouterInstanceTemplateSectionArray{
&opennebula.VirtualRouterInstanceTemplateSectionArgs{
Name: pulumi.String("exmaple"),
Elements: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opennebula = Pulumi.Opennebula;
return await Deployment.RunAsync(() =>
{
var exampleVirtualRouterInstanceTemplate = new Opennebula.VirtualRouterInstanceTemplate("exampleVirtualRouterInstanceTemplate", new()
{
Permissions = "642",
Group = "oneadmin",
Cpu = 0.5,
Vcpu = 1,
Memory = 512,
Context =
{
{ "dns_hostname", "yes" },
{ "network", "YES" },
},
Graphics = new Opennebula.Inputs.VirtualRouterInstanceTemplateGraphicsArgs
{
Keymap = "en-us",
Listen = "0.0.0.0",
Type = "VNC",
},
Os = new Opennebula.Inputs.VirtualRouterInstanceTemplateOsArgs
{
Arch = "x86_64",
Boot = "",
},
Tags =
{
{ "environment", "example" },
},
});
var exampleVirtualRouter = new Opennebula.VirtualRouter("exampleVirtualRouter", new()
{
Permissions = "642",
Group = "oneadmin",
Description = "This is an example of virtual router",
InstanceTemplateId = exampleVirtualRouterInstanceTemplate.VirtualRouterInstanceTemplateId,
Lock = "USE",
Tags =
{
{ "environment", "example" },
},
});
var exampleVirtualRouterInstance = new Opennebula.VirtualRouterInstance("exampleVirtualRouterInstance", new()
{
Group = "oneadmin",
Permissions = "642",
Memory = 128,
Cpu = 0.1,
VirtualRouterId = exampleVirtualRouter.VirtualRouterId,
Tags =
{
{ "environment", "example" },
},
TemplateSections = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceTemplateSectionArgs
{
Name = "exmaple",
Elements =
{
{ "key1", "value1" },
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opennebula.VirtualRouterInstanceTemplate;
import com.pulumi.opennebula.VirtualRouterInstanceTemplateArgs;
import com.pulumi.opennebula.inputs.VirtualRouterInstanceTemplateGraphicsArgs;
import com.pulumi.opennebula.inputs.VirtualRouterInstanceTemplateOsArgs;
import com.pulumi.opennebula.VirtualRouter;
import com.pulumi.opennebula.VirtualRouterArgs;
import com.pulumi.opennebula.VirtualRouterInstance;
import com.pulumi.opennebula.VirtualRouterInstanceArgs;
import com.pulumi.opennebula.inputs.VirtualRouterInstanceTemplateSectionArgs;
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 exampleVirtualRouterInstanceTemplate = new VirtualRouterInstanceTemplate("exampleVirtualRouterInstanceTemplate", VirtualRouterInstanceTemplateArgs.builder()
.permissions("642")
.group("oneadmin")
.cpu("0.5")
.vcpu("1")
.memory("512")
.context(Map.ofEntries(
Map.entry("dns_hostname", "yes"),
Map.entry("network", "YES")
))
.graphics(VirtualRouterInstanceTemplateGraphicsArgs.builder()
.keymap("en-us")
.listen("0.0.0.0")
.type("VNC")
.build())
.os(VirtualRouterInstanceTemplateOsArgs.builder()
.arch("x86_64")
.boot("")
.build())
.tags(Map.of("environment", "example"))
.build());
var exampleVirtualRouter = new VirtualRouter("exampleVirtualRouter", VirtualRouterArgs.builder()
.permissions("642")
.group("oneadmin")
.description("This is an example of virtual router")
.instanceTemplateId(exampleVirtualRouterInstanceTemplate.virtualRouterInstanceTemplateId())
.lock("USE")
.tags(Map.of("environment", "example"))
.build());
var exampleVirtualRouterInstance = new VirtualRouterInstance("exampleVirtualRouterInstance", VirtualRouterInstanceArgs.builder()
.group("oneadmin")
.permissions("642")
.memory(128)
.cpu(0.1)
.virtualRouterId(exampleVirtualRouter.virtualRouterId())
.tags(Map.of("environment", "example"))
.templateSections(VirtualRouterInstanceTemplateSectionArgs.builder()
.name("exmaple")
.elements(Map.of("key1", "value1"))
.build())
.build());
}
}
resources:
exampleVirtualRouterInstanceTemplate:
type: opennebula:VirtualRouterInstanceTemplate
properties:
permissions: '642'
group: oneadmin
cpu: '0.5'
vcpu: '1'
memory: '512'
context:
dns_hostname: yes
network: YES
graphics:
keymap: en-us
listen: 0.0.0.0
type: VNC
os:
arch: x86_64
boot: ""
tags:
environment: example
exampleVirtualRouter:
type: opennebula:VirtualRouter
properties:
permissions: '642'
group: oneadmin
description: This is an example of virtual router
instanceTemplateId: ${exampleVirtualRouterInstanceTemplate.virtualRouterInstanceTemplateId}
lock: USE
tags:
environment: example
exampleVirtualRouterInstance:
type: opennebula:VirtualRouterInstance
properties:
group: oneadmin
permissions: '642'
memory: 128
cpu: 0.1
virtualRouterId: ${exampleVirtualRouter.virtualRouterId}
tags:
environment: example
templateSections:
- name: exmaple
elements:
key1: value1
Instantiate from a template
A virtual router instance is created from a template. The template ID is defined in the virtual router resource.
For all virtual router instance parameters excepted context: parameters present in instance overrides parameters defined in template. For context: it merges them.
For disks defined in the template, if they are not overriden, are described in template_disk
attributes of the instantiated virtual router instance and are not modifiable anymore.
Create VirtualRouterInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualRouterInstance(name: string, args: VirtualRouterInstanceArgs, opts?: CustomResourceOptions);
@overload
def VirtualRouterInstance(resource_name: str,
args: VirtualRouterInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualRouterInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
virtual_router_id: Optional[float] = None,
os: Optional[VirtualRouterInstanceOsArgs] = None,
vcpu: Optional[float] = None,
description: Optional[str] = None,
disks: Optional[Sequence[VirtualRouterInstanceDiskArgs]] = None,
graphics: Optional[VirtualRouterInstanceGraphicsArgs] = None,
group: Optional[str] = None,
hard_shutdown: Optional[bool] = None,
lock: Optional[str] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
on_disk_change: Optional[str] = None,
context: Optional[Mapping[str, str]] = None,
cpumodel: Optional[VirtualRouterInstanceCpumodelArgs] = None,
raw: Optional[VirtualRouterInstanceRawArgs] = None,
pending: Optional[bool] = None,
sched_ds_requirements: Optional[str] = None,
sched_requirements: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template_sections: Optional[Sequence[VirtualRouterInstanceTemplateSectionArgs]] = None,
timeout: Optional[float] = None,
timeouts: Optional[VirtualRouterInstanceTimeoutsArgs] = None,
permissions: Optional[str] = None,
cpu: Optional[float] = None,
virtual_router_instance_id: Optional[str] = None,
vmgroup: Optional[VirtualRouterInstanceVmgroupArgs] = None)
func NewVirtualRouterInstance(ctx *Context, name string, args VirtualRouterInstanceArgs, opts ...ResourceOption) (*VirtualRouterInstance, error)
public VirtualRouterInstance(string name, VirtualRouterInstanceArgs args, CustomResourceOptions? opts = null)
public VirtualRouterInstance(String name, VirtualRouterInstanceArgs args)
public VirtualRouterInstance(String name, VirtualRouterInstanceArgs args, CustomResourceOptions options)
type: opennebula:VirtualRouterInstance
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 VirtualRouterInstanceArgs
- 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 VirtualRouterInstanceArgs
- 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 VirtualRouterInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualRouterInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualRouterInstanceArgs
- 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 virtualRouterInstanceResource = new Opennebula.VirtualRouterInstance("virtualRouterInstanceResource", new()
{
VirtualRouterId = 0,
Os = new Opennebula.Inputs.VirtualRouterInstanceOsArgs
{
Arch = "string",
Boot = "string",
},
Vcpu = 0,
Description = "string",
Disks = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceDiskArgs
{
Cache = "string",
ComputedCache = "string",
ComputedDevPrefix = "string",
ComputedDiscard = "string",
ComputedDriver = "string",
ComputedIo = "string",
ComputedSize = 0,
ComputedTarget = "string",
ComputedVolatileFormat = "string",
DevPrefix = "string",
Discard = "string",
DiskId = 0,
Driver = "string",
ImageId = 0,
Io = "string",
Size = 0,
Target = "string",
VolatileFormat = "string",
VolatileType = "string",
},
},
Graphics = new Opennebula.Inputs.VirtualRouterInstanceGraphicsArgs
{
Listen = "string",
Type = "string",
Keymap = "string",
Passwd = "string",
Port = "string",
RandomPasswd = false,
},
Group = "string",
HardShutdown = false,
Lock = "string",
Memory = 0,
Name = "string",
OnDiskChange = "string",
Context =
{
{ "string", "string" },
},
Cpumodel = new Opennebula.Inputs.VirtualRouterInstanceCpumodelArgs
{
Model = "string",
},
Raw = new Opennebula.Inputs.VirtualRouterInstanceRawArgs
{
Data = "string",
Type = "string",
},
Pending = false,
SchedDsRequirements = "string",
SchedRequirements = "string",
Tags =
{
{ "string", "string" },
},
TemplateSections = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceTemplateSectionArgs
{
Name = "string",
Elements =
{
{ "string", "string" },
},
},
},
Timeouts = new Opennebula.Inputs.VirtualRouterInstanceTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Permissions = "string",
Cpu = 0,
VirtualRouterInstanceId = "string",
Vmgroup = new Opennebula.Inputs.VirtualRouterInstanceVmgroupArgs
{
Role = "string",
VmgroupId = 0,
},
});
example, err := opennebula.NewVirtualRouterInstance(ctx, "virtualRouterInstanceResource", &opennebula.VirtualRouterInstanceArgs{
VirtualRouterId: pulumi.Float64(0),
Os: &opennebula.VirtualRouterInstanceOsArgs{
Arch: pulumi.String("string"),
Boot: pulumi.String("string"),
},
Vcpu: pulumi.Float64(0),
Description: pulumi.String("string"),
Disks: opennebula.VirtualRouterInstanceDiskArray{
&opennebula.VirtualRouterInstanceDiskArgs{
Cache: pulumi.String("string"),
ComputedCache: pulumi.String("string"),
ComputedDevPrefix: pulumi.String("string"),
ComputedDiscard: pulumi.String("string"),
ComputedDriver: pulumi.String("string"),
ComputedIo: pulumi.String("string"),
ComputedSize: pulumi.Float64(0),
ComputedTarget: pulumi.String("string"),
ComputedVolatileFormat: pulumi.String("string"),
DevPrefix: pulumi.String("string"),
Discard: pulumi.String("string"),
DiskId: pulumi.Float64(0),
Driver: pulumi.String("string"),
ImageId: pulumi.Float64(0),
Io: pulumi.String("string"),
Size: pulumi.Float64(0),
Target: pulumi.String("string"),
VolatileFormat: pulumi.String("string"),
VolatileType: pulumi.String("string"),
},
},
Graphics: &opennebula.VirtualRouterInstanceGraphicsArgs{
Listen: pulumi.String("string"),
Type: pulumi.String("string"),
Keymap: pulumi.String("string"),
Passwd: pulumi.String("string"),
Port: pulumi.String("string"),
RandomPasswd: pulumi.Bool(false),
},
Group: pulumi.String("string"),
HardShutdown: pulumi.Bool(false),
Lock: pulumi.String("string"),
Memory: pulumi.Float64(0),
Name: pulumi.String("string"),
OnDiskChange: pulumi.String("string"),
Context: pulumi.StringMap{
"string": pulumi.String("string"),
},
Cpumodel: &opennebula.VirtualRouterInstanceCpumodelArgs{
Model: pulumi.String("string"),
},
Raw: &opennebula.VirtualRouterInstanceRawArgs{
Data: pulumi.String("string"),
Type: pulumi.String("string"),
},
Pending: pulumi.Bool(false),
SchedDsRequirements: pulumi.String("string"),
SchedRequirements: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemplateSections: opennebula.VirtualRouterInstanceTemplateSectionArray{
&opennebula.VirtualRouterInstanceTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Timeouts: &opennebula.VirtualRouterInstanceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Permissions: pulumi.String("string"),
Cpu: pulumi.Float64(0),
VirtualRouterInstanceId: pulumi.String("string"),
Vmgroup: &opennebula.VirtualRouterInstanceVmgroupArgs{
Role: pulumi.String("string"),
VmgroupId: pulumi.Float64(0),
},
})
var virtualRouterInstanceResource = new VirtualRouterInstance("virtualRouterInstanceResource", VirtualRouterInstanceArgs.builder()
.virtualRouterId(0)
.os(VirtualRouterInstanceOsArgs.builder()
.arch("string")
.boot("string")
.build())
.vcpu(0)
.description("string")
.disks(VirtualRouterInstanceDiskArgs.builder()
.cache("string")
.computedCache("string")
.computedDevPrefix("string")
.computedDiscard("string")
.computedDriver("string")
.computedIo("string")
.computedSize(0)
.computedTarget("string")
.computedVolatileFormat("string")
.devPrefix("string")
.discard("string")
.diskId(0)
.driver("string")
.imageId(0)
.io("string")
.size(0)
.target("string")
.volatileFormat("string")
.volatileType("string")
.build())
.graphics(VirtualRouterInstanceGraphicsArgs.builder()
.listen("string")
.type("string")
.keymap("string")
.passwd("string")
.port("string")
.randomPasswd(false)
.build())
.group("string")
.hardShutdown(false)
.lock("string")
.memory(0)
.name("string")
.onDiskChange("string")
.context(Map.of("string", "string"))
.cpumodel(VirtualRouterInstanceCpumodelArgs.builder()
.model("string")
.build())
.raw(VirtualRouterInstanceRawArgs.builder()
.data("string")
.type("string")
.build())
.pending(false)
.schedDsRequirements("string")
.schedRequirements("string")
.tags(Map.of("string", "string"))
.templateSections(VirtualRouterInstanceTemplateSectionArgs.builder()
.name("string")
.elements(Map.of("string", "string"))
.build())
.timeouts(VirtualRouterInstanceTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.permissions("string")
.cpu(0)
.virtualRouterInstanceId("string")
.vmgroup(VirtualRouterInstanceVmgroupArgs.builder()
.role("string")
.vmgroupId(0)
.build())
.build());
virtual_router_instance_resource = opennebula.VirtualRouterInstance("virtualRouterInstanceResource",
virtual_router_id=0,
os={
"arch": "string",
"boot": "string",
},
vcpu=0,
description="string",
disks=[{
"cache": "string",
"computed_cache": "string",
"computed_dev_prefix": "string",
"computed_discard": "string",
"computed_driver": "string",
"computed_io": "string",
"computed_size": 0,
"computed_target": "string",
"computed_volatile_format": "string",
"dev_prefix": "string",
"discard": "string",
"disk_id": 0,
"driver": "string",
"image_id": 0,
"io": "string",
"size": 0,
"target": "string",
"volatile_format": "string",
"volatile_type": "string",
}],
graphics={
"listen": "string",
"type": "string",
"keymap": "string",
"passwd": "string",
"port": "string",
"random_passwd": False,
},
group="string",
hard_shutdown=False,
lock="string",
memory=0,
name="string",
on_disk_change="string",
context={
"string": "string",
},
cpumodel={
"model": "string",
},
raw={
"data": "string",
"type": "string",
},
pending=False,
sched_ds_requirements="string",
sched_requirements="string",
tags={
"string": "string",
},
template_sections=[{
"name": "string",
"elements": {
"string": "string",
},
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
permissions="string",
cpu=0,
virtual_router_instance_id="string",
vmgroup={
"role": "string",
"vmgroup_id": 0,
})
const virtualRouterInstanceResource = new opennebula.VirtualRouterInstance("virtualRouterInstanceResource", {
virtualRouterId: 0,
os: {
arch: "string",
boot: "string",
},
vcpu: 0,
description: "string",
disks: [{
cache: "string",
computedCache: "string",
computedDevPrefix: "string",
computedDiscard: "string",
computedDriver: "string",
computedIo: "string",
computedSize: 0,
computedTarget: "string",
computedVolatileFormat: "string",
devPrefix: "string",
discard: "string",
diskId: 0,
driver: "string",
imageId: 0,
io: "string",
size: 0,
target: "string",
volatileFormat: "string",
volatileType: "string",
}],
graphics: {
listen: "string",
type: "string",
keymap: "string",
passwd: "string",
port: "string",
randomPasswd: false,
},
group: "string",
hardShutdown: false,
lock: "string",
memory: 0,
name: "string",
onDiskChange: "string",
context: {
string: "string",
},
cpumodel: {
model: "string",
},
raw: {
data: "string",
type: "string",
},
pending: false,
schedDsRequirements: "string",
schedRequirements: "string",
tags: {
string: "string",
},
templateSections: [{
name: "string",
elements: {
string: "string",
},
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
permissions: "string",
cpu: 0,
virtualRouterInstanceId: "string",
vmgroup: {
role: "string",
vmgroupId: 0,
},
});
type: opennebula:VirtualRouterInstance
properties:
context:
string: string
cpu: 0
cpumodel:
model: string
description: string
disks:
- cache: string
computedCache: string
computedDevPrefix: string
computedDiscard: string
computedDriver: string
computedIo: string
computedSize: 0
computedTarget: string
computedVolatileFormat: string
devPrefix: string
discard: string
diskId: 0
driver: string
imageId: 0
io: string
size: 0
target: string
volatileFormat: string
volatileType: string
graphics:
keymap: string
listen: string
passwd: string
port: string
randomPasswd: false
type: string
group: string
hardShutdown: false
lock: string
memory: 0
name: string
onDiskChange: string
os:
arch: string
boot: string
pending: false
permissions: string
raw:
data: string
type: string
schedDsRequirements: string
schedRequirements: string
tags:
string: string
templateSections:
- elements:
string: string
name: string
timeouts:
create: string
delete: string
update: string
vcpu: 0
virtualRouterId: 0
virtualRouterInstanceId: string
vmgroup:
role: string
vmgroupId: 0
VirtualRouterInstance 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 VirtualRouterInstance resource accepts the following input properties:
- Virtual
Router doubleId - The ID of the parent virtual router resource.
- Context Dictionary<string, string>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu double
- Amount of CPU shares assigned to the VM.
- Cpumodel
Virtual
Router Instance Cpumodel - Definition of CPU Model type for the Virtual Machine
- Description string
- The description of the template.
- Disks
List<Virtual
Router Instance Disk> - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- Graphics
Virtual
Router Instance Graphics - See Graphics parameters below for details.
- Group string
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- Hard
Shutdown bool - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- Lock string
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory double
- Amount of RAM assigned to the VM in MB.
- Name string
- The name of the virtual router instance.
- On
Disk stringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - Os
Virtual
Router Instance Os - See OS parameters below for details.
- Pending bool
- Pending state during VM creation. Defaults to
false
. - Permissions string
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Raw - Low-level hypervisor tuning
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule.
- Dictionary<string, string>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Template
Sections List<VirtualRouter Instance Template Section> - Add custom section to the resource
- Timeout double
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- Timeouts
Virtual
Router Instance Timeouts - Vcpu double
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router stringInstance Id - ID of the virtual router instance.
- Vmgroup
Virtual
Router Instance Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- Virtual
Router float64Id - The ID of the parent virtual router resource.
- Context map[string]string
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu float64
- Amount of CPU shares assigned to the VM.
- Cpumodel
Virtual
Router Instance Cpumodel Args - Definition of CPU Model type for the Virtual Machine
- Description string
- The description of the template.
- Disks
[]Virtual
Router Instance Disk Args - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- Graphics
Virtual
Router Instance Graphics Args - See Graphics parameters below for details.
- Group string
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- Hard
Shutdown bool - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- Lock string
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory float64
- Amount of RAM assigned to the VM in MB.
- Name string
- The name of the virtual router instance.
- On
Disk stringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - Os
Virtual
Router Instance Os Args - See OS parameters below for details.
- Pending bool
- Pending state during VM creation. Defaults to
false
. - Permissions string
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Raw Args - Low-level hypervisor tuning
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule.
- map[string]string
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Template
Sections []VirtualRouter Instance Template Section Args - Add custom section to the resource
- Timeout float64
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- Timeouts
Virtual
Router Instance Timeouts Args - Vcpu float64
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router stringInstance Id - ID of the virtual router instance.
- Vmgroup
Virtual
Router Instance Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- virtual
Router DoubleId - The ID of the parent virtual router resource.
- context Map<String,String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Double
- Amount of CPU shares assigned to the VM.
- cpumodel
Virtual
Router Instance Cpumodel - Definition of CPU Model type for the Virtual Machine
- description String
- The description of the template.
- disks
List<Virtual
Router Instance Disk> - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- graphics
Virtual
Router Instance Graphics - See Graphics parameters below for details.
- group String
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard
Shutdown Boolean - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lock String
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Double
- Amount of RAM assigned to the VM in MB.
- name String
- The name of the virtual router instance.
- on
Disk StringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os
Virtual
Router Instance Os - See OS parameters below for details.
- pending Boolean
- Pending state during VM creation. Defaults to
false
. - permissions String
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Raw - Low-level hypervisor tuning
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule.
- Map<String,String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Sections List<VirtualRouter Instance Template Section> - Add custom section to the resource
- timeout Double
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts
Virtual
Router Instance Timeouts - vcpu Double
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router StringInstance Id - ID of the virtual router instance.
- vmgroup
Virtual
Router Instance Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- virtual
Router numberId - The ID of the parent virtual router resource.
- context {[key: string]: string}
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu number
- Amount of CPU shares assigned to the VM.
- cpumodel
Virtual
Router Instance Cpumodel - Definition of CPU Model type for the Virtual Machine
- description string
- The description of the template.
- disks
Virtual
Router Instance Disk[] - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- graphics
Virtual
Router Instance Graphics - See Graphics parameters below for details.
- group string
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard
Shutdown boolean - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lock string
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory number
- Amount of RAM assigned to the VM in MB.
- name string
- The name of the virtual router instance.
- on
Disk stringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os
Virtual
Router Instance Os - See OS parameters below for details.
- pending boolean
- Pending state during VM creation. Defaults to
false
. - permissions string
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Raw - Low-level hypervisor tuning
- sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements string - Scheduling requirements to deploy the resource following specific rule.
- {[key: string]: string}
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Sections VirtualRouter Instance Template Section[] - Add custom section to the resource
- timeout number
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts
Virtual
Router Instance Timeouts - vcpu number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router stringInstance Id - ID of the virtual router instance.
- vmgroup
Virtual
Router Instance Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- virtual_
router_ floatid - The ID of the parent virtual router resource.
- context Mapping[str, str]
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu float
- Amount of CPU shares assigned to the VM.
- cpumodel
Virtual
Router Instance Cpumodel Args - Definition of CPU Model type for the Virtual Machine
- description str
- The description of the template.
- disks
Sequence[Virtual
Router Instance Disk Args] - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- graphics
Virtual
Router Instance Graphics Args - See Graphics parameters below for details.
- group str
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard_
shutdown bool - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lock str
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory float
- Amount of RAM assigned to the VM in MB.
- name str
- The name of the virtual router instance.
- on_
disk_ strchange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os
Virtual
Router Instance Os Args - See OS parameters below for details.
- pending bool
- Pending state during VM creation. Defaults to
false
. - permissions str
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Raw Args - Low-level hypervisor tuning
- sched_
ds_ strrequirements - Storage placement requirements to deploy the resource following specific rule.
- sched_
requirements str - Scheduling requirements to deploy the resource following specific rule.
- Mapping[str, str]
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template_
sections Sequence[VirtualRouter Instance Template Section Args] - Add custom section to the resource
- timeout float
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts
Virtual
Router Instance Timeouts Args - vcpu float
- Number of virtual CPUs assigned to the virtual machine
- virtual_
router_ strinstance_ id - ID of the virtual router instance.
- vmgroup
Virtual
Router Instance Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- virtual
Router NumberId - The ID of the parent virtual router resource.
- context Map<String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Number
- Amount of CPU shares assigned to the VM.
- cpumodel Property Map
- Definition of CPU Model type for the Virtual Machine
- description String
- The description of the template.
- disks List<Property Map>
- Can be specified multiple times to attach several disks. See Disk parameters below for details.
- graphics Property Map
- See Graphics parameters below for details.
- group String
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard
Shutdown Boolean - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lock String
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Number
- Amount of RAM assigned to the VM in MB.
- name String
- The name of the virtual router instance.
- on
Disk StringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os Property Map
- See OS parameters below for details.
- pending Boolean
- Pending state during VM creation. Defaults to
false
. - permissions String
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw Property Map
- Low-level hypervisor tuning
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule.
- Map<String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Sections List<Property Map> - Add custom section to the resource
- timeout Number
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts Property Map
- vcpu Number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router StringInstance Id - ID of the virtual router instance.
- vmgroup Property Map
- See VM group parameters below for details. Changing this argument triggers a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualRouterInstance resource produces the following output properties:
- Dictionary<string, string>
- Default tags defined in the provider configuration.
- Gid double
- Group ID which owns the virtual router instance.
- Gname string
- Group Name which owns the virtual router instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lcmstate double
- LCM State of the virtual router instance.
- State double
- State of the virtual router instance.
- Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Template
Disks List<VirtualRouter Instance Template Disk> - this contains the template disks description.
- Template
Section Dictionary<string, string>Names - When
template_id
was set this keeps the template section names only. - Dictionary<string, string>
- When
template_id
was set this keeps the template tags. - Uid double
- User ID whom owns the virtual router instance.
- Uname string
- User Name whom owns the virtual router instance.
- map[string]string
- Default tags defined in the provider configuration.
- Gid float64
- Group ID which owns the virtual router instance.
- Gname string
- Group Name which owns the virtual router instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lcmstate float64
- LCM State of the virtual router instance.
- State float64
- State of the virtual router instance.
- map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Template
Disks []VirtualRouter Instance Template Disk - this contains the template disks description.
- Template
Section map[string]stringNames - When
template_id
was set this keeps the template section names only. - map[string]string
- When
template_id
was set this keeps the template tags. - Uid float64
- User ID whom owns the virtual router instance.
- Uname string
- User Name whom owns the virtual router instance.
- Map<String,String>
- Default tags defined in the provider configuration.
- gid Double
- Group ID which owns the virtual router instance.
- gname String
- Group Name which owns the virtual router instance.
- id String
- The provider-assigned unique ID for this managed resource.
- lcmstate Double
- LCM State of the virtual router instance.
- state Double
- State of the virtual router instance.
- Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - template
Disks List<VirtualRouter Instance Template Disk> - this contains the template disks description.
- template
Section Map<String,String>Names - When
template_id
was set this keeps the template section names only. - Map<String,String>
- When
template_id
was set this keeps the template tags. - uid Double
- User ID whom owns the virtual router instance.
- uname String
- User Name whom owns the virtual router instance.
- {[key: string]: string}
- Default tags defined in the provider configuration.
- gid number
- Group ID which owns the virtual router instance.
- gname string
- Group Name which owns the virtual router instance.
- id string
- The provider-assigned unique ID for this managed resource.
- lcmstate number
- LCM State of the virtual router instance.
- state number
- State of the virtual router instance.
- {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - template
Disks VirtualRouter Instance Template Disk[] - this contains the template disks description.
- template
Section {[key: string]: string}Names - When
template_id
was set this keeps the template section names only. - {[key: string]: string}
- When
template_id
was set this keeps the template tags. - uid number
- User ID whom owns the virtual router instance.
- uname string
- User Name whom owns the virtual router instance.
- Mapping[str, str]
- Default tags defined in the provider configuration.
- gid float
- Group ID which owns the virtual router instance.
- gname str
- Group Name which owns the virtual router instance.
- id str
- The provider-assigned unique ID for this managed resource.
- lcmstate float
- LCM State of the virtual router instance.
- state float
- State of the virtual router instance.
- Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - template_
disks Sequence[VirtualRouter Instance Template Disk] - this contains the template disks description.
- template_
section_ Mapping[str, str]names - When
template_id
was set this keeps the template section names only. - Mapping[str, str]
- When
template_id
was set this keeps the template tags. - uid float
- User ID whom owns the virtual router instance.
- uname str
- User Name whom owns the virtual router instance.
- Map<String>
- Default tags defined in the provider configuration.
- gid Number
- Group ID which owns the virtual router instance.
- gname String
- Group Name which owns the virtual router instance.
- id String
- The provider-assigned unique ID for this managed resource.
- lcmstate Number
- LCM State of the virtual router instance.
- state Number
- State of the virtual router instance.
- Map<String>
- Result of the applied
default_tags
and then resourcetags
. - template
Disks List<Property Map> - this contains the template disks description.
- template
Section Map<String>Names - When
template_id
was set this keeps the template section names only. - Map<String>
- When
template_id
was set this keeps the template tags. - uid Number
- User ID whom owns the virtual router instance.
- uname String
- User Name whom owns the virtual router instance.
Look up Existing VirtualRouterInstance Resource
Get an existing VirtualRouterInstance 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?: VirtualRouterInstanceState, opts?: CustomResourceOptions): VirtualRouterInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[Mapping[str, str]] = None,
cpu: Optional[float] = None,
cpumodel: Optional[VirtualRouterInstanceCpumodelArgs] = None,
default_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
disks: Optional[Sequence[VirtualRouterInstanceDiskArgs]] = None,
gid: Optional[float] = None,
gname: Optional[str] = None,
graphics: Optional[VirtualRouterInstanceGraphicsArgs] = None,
group: Optional[str] = None,
hard_shutdown: Optional[bool] = None,
lcmstate: Optional[float] = None,
lock: Optional[str] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
on_disk_change: Optional[str] = None,
os: Optional[VirtualRouterInstanceOsArgs] = None,
pending: Optional[bool] = None,
permissions: Optional[str] = None,
raw: Optional[VirtualRouterInstanceRawArgs] = None,
sched_ds_requirements: Optional[str] = None,
sched_requirements: Optional[str] = None,
state: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
template_disks: Optional[Sequence[VirtualRouterInstanceTemplateDiskArgs]] = None,
template_section_names: Optional[Mapping[str, str]] = None,
template_sections: Optional[Sequence[VirtualRouterInstanceTemplateSectionArgs]] = None,
template_tags: Optional[Mapping[str, str]] = None,
timeout: Optional[float] = None,
timeouts: Optional[VirtualRouterInstanceTimeoutsArgs] = None,
uid: Optional[float] = None,
uname: Optional[str] = None,
vcpu: Optional[float] = None,
virtual_router_id: Optional[float] = None,
virtual_router_instance_id: Optional[str] = None,
vmgroup: Optional[VirtualRouterInstanceVmgroupArgs] = None) -> VirtualRouterInstance
func GetVirtualRouterInstance(ctx *Context, name string, id IDInput, state *VirtualRouterInstanceState, opts ...ResourceOption) (*VirtualRouterInstance, error)
public static VirtualRouterInstance Get(string name, Input<string> id, VirtualRouterInstanceState? state, CustomResourceOptions? opts = null)
public static VirtualRouterInstance get(String name, Output<String> id, VirtualRouterInstanceState state, CustomResourceOptions options)
resources: _: type: opennebula:VirtualRouterInstance 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.
- Context Dictionary<string, string>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu double
- Amount of CPU shares assigned to the VM.
- Cpumodel
Virtual
Router Instance Cpumodel - Definition of CPU Model type for the Virtual Machine
- Dictionary<string, string>
- Default tags defined in the provider configuration.
- Description string
- The description of the template.
- Disks
List<Virtual
Router Instance Disk> - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- Gid double
- Group ID which owns the virtual router instance.
- Gname string
- Group Name which owns the virtual router instance.
- Graphics
Virtual
Router Instance Graphics - See Graphics parameters below for details.
- Group string
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- Hard
Shutdown bool - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- Lcmstate double
- LCM State of the virtual router instance.
- Lock string
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory double
- Amount of RAM assigned to the VM in MB.
- Name string
- The name of the virtual router instance.
- On
Disk stringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - Os
Virtual
Router Instance Os - See OS parameters below for details.
- Pending bool
- Pending state during VM creation. Defaults to
false
. - Permissions string
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Raw - Low-level hypervisor tuning
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule.
- State double
- State of the virtual router instance.
- Dictionary<string, string>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Template
Disks List<VirtualRouter Instance Template Disk> - this contains the template disks description.
- Template
Section Dictionary<string, string>Names - When
template_id
was set this keeps the template section names only. - Template
Sections List<VirtualRouter Instance Template Section> - Add custom section to the resource
- Dictionary<string, string>
- When
template_id
was set this keeps the template tags. - Timeout double
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- Timeouts
Virtual
Router Instance Timeouts - Uid double
- User ID whom owns the virtual router instance.
- Uname string
- User Name whom owns the virtual router instance.
- Vcpu double
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router doubleId - The ID of the parent virtual router resource.
- Virtual
Router stringInstance Id - ID of the virtual router instance.
- Vmgroup
Virtual
Router Instance Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- Context map[string]string
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu float64
- Amount of CPU shares assigned to the VM.
- Cpumodel
Virtual
Router Instance Cpumodel Args - Definition of CPU Model type for the Virtual Machine
- map[string]string
- Default tags defined in the provider configuration.
- Description string
- The description of the template.
- Disks
[]Virtual
Router Instance Disk Args - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- Gid float64
- Group ID which owns the virtual router instance.
- Gname string
- Group Name which owns the virtual router instance.
- Graphics
Virtual
Router Instance Graphics Args - See Graphics parameters below for details.
- Group string
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- Hard
Shutdown bool - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- Lcmstate float64
- LCM State of the virtual router instance.
- Lock string
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory float64
- Amount of RAM assigned to the VM in MB.
- Name string
- The name of the virtual router instance.
- On
Disk stringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - Os
Virtual
Router Instance Os Args - See OS parameters below for details.
- Pending bool
- Pending state during VM creation. Defaults to
false
. - Permissions string
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Raw Args - Low-level hypervisor tuning
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule.
- State float64
- State of the virtual router instance.
- map[string]string
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Template
Disks []VirtualRouter Instance Template Disk Args - this contains the template disks description.
- Template
Section map[string]stringNames - When
template_id
was set this keeps the template section names only. - Template
Sections []VirtualRouter Instance Template Section Args - Add custom section to the resource
- map[string]string
- When
template_id
was set this keeps the template tags. - Timeout float64
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- Timeouts
Virtual
Router Instance Timeouts Args - Uid float64
- User ID whom owns the virtual router instance.
- Uname string
- User Name whom owns the virtual router instance.
- Vcpu float64
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router float64Id - The ID of the parent virtual router resource.
- Virtual
Router stringInstance Id - ID of the virtual router instance.
- Vmgroup
Virtual
Router Instance Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Map<String,String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Double
- Amount of CPU shares assigned to the VM.
- cpumodel
Virtual
Router Instance Cpumodel - Definition of CPU Model type for the Virtual Machine
- Map<String,String>
- Default tags defined in the provider configuration.
- description String
- The description of the template.
- disks
List<Virtual
Router Instance Disk> - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- gid Double
- Group ID which owns the virtual router instance.
- gname String
- Group Name which owns the virtual router instance.
- graphics
Virtual
Router Instance Graphics - See Graphics parameters below for details.
- group String
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard
Shutdown Boolean - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lcmstate Double
- LCM State of the virtual router instance.
- lock String
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Double
- Amount of RAM assigned to the VM in MB.
- name String
- The name of the virtual router instance.
- on
Disk StringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os
Virtual
Router Instance Os - See OS parameters below for details.
- pending Boolean
- Pending state during VM creation. Defaults to
false
. - permissions String
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Raw - Low-level hypervisor tuning
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule.
- state Double
- State of the virtual router instance.
- Map<String,String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - template
Disks List<VirtualRouter Instance Template Disk> - this contains the template disks description.
- template
Section Map<String,String>Names - When
template_id
was set this keeps the template section names only. - template
Sections List<VirtualRouter Instance Template Section> - Add custom section to the resource
- Map<String,String>
- When
template_id
was set this keeps the template tags. - timeout Double
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts
Virtual
Router Instance Timeouts - uid Double
- User ID whom owns the virtual router instance.
- uname String
- User Name whom owns the virtual router instance.
- vcpu Double
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router DoubleId - The ID of the parent virtual router resource.
- virtual
Router StringInstance Id - ID of the virtual router instance.
- vmgroup
Virtual
Router Instance Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- context {[key: string]: string}
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu number
- Amount of CPU shares assigned to the VM.
- cpumodel
Virtual
Router Instance Cpumodel - Definition of CPU Model type for the Virtual Machine
- {[key: string]: string}
- Default tags defined in the provider configuration.
- description string
- The description of the template.
- disks
Virtual
Router Instance Disk[] - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- gid number
- Group ID which owns the virtual router instance.
- gname string
- Group Name which owns the virtual router instance.
- graphics
Virtual
Router Instance Graphics - See Graphics parameters below for details.
- group string
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard
Shutdown boolean - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lcmstate number
- LCM State of the virtual router instance.
- lock string
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory number
- Amount of RAM assigned to the VM in MB.
- name string
- The name of the virtual router instance.
- on
Disk stringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os
Virtual
Router Instance Os - See OS parameters below for details.
- pending boolean
- Pending state during VM creation. Defaults to
false
. - permissions string
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Raw - Low-level hypervisor tuning
- sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements string - Scheduling requirements to deploy the resource following specific rule.
- state number
- State of the virtual router instance.
- {[key: string]: string}
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - template
Disks VirtualRouter Instance Template Disk[] - this contains the template disks description.
- template
Section {[key: string]: string}Names - When
template_id
was set this keeps the template section names only. - template
Sections VirtualRouter Instance Template Section[] - Add custom section to the resource
- {[key: string]: string}
- When
template_id
was set this keeps the template tags. - timeout number
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts
Virtual
Router Instance Timeouts - uid number
- User ID whom owns the virtual router instance.
- uname string
- User Name whom owns the virtual router instance.
- vcpu number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router numberId - The ID of the parent virtual router resource.
- virtual
Router stringInstance Id - ID of the virtual router instance.
- vmgroup
Virtual
Router Instance Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Mapping[str, str]
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu float
- Amount of CPU shares assigned to the VM.
- cpumodel
Virtual
Router Instance Cpumodel Args - Definition of CPU Model type for the Virtual Machine
- Mapping[str, str]
- Default tags defined in the provider configuration.
- description str
- The description of the template.
- disks
Sequence[Virtual
Router Instance Disk Args] - Can be specified multiple times to attach several disks. See Disk parameters below for details.
- gid float
- Group ID which owns the virtual router instance.
- gname str
- Group Name which owns the virtual router instance.
- graphics
Virtual
Router Instance Graphics Args - See Graphics parameters below for details.
- group str
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard_
shutdown bool - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lcmstate float
- LCM State of the virtual router instance.
- lock str
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory float
- Amount of RAM assigned to the VM in MB.
- name str
- The name of the virtual router instance.
- on_
disk_ strchange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os
Virtual
Router Instance Os Args - See OS parameters below for details.
- pending bool
- Pending state during VM creation. Defaults to
false
. - permissions str
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Raw Args - Low-level hypervisor tuning
- sched_
ds_ strrequirements - Storage placement requirements to deploy the resource following specific rule.
- sched_
requirements str - Scheduling requirements to deploy the resource following specific rule.
- state float
- State of the virtual router instance.
- Mapping[str, str]
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - template_
disks Sequence[VirtualRouter Instance Template Disk Args] - this contains the template disks description.
- template_
section_ Mapping[str, str]names - When
template_id
was set this keeps the template section names only. - template_
sections Sequence[VirtualRouter Instance Template Section Args] - Add custom section to the resource
- Mapping[str, str]
- When
template_id
was set this keeps the template tags. - timeout float
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts
Virtual
Router Instance Timeouts Args - uid float
- User ID whom owns the virtual router instance.
- uname str
- User Name whom owns the virtual router instance.
- vcpu float
- Number of virtual CPUs assigned to the virtual machine
- virtual_
router_ floatid - The ID of the parent virtual router resource.
- virtual_
router_ strinstance_ id - ID of the virtual router instance.
- vmgroup
Virtual
Router Instance Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Map<String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Number
- Amount of CPU shares assigned to the VM.
- cpumodel Property Map
- Definition of CPU Model type for the Virtual Machine
- Map<String>
- Default tags defined in the provider configuration.
- description String
- The description of the template.
- disks List<Property Map>
- Can be specified multiple times to attach several disks. See Disk parameters below for details.
- gid Number
- Group ID which owns the virtual router instance.
- gname String
- Group Name which owns the virtual router instance.
- graphics Property Map
- See Graphics parameters below for details.
- group String
- Name of the group which owns the virtual router instance. Defaults to the caller primary group.
- hard
Shutdown Boolean - Immediately poweroff/terminate/reboot/undeploy the VM. (default: false)
- lcmstate Number
- LCM State of the virtual router instance.
- lock String
- Lock the VM with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Number
- Amount of RAM assigned to the VM in MB.
- name String
- The name of the virtual router instance.
- on
Disk StringChange - Select the behavior for changing disk images. Supported values:
RECREATE
orSWAP
(default).RECREATE
forces recreation of the vm andSWAP
adopts the standard behavior of hot-swapping the disks. NOTE: This property does not affect the behavior of adding new disks. - os Property Map
- See OS parameters below for details.
- pending Boolean
- Pending state during VM creation. Defaults to
false
. - permissions String
- Permissions applied on virtual router instance. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw Property Map
- Low-level hypervisor tuning
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule.
- state Number
- State of the virtual router instance.
- Map<String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Map<String>
- Result of the applied
default_tags
and then resourcetags
. - template
Disks List<Property Map> - this contains the template disks description.
- template
Section Map<String>Names - When
template_id
was set this keeps the template section names only. - template
Sections List<Property Map> - Add custom section to the resource
- Map<String>
- When
template_id
was set this keeps the template tags. - timeout Number
- Timeout (in minutes) within resource should be available. Default: 3 minutes
- timeouts Property Map
- uid Number
- User ID whom owns the virtual router instance.
- uname String
- User Name whom owns the virtual router instance.
- vcpu Number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router NumberId - The ID of the parent virtual router resource.
- virtual
Router StringInstance Id - ID of the virtual router instance.
- vmgroup Property Map
- See VM group parameters below for details. Changing this argument triggers a new resource.
Supporting Types
VirtualRouterInstanceCpumodel, VirtualRouterInstanceCpumodelArgs
- Model string
- Model string
- model String
- model string
- model str
- model String
VirtualRouterInstanceDisk, VirtualRouterInstanceDiskArgs
- Cache string
- Computed
Cache string - Computed
Dev stringPrefix - Computed
Discard string - Computed
Driver string - OpenNebula image driver.
- Computed
Io string - Computed
Size double - Size (in MB) of the image attached to the virtual router instance. Not possible to change a cloned image size.
- Computed
Target string - Target name device on the virtual router instance. Depends of the image
dev_prefix
. - Computed
Volatile stringFormat - Format of the Image:
raw
orqcow2
. - Dev
Prefix string - Discard string
- Disk
Id double - disk attachment identifier
- Driver string
- OpenNebula image driver.
- Image
Id double - ID of the image to attach to the virtual router instance. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with
volatile_type
andvolatile_format
. - Io string
- Size double
- Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
- Target string
- Target name device on the virtual router instance. Depends of the image
dev_prefix
. - Volatile
Format string Format of the Image:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
A disk update will be triggered in adding or removing a
disk
section, or by a modification of any of these parameters:image_id
,target
,driver
- Volatile
Type string - Type of the disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- Cache string
- Computed
Cache string - Computed
Dev stringPrefix - Computed
Discard string - Computed
Driver string - OpenNebula image driver.
- Computed
Io string - Computed
Size float64 - Size (in MB) of the image attached to the virtual router instance. Not possible to change a cloned image size.
- Computed
Target string - Target name device on the virtual router instance. Depends of the image
dev_prefix
. - Computed
Volatile stringFormat - Format of the Image:
raw
orqcow2
. - Dev
Prefix string - Discard string
- Disk
Id float64 - disk attachment identifier
- Driver string
- OpenNebula image driver.
- Image
Id float64 - ID of the image to attach to the virtual router instance. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with
volatile_type
andvolatile_format
. - Io string
- Size float64
- Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
- Target string
- Target name device on the virtual router instance. Depends of the image
dev_prefix
. - Volatile
Format string Format of the Image:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
A disk update will be triggered in adding or removing a
disk
section, or by a modification of any of these parameters:image_id
,target
,driver
- Volatile
Type string - Type of the disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache String
- computed
Cache String - computed
Dev StringPrefix - computed
Discard String - computed
Driver String - OpenNebula image driver.
- computed
Io String - computed
Size Double - Size (in MB) of the image attached to the virtual router instance. Not possible to change a cloned image size.
- computed
Target String - Target name device on the virtual router instance. Depends of the image
dev_prefix
. - computed
Volatile StringFormat - Format of the Image:
raw
orqcow2
. - dev
Prefix String - discard String
- disk
Id Double - disk attachment identifier
- driver String
- OpenNebula image driver.
- image
Id Double - ID of the image to attach to the virtual router instance. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with
volatile_type
andvolatile_format
. - io String
- size Double
- Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
- target String
- Target name device on the virtual router instance. Depends of the image
dev_prefix
. - volatile
Format String Format of the Image:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
A disk update will be triggered in adding or removing a
disk
section, or by a modification of any of these parameters:image_id
,target
,driver
- volatile
Type String - Type of the disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache string
- computed
Cache string - computed
Dev stringPrefix - computed
Discard string - computed
Driver string - OpenNebula image driver.
- computed
Io string - computed
Size number - Size (in MB) of the image attached to the virtual router instance. Not possible to change a cloned image size.
- computed
Target string - Target name device on the virtual router instance. Depends of the image
dev_prefix
. - computed
Volatile stringFormat - Format of the Image:
raw
orqcow2
. - dev
Prefix string - discard string
- disk
Id number - disk attachment identifier
- driver string
- OpenNebula image driver.
- image
Id number - ID of the image to attach to the virtual router instance. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with
volatile_type
andvolatile_format
. - io string
- size number
- Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
- target string
- Target name device on the virtual router instance. Depends of the image
dev_prefix
. - volatile
Format string Format of the Image:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
A disk update will be triggered in adding or removing a
disk
section, or by a modification of any of these parameters:image_id
,target
,driver
- volatile
Type string - Type of the disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache str
- computed_
cache str - computed_
dev_ strprefix - computed_
discard str - computed_
driver str - OpenNebula image driver.
- computed_
io str - computed_
size float - Size (in MB) of the image attached to the virtual router instance. Not possible to change a cloned image size.
- computed_
target str - Target name device on the virtual router instance. Depends of the image
dev_prefix
. - computed_
volatile_ strformat - Format of the Image:
raw
orqcow2
. - dev_
prefix str - discard str
- disk_
id float - disk attachment identifier
- driver str
- OpenNebula image driver.
- image_
id float - ID of the image to attach to the virtual router instance. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with
volatile_type
andvolatile_format
. - io str
- size float
- Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
- target str
- Target name device on the virtual router instance. Depends of the image
dev_prefix
. - volatile_
format str Format of the Image:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
A disk update will be triggered in adding or removing a
disk
section, or by a modification of any of these parameters:image_id
,target
,driver
- volatile_
type str - Type of the disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache String
- computed
Cache String - computed
Dev StringPrefix - computed
Discard String - computed
Driver String - OpenNebula image driver.
- computed
Io String - computed
Size Number - Size (in MB) of the image attached to the virtual router instance. Not possible to change a cloned image size.
- computed
Target String - Target name device on the virtual router instance. Depends of the image
dev_prefix
. - computed
Volatile StringFormat - Format of the Image:
raw
orqcow2
. - dev
Prefix String - discard String
- disk
Id Number - disk attachment identifier
- driver String
- OpenNebula image driver.
- image
Id Number - ID of the image to attach to the virtual router instance. Defaults to -1 if not set: this skip Image attchment to the VM. Conflicts with
volatile_type
andvolatile_format
. - io String
- size Number
- Size (in MB) of the image. If set, it will resize the image disk to the targeted size. The size must be greater than the current one.
- target String
- Target name device on the virtual router instance. Depends of the image
dev_prefix
. - volatile
Format String Format of the Image:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
A disk update will be triggered in adding or removing a
disk
section, or by a modification of any of these parameters:image_id
,target
,driver
- volatile
Type String - Type of the disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
VirtualRouterInstanceGraphics, VirtualRouterInstanceGraphicsArgs
VirtualRouterInstanceOs, VirtualRouterInstanceOsArgs
VirtualRouterInstanceRaw, VirtualRouterInstanceRawArgs
VirtualRouterInstanceTemplateDisk, VirtualRouterInstanceTemplateDiskArgs
- Cache string
- Dev
Prefix string - Discard string
- Driver string
- OpenNebula image driver.
- Image
Id double - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - Io string
- Size double
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- Target string
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - Volatile
Format string Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- Volatile
Type string - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- Cache string
- Dev
Prefix string - Discard string
- Driver string
- OpenNebula image driver.
- Image
Id float64 - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - Io string
- Size float64
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- Target string
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - Volatile
Format string Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- Volatile
Type string - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache String
- dev
Prefix String - discard String
- driver String
- OpenNebula image driver.
- image
Id Double - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io String
- size Double
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target String
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile
Format String Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile
Type String - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache string
- dev
Prefix string - discard string
- driver string
- OpenNebula image driver.
- image
Id number - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io string
- size number
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target string
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile
Format string Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile
Type string - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache str
- dev_
prefix str - discard str
- driver str
- OpenNebula image driver.
- image_
id float - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io str
- size float
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target str
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile_
format str Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile_
type str - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache String
- dev
Prefix String - discard String
- driver String
- OpenNebula image driver.
- image
Id Number - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io String
- size Number
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target String
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile
Format String Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile
Type String - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
VirtualRouterInstanceTemplateSection, VirtualRouterInstanceTemplateSectionArgs
VirtualRouterInstanceTimeouts, VirtualRouterInstanceTimeoutsArgs
VirtualRouterInstanceVmgroup, VirtualRouterInstanceVmgroupArgs
- role str
- role of the VM group to use.
- vmgroup_
id float - ID of the VM group to use.
Import
opennebula_virtual_router_instance
can be imported using its ID:
$ pulumi import opennebula:index/virtualRouterInstance:VirtualRouterInstance example 123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opennebula opennebula/terraform-provider-opennebula
- License
- Notes
- This Pulumi package is based on the
opennebula
Terraform Provider.