opennebula.VirtualRouterInstanceTemplate
Explore with Pulumi AI
Provides an OpenNebula virtual router instance template resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opennebula from "@pulumi/opennebula";
const example = new opennebula.VirtualRouterInstanceTemplate("example", {
context: {
dns_hostname: "yes",
network: "YES",
},
cpu: 0.5,
graphics: {
keymap: "en-us",
listen: "0.0.0.0",
type: "VNC",
},
group: "oneadmin",
memory: 512,
os: {
arch: "x86_64",
boot: "",
},
permissions: "642",
tags: {
environment: "example",
},
templateSections: [{
elements: {
key1: "value1",
},
name: "example",
}],
vcpu: 1,
});
import pulumi
import pulumi_opennebula as opennebula
example = opennebula.VirtualRouterInstanceTemplate("example",
context={
"dns_hostname": "yes",
"network": "YES",
},
cpu=0.5,
graphics={
"keymap": "en-us",
"listen": "0.0.0.0",
"type": "VNC",
},
group="oneadmin",
memory=512,
os={
"arch": "x86_64",
"boot": "",
},
permissions="642",
tags={
"environment": "example",
},
template_sections=[{
"elements": {
"key1": "value1",
},
"name": "example",
}],
vcpu=1)
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 {
_, err := opennebula.NewVirtualRouterInstanceTemplate(ctx, "example", &opennebula.VirtualRouterInstanceTemplateArgs{
Context: pulumi.StringMap{
"dns_hostname": pulumi.String("yes"),
"network": pulumi.String("YES"),
},
Cpu: pulumi.Float64(0.5),
Graphics: &opennebula.VirtualRouterInstanceTemplateGraphicsArgs{
Keymap: pulumi.String("en-us"),
Listen: pulumi.String("0.0.0.0"),
Type: pulumi.String("VNC"),
},
Group: pulumi.String("oneadmin"),
Memory: pulumi.Float64(512),
Os: &opennebula.VirtualRouterInstanceTemplateOsArgs{
Arch: pulumi.String("x86_64"),
Boot: pulumi.String(""),
},
Permissions: pulumi.String("642"),
Tags: pulumi.StringMap{
"environment": pulumi.String("example"),
},
TemplateSections: opennebula.VirtualRouterInstanceTemplateTemplateSectionArray{
&opennebula.VirtualRouterInstanceTemplateTemplateSectionArgs{
Elements: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
Name: pulumi.String("example"),
},
},
Vcpu: pulumi.Float64(1),
})
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 example = new Opennebula.VirtualRouterInstanceTemplate("example", new()
{
Context =
{
{ "dns_hostname", "yes" },
{ "network", "YES" },
},
Cpu = 0.5,
Graphics = new Opennebula.Inputs.VirtualRouterInstanceTemplateGraphicsArgs
{
Keymap = "en-us",
Listen = "0.0.0.0",
Type = "VNC",
},
Group = "oneadmin",
Memory = 512,
Os = new Opennebula.Inputs.VirtualRouterInstanceTemplateOsArgs
{
Arch = "x86_64",
Boot = "",
},
Permissions = "642",
Tags =
{
{ "environment", "example" },
},
TemplateSections = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceTemplateTemplateSectionArgs
{
Elements =
{
{ "key1", "value1" },
},
Name = "example",
},
},
Vcpu = 1,
});
});
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.inputs.VirtualRouterInstanceTemplateTemplateSectionArgs;
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 example = new VirtualRouterInstanceTemplate("example", VirtualRouterInstanceTemplateArgs.builder()
.context(Map.ofEntries(
Map.entry("dns_hostname", "yes"),
Map.entry("network", "YES")
))
.cpu("0.5")
.graphics(VirtualRouterInstanceTemplateGraphicsArgs.builder()
.keymap("en-us")
.listen("0.0.0.0")
.type("VNC")
.build())
.group("oneadmin")
.memory("512")
.os(VirtualRouterInstanceTemplateOsArgs.builder()
.arch("x86_64")
.boot("")
.build())
.permissions("642")
.tags(Map.of("environment", "example"))
.templateSections(VirtualRouterInstanceTemplateTemplateSectionArgs.builder()
.elements(Map.of("key1", "value1"))
.name("example")
.build())
.vcpu("1")
.build());
}
}
resources:
example:
type: opennebula:VirtualRouterInstanceTemplate
properties:
context:
dns_hostname: yes
network: YES
cpu: '0.5'
graphics:
keymap: en-us
listen: 0.0.0.0
type: VNC
group: oneadmin
memory: '512'
os:
arch: x86_64
boot: ""
permissions: '642'
tags:
environment: example
templateSections:
- elements:
key1: value1
name: example
vcpu: '1'
Create VirtualRouterInstanceTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualRouterInstanceTemplate(name: string, args?: VirtualRouterInstanceTemplateArgs, opts?: CustomResourceOptions);
@overload
def VirtualRouterInstanceTemplate(resource_name: str,
args: Optional[VirtualRouterInstanceTemplateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualRouterInstanceTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
context: Optional[Mapping[str, str]] = None,
cpu: Optional[float] = None,
cpumodel: Optional[VirtualRouterInstanceTemplateCpumodelArgs] = None,
description: Optional[str] = None,
disks: Optional[Sequence[VirtualRouterInstanceTemplateDiskArgs]] = None,
features: Optional[Sequence[VirtualRouterInstanceTemplateFeatureArgs]] = None,
graphics: Optional[VirtualRouterInstanceTemplateGraphicsArgs] = None,
group: Optional[str] = None,
lock: Optional[str] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
os: Optional[VirtualRouterInstanceTemplateOsArgs] = None,
permissions: Optional[str] = None,
raw: Optional[VirtualRouterInstanceTemplateRawArgs] = None,
sched_ds_requirements: Optional[str] = None,
sched_requirements: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template_sections: Optional[Sequence[VirtualRouterInstanceTemplateTemplateSectionArgs]] = None,
user_inputs: Optional[Mapping[str, str]] = None,
vcpu: Optional[float] = None,
virtual_router_instance_template_id: Optional[str] = None,
vmgroup: Optional[VirtualRouterInstanceTemplateVmgroupArgs] = None)
func NewVirtualRouterInstanceTemplate(ctx *Context, name string, args *VirtualRouterInstanceTemplateArgs, opts ...ResourceOption) (*VirtualRouterInstanceTemplate, error)
public VirtualRouterInstanceTemplate(string name, VirtualRouterInstanceTemplateArgs? args = null, CustomResourceOptions? opts = null)
public VirtualRouterInstanceTemplate(String name, VirtualRouterInstanceTemplateArgs args)
public VirtualRouterInstanceTemplate(String name, VirtualRouterInstanceTemplateArgs args, CustomResourceOptions options)
type: opennebula:VirtualRouterInstanceTemplate
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 VirtualRouterInstanceTemplateArgs
- 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 VirtualRouterInstanceTemplateArgs
- 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 VirtualRouterInstanceTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualRouterInstanceTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualRouterInstanceTemplateArgs
- 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 virtualRouterInstanceTemplateResource = new Opennebula.VirtualRouterInstanceTemplate("virtualRouterInstanceTemplateResource", new()
{
Context =
{
{ "string", "string" },
},
Cpu = 0,
Cpumodel = new Opennebula.Inputs.VirtualRouterInstanceTemplateCpumodelArgs
{
Model = "string",
},
Description = "string",
Disks = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceTemplateDiskArgs
{
Cache = "string",
DevPrefix = "string",
Discard = "string",
Driver = "string",
ImageId = 0,
Io = "string",
Size = 0,
Target = "string",
VolatileFormat = "string",
VolatileType = "string",
},
},
Features = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceTemplateFeatureArgs
{
Acpi = "string",
Apic = "string",
GuestAgent = "string",
Hyperv = "string",
Iothreads = "string",
Localtime = "string",
Pae = "string",
VirtioScsiQueues = "string",
},
},
Graphics = new Opennebula.Inputs.VirtualRouterInstanceTemplateGraphicsArgs
{
Listen = "string",
Type = "string",
Keymap = "string",
Passwd = "string",
Port = "string",
RandomPasswd = false,
},
Group = "string",
Lock = "string",
Memory = 0,
Name = "string",
Os = new Opennebula.Inputs.VirtualRouterInstanceTemplateOsArgs
{
Arch = "string",
Boot = "string",
},
Permissions = "string",
Raw = new Opennebula.Inputs.VirtualRouterInstanceTemplateRawArgs
{
Data = "string",
Type = "string",
},
SchedDsRequirements = "string",
SchedRequirements = "string",
Tags =
{
{ "string", "string" },
},
TemplateSections = new[]
{
new Opennebula.Inputs.VirtualRouterInstanceTemplateTemplateSectionArgs
{
Name = "string",
Elements =
{
{ "string", "string" },
},
},
},
UserInputs =
{
{ "string", "string" },
},
Vcpu = 0,
VirtualRouterInstanceTemplateId = "string",
Vmgroup = new Opennebula.Inputs.VirtualRouterInstanceTemplateVmgroupArgs
{
Role = "string",
VmgroupId = 0,
},
});
example, err := opennebula.NewVirtualRouterInstanceTemplate(ctx, "virtualRouterInstanceTemplateResource", &opennebula.VirtualRouterInstanceTemplateArgs{
Context: pulumi.StringMap{
"string": pulumi.String("string"),
},
Cpu: pulumi.Float64(0),
Cpumodel: &.VirtualRouterInstanceTemplateCpumodelArgs{
Model: pulumi.String("string"),
},
Description: pulumi.String("string"),
Disks: .VirtualRouterInstanceTemplateDiskArray{
&.VirtualRouterInstanceTemplateDiskArgs{
Cache: pulumi.String("string"),
DevPrefix: pulumi.String("string"),
Discard: pulumi.String("string"),
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"),
},
},
Features: .VirtualRouterInstanceTemplateFeatureArray{
&.VirtualRouterInstanceTemplateFeatureArgs{
Acpi: pulumi.String("string"),
Apic: pulumi.String("string"),
GuestAgent: pulumi.String("string"),
Hyperv: pulumi.String("string"),
Iothreads: pulumi.String("string"),
Localtime: pulumi.String("string"),
Pae: pulumi.String("string"),
VirtioScsiQueues: pulumi.String("string"),
},
},
Graphics: &.VirtualRouterInstanceTemplateGraphicsArgs{
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"),
Lock: pulumi.String("string"),
Memory: pulumi.Float64(0),
Name: pulumi.String("string"),
Os: &.VirtualRouterInstanceTemplateOsArgs{
Arch: pulumi.String("string"),
Boot: pulumi.String("string"),
},
Permissions: pulumi.String("string"),
Raw: &.VirtualRouterInstanceTemplateRawArgs{
Data: pulumi.String("string"),
Type: pulumi.String("string"),
},
SchedDsRequirements: pulumi.String("string"),
SchedRequirements: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemplateSections: .VirtualRouterInstanceTemplateTemplateSectionArray{
&.VirtualRouterInstanceTemplateTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
UserInputs: pulumi.StringMap{
"string": pulumi.String("string"),
},
Vcpu: pulumi.Float64(0),
VirtualRouterInstanceTemplateId: pulumi.String("string"),
Vmgroup: &.VirtualRouterInstanceTemplateVmgroupArgs{
Role: pulumi.String("string"),
VmgroupId: pulumi.Float64(0),
},
})
var virtualRouterInstanceTemplateResource = new VirtualRouterInstanceTemplate("virtualRouterInstanceTemplateResource", VirtualRouterInstanceTemplateArgs.builder()
.context(Map.of("string", "string"))
.cpu(0)
.cpumodel(VirtualRouterInstanceTemplateCpumodelArgs.builder()
.model("string")
.build())
.description("string")
.disks(VirtualRouterInstanceTemplateDiskArgs.builder()
.cache("string")
.devPrefix("string")
.discard("string")
.driver("string")
.imageId(0)
.io("string")
.size(0)
.target("string")
.volatileFormat("string")
.volatileType("string")
.build())
.features(VirtualRouterInstanceTemplateFeatureArgs.builder()
.acpi("string")
.apic("string")
.guestAgent("string")
.hyperv("string")
.iothreads("string")
.localtime("string")
.pae("string")
.virtioScsiQueues("string")
.build())
.graphics(VirtualRouterInstanceTemplateGraphicsArgs.builder()
.listen("string")
.type("string")
.keymap("string")
.passwd("string")
.port("string")
.randomPasswd(false)
.build())
.group("string")
.lock("string")
.memory(0)
.name("string")
.os(VirtualRouterInstanceTemplateOsArgs.builder()
.arch("string")
.boot("string")
.build())
.permissions("string")
.raw(VirtualRouterInstanceTemplateRawArgs.builder()
.data("string")
.type("string")
.build())
.schedDsRequirements("string")
.schedRequirements("string")
.tags(Map.of("string", "string"))
.templateSections(VirtualRouterInstanceTemplateTemplateSectionArgs.builder()
.name("string")
.elements(Map.of("string", "string"))
.build())
.userInputs(Map.of("string", "string"))
.vcpu(0)
.virtualRouterInstanceTemplateId("string")
.vmgroup(VirtualRouterInstanceTemplateVmgroupArgs.builder()
.role("string")
.vmgroupId(0)
.build())
.build());
virtual_router_instance_template_resource = opennebula.VirtualRouterInstanceTemplate("virtualRouterInstanceTemplateResource",
context={
"string": "string",
},
cpu=0,
cpumodel={
"model": "string",
},
description="string",
disks=[{
"cache": "string",
"dev_prefix": "string",
"discard": "string",
"driver": "string",
"image_id": 0,
"io": "string",
"size": 0,
"target": "string",
"volatile_format": "string",
"volatile_type": "string",
}],
features=[{
"acpi": "string",
"apic": "string",
"guest_agent": "string",
"hyperv": "string",
"iothreads": "string",
"localtime": "string",
"pae": "string",
"virtio_scsi_queues": "string",
}],
graphics={
"listen": "string",
"type": "string",
"keymap": "string",
"passwd": "string",
"port": "string",
"random_passwd": False,
},
group="string",
lock="string",
memory=0,
name="string",
os={
"arch": "string",
"boot": "string",
},
permissions="string",
raw={
"data": "string",
"type": "string",
},
sched_ds_requirements="string",
sched_requirements="string",
tags={
"string": "string",
},
template_sections=[{
"name": "string",
"elements": {
"string": "string",
},
}],
user_inputs={
"string": "string",
},
vcpu=0,
virtual_router_instance_template_id="string",
vmgroup={
"role": "string",
"vmgroup_id": 0,
})
const virtualRouterInstanceTemplateResource = new opennebula.VirtualRouterInstanceTemplate("virtualRouterInstanceTemplateResource", {
context: {
string: "string",
},
cpu: 0,
cpumodel: {
model: "string",
},
description: "string",
disks: [{
cache: "string",
devPrefix: "string",
discard: "string",
driver: "string",
imageId: 0,
io: "string",
size: 0,
target: "string",
volatileFormat: "string",
volatileType: "string",
}],
features: [{
acpi: "string",
apic: "string",
guestAgent: "string",
hyperv: "string",
iothreads: "string",
localtime: "string",
pae: "string",
virtioScsiQueues: "string",
}],
graphics: {
listen: "string",
type: "string",
keymap: "string",
passwd: "string",
port: "string",
randomPasswd: false,
},
group: "string",
lock: "string",
memory: 0,
name: "string",
os: {
arch: "string",
boot: "string",
},
permissions: "string",
raw: {
data: "string",
type: "string",
},
schedDsRequirements: "string",
schedRequirements: "string",
tags: {
string: "string",
},
templateSections: [{
name: "string",
elements: {
string: "string",
},
}],
userInputs: {
string: "string",
},
vcpu: 0,
virtualRouterInstanceTemplateId: "string",
vmgroup: {
role: "string",
vmgroupId: 0,
},
});
type: opennebula:VirtualRouterInstanceTemplate
properties:
context:
string: string
cpu: 0
cpumodel:
model: string
description: string
disks:
- cache: string
devPrefix: string
discard: string
driver: string
imageId: 0
io: string
size: 0
target: string
volatileFormat: string
volatileType: string
features:
- acpi: string
apic: string
guestAgent: string
hyperv: string
iothreads: string
localtime: string
pae: string
virtioScsiQueues: string
graphics:
keymap: string
listen: string
passwd: string
port: string
randomPasswd: false
type: string
group: string
lock: string
memory: 0
name: string
os:
arch: string
boot: string
permissions: string
raw:
data: string
type: string
schedDsRequirements: string
schedRequirements: string
tags:
string: string
templateSections:
- elements:
string: string
name: string
userInputs:
string: string
vcpu: 0
virtualRouterInstanceTemplateId: string
vmgroup:
role: string
vmgroupId: 0
VirtualRouterInstanceTemplate 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 VirtualRouterInstanceTemplate resource accepts the following input properties:
- 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 Template Cpumodel - Definition of CPU Model type for the Virtual Machine
- Description string
- The description of the template.
- Disks
List<Virtual
Router Instance Template Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
List<Virtual
Router Instance Template Feature> - See Features parameters below for details.
- Graphics
Virtual
Router Instance Template Graphics - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template 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 machine template.
- Os
Virtual
Router Instance Template Os - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Template Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- 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 Template Section> - Allow to add a custom vector. See Template section parameters
- User
Inputs Dictionary<string, string> - Ask the user instantiating the template to define the values described.
- Vcpu double
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router stringInstance Template Id - ID of the template.
- Vmgroup
Virtual
Router Instance Template 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 Template Cpumodel Args - Definition of CPU Model type for the Virtual Machine
- Description string
- The description of the template.
- Disks
[]Virtual
Router Instance Template Disk Args - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
[]Virtual
Router Instance Template Feature Args - See Features parameters below for details.
- Graphics
Virtual
Router Instance Template Graphics Args - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template 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 machine template.
- Os
Virtual
Router Instance Template Os Args - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Template Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- 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 Template Section Args - Allow to add a custom vector. See Template section parameters
- User
Inputs map[string]string - Ask the user instantiating the template to define the values described.
- Vcpu float64
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router stringInstance Template Id - ID of the template.
- Vmgroup
Virtual
Router Instance Template 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 Template Cpumodel - Definition of CPU Model type for the Virtual Machine
- description String
- The description of the template.
- disks
List<Virtual
Router Instance Template Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
List<Virtual
Router Instance Template Feature> - See Features parameters below for details.
- graphics
Virtual
Router Instance Template Graphics - See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template 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 machine template.
- os
Virtual
Router Instance Template Os - See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Template Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- 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 Template Section> - Allow to add a custom vector. See Template section parameters
- user
Inputs Map<String,String> - Ask the user instantiating the template to define the values described.
- vcpu Double
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router StringInstance Template Id - ID of the template.
- vmgroup
Virtual
Router Instance Template 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 Template Cpumodel - Definition of CPU Model type for the Virtual Machine
- description string
- The description of the template.
- disks
Virtual
Router Instance Template Disk[] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Virtual
Router Instance Template Feature[] - See Features parameters below for details.
- graphics
Virtual
Router Instance Template Graphics - See Graphics parameters below for details.
- group string
- Name of the group which owns the template. Defaults to the caller primary group.
- lock string
- Lock the template 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 machine template.
- os
Virtual
Router Instance Template Os - See OS parameters below for details.
- permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Template Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- 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 Template Section[] - Allow to add a custom vector. See Template section parameters
- user
Inputs {[key: string]: string} - Ask the user instantiating the template to define the values described.
- vcpu number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router stringInstance Template Id - ID of the template.
- vmgroup
Virtual
Router Instance Template 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 Template Cpumodel Args - Definition of CPU Model type for the Virtual Machine
- description str
- The description of the template.
- disks
Sequence[Virtual
Router Instance Template Disk Args] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Sequence[Virtual
Router Instance Template Feature Args] - See Features parameters below for details.
- graphics
Virtual
Router Instance Template Graphics Args - See Graphics parameters below for details.
- group str
- Name of the group which owns the template. Defaults to the caller primary group.
- lock str
- Lock the template 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 machine template.
- os
Virtual
Router Instance Template Os Args - See OS parameters below for details.
- permissions str
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Template Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- 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 Template Section Args] - Allow to add a custom vector. See Template section parameters
- user_
inputs Mapping[str, str] - Ask the user instantiating the template to define the values described.
- vcpu float
- Number of virtual CPUs assigned to the virtual machine
- virtual_
router_ strinstance_ template_ id - ID of the template.
- vmgroup
Virtual
Router Instance Template 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
- description String
- The description of the template.
- disks List<Property Map>
- Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features List<Property Map>
- See Features parameters below for details.
- graphics Property Map
- See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template 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 machine template.
- os Property Map
- See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw Property Map
- Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- 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> - Allow to add a custom vector. See Template section parameters
- user
Inputs Map<String> - Ask the user instantiating the template to define the values described.
- vcpu Number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router StringInstance Template Id - ID of the template.
- 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 VirtualRouterInstanceTemplate resource produces the following output properties:
- Dictionary<string, string>
- Default tags defined in the provider configuration.
- Gid double
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Reg
Time double - Registration time of the template.
- Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Uid double
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- map[string]string
- Default tags defined in the provider configuration.
- Gid float64
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Reg
Time float64 - Registration time of the template.
- map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Uid float64
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- Map<String,String>
- Default tags defined in the provider configuration.
- gid Double
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- id String
- The provider-assigned unique ID for this managed resource.
- reg
Time Double - Registration time of the template.
- Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - uid Double
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
- {[key: string]: string}
- Default tags defined in the provider configuration.
- gid number
- Group ID which owns the template.
- gname string
- Group Name which owns the template.
- id string
- The provider-assigned unique ID for this managed resource.
- reg
Time number - Registration time of the template.
- {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - uid number
- User ID whom owns the template.
- uname string
- User Name whom owns the template.
- Mapping[str, str]
- Default tags defined in the provider configuration.
- gid float
- Group ID which owns the template.
- gname str
- Group Name which owns the template.
- id str
- The provider-assigned unique ID for this managed resource.
- reg_
time float - Registration time of the template.
- Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - uid float
- User ID whom owns the template.
- uname str
- User Name whom owns the template.
- Map<String>
- Default tags defined in the provider configuration.
- gid Number
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- id String
- The provider-assigned unique ID for this managed resource.
- reg
Time Number - Registration time of the template.
- Map<String>
- Result of the applied
default_tags
and then resourcetags
. - uid Number
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
Look up Existing VirtualRouterInstanceTemplate Resource
Get an existing VirtualRouterInstanceTemplate 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?: VirtualRouterInstanceTemplateState, opts?: CustomResourceOptions): VirtualRouterInstanceTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[Mapping[str, str]] = None,
cpu: Optional[float] = None,
cpumodel: Optional[VirtualRouterInstanceTemplateCpumodelArgs] = None,
default_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
disks: Optional[Sequence[VirtualRouterInstanceTemplateDiskArgs]] = None,
features: Optional[Sequence[VirtualRouterInstanceTemplateFeatureArgs]] = None,
gid: Optional[float] = None,
gname: Optional[str] = None,
graphics: Optional[VirtualRouterInstanceTemplateGraphicsArgs] = None,
group: Optional[str] = None,
lock: Optional[str] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
os: Optional[VirtualRouterInstanceTemplateOsArgs] = None,
permissions: Optional[str] = None,
raw: Optional[VirtualRouterInstanceTemplateRawArgs] = None,
reg_time: Optional[float] = None,
sched_ds_requirements: Optional[str] = None,
sched_requirements: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
template_sections: Optional[Sequence[VirtualRouterInstanceTemplateTemplateSectionArgs]] = None,
uid: Optional[float] = None,
uname: Optional[str] = None,
user_inputs: Optional[Mapping[str, str]] = None,
vcpu: Optional[float] = None,
virtual_router_instance_template_id: Optional[str] = None,
vmgroup: Optional[VirtualRouterInstanceTemplateVmgroupArgs] = None) -> VirtualRouterInstanceTemplate
func GetVirtualRouterInstanceTemplate(ctx *Context, name string, id IDInput, state *VirtualRouterInstanceTemplateState, opts ...ResourceOption) (*VirtualRouterInstanceTemplate, error)
public static VirtualRouterInstanceTemplate Get(string name, Input<string> id, VirtualRouterInstanceTemplateState? state, CustomResourceOptions? opts = null)
public static VirtualRouterInstanceTemplate get(String name, Output<String> id, VirtualRouterInstanceTemplateState state, CustomResourceOptions options)
resources: _: type: opennebula:VirtualRouterInstanceTemplate 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 Template 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 Template Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
List<Virtual
Router Instance Template Feature> - See Features parameters below for details.
- Gid double
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Graphics
Virtual
Router Instance Template Graphics - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template 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 machine template.
- Os
Virtual
Router Instance Template Os - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Template Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- Reg
Time double - Registration time of the template.
- 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. - Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Template
Sections List<VirtualRouter Instance Template Template Section> - Allow to add a custom vector. See Template section parameters
- Uid double
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- User
Inputs Dictionary<string, string> - Ask the user instantiating the template to define the values described.
- Vcpu double
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router stringInstance Template Id - ID of the template.
- Vmgroup
Virtual
Router Instance Template 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 Template 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 Template Disk Args - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
[]Virtual
Router Instance Template Feature Args - See Features parameters below for details.
- Gid float64
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Graphics
Virtual
Router Instance Template Graphics Args - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template 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 machine template.
- Os
Virtual
Router Instance Template Os Args - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Virtual
Router Instance Template Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- Reg
Time float64 - Registration time of the template.
- 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. - map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Template
Sections []VirtualRouter Instance Template Template Section Args - Allow to add a custom vector. See Template section parameters
- Uid float64
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- User
Inputs map[string]string - Ask the user instantiating the template to define the values described.
- Vcpu float64
- Number of virtual CPUs assigned to the virtual machine
- Virtual
Router stringInstance Template Id - ID of the template.
- Vmgroup
Virtual
Router Instance Template 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 Template 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 Template Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
List<Virtual
Router Instance Template Feature> - See Features parameters below for details.
- gid Double
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- graphics
Virtual
Router Instance Template Graphics - See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template 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 machine template.
- os
Virtual
Router Instance Template Os - See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Template Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg
Time Double - Registration time of the template.
- 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. - Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - template
Sections List<VirtualRouter Instance Template Template Section> - Allow to add a custom vector. See Template section parameters
- uid Double
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
- user
Inputs Map<String,String> - Ask the user instantiating the template to define the values described.
- vcpu Double
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router StringInstance Template Id - ID of the template.
- vmgroup
Virtual
Router Instance Template 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 Template 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 Template Disk[] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Virtual
Router Instance Template Feature[] - See Features parameters below for details.
- gid number
- Group ID which owns the template.
- gname string
- Group Name which owns the template.
- graphics
Virtual
Router Instance Template Graphics - See Graphics parameters below for details.
- group string
- Name of the group which owns the template. Defaults to the caller primary group.
- lock string
- Lock the template 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 machine template.
- os
Virtual
Router Instance Template Os - See OS parameters below for details.
- permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Template Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg
Time number - Registration time of the template.
- 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. - {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - template
Sections VirtualRouter Instance Template Template Section[] - Allow to add a custom vector. See Template section parameters
- uid number
- User ID whom owns the template.
- uname string
- User Name whom owns the template.
- user
Inputs {[key: string]: string} - Ask the user instantiating the template to define the values described.
- vcpu number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router stringInstance Template Id - ID of the template.
- vmgroup
Virtual
Router Instance Template 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 Template 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 Template Disk Args] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Sequence[Virtual
Router Instance Template Feature Args] - See Features parameters below for details.
- gid float
- Group ID which owns the template.
- gname str
- Group Name which owns the template.
- graphics
Virtual
Router Instance Template Graphics Args - See Graphics parameters below for details.
- group str
- Name of the group which owns the template. Defaults to the caller primary group.
- lock str
- Lock the template 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 machine template.
- os
Virtual
Router Instance Template Os Args - See OS parameters below for details.
- permissions str
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Virtual
Router Instance Template Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg_
time float - Registration time of the template.
- 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. - Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - template_
sections Sequence[VirtualRouter Instance Template Template Section Args] - Allow to add a custom vector. See Template section parameters
- uid float
- User ID whom owns the template.
- uname str
- User Name whom owns the template.
- user_
inputs Mapping[str, str] - Ask the user instantiating the template to define the values described.
- vcpu float
- Number of virtual CPUs assigned to the virtual machine
- virtual_
router_ strinstance_ template_ id - ID of the template.
- vmgroup
Virtual
Router Instance Template 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 Disks parameters below for details.
- features List<Property Map>
- See Features parameters below for details.
- gid Number
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- graphics Property Map
- See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template 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 machine template.
- os Property Map
- See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw Property Map
- Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg
Time Number - Registration time of the template.
- 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. - Map<String>
- Result of the applied
default_tags
and then resourcetags
. - template
Sections List<Property Map> - Allow to add a custom vector. See Template section parameters
- uid Number
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
- user
Inputs Map<String> - Ask the user instantiating the template to define the values described.
- vcpu Number
- Number of virtual CPUs assigned to the virtual machine
- virtual
Router StringInstance Template Id - ID of the template.
- vmgroup Property Map
- See VM group parameters below for details. Changing this argument triggers a new resource.
Supporting Types
VirtualRouterInstanceTemplateCpumodel, VirtualRouterInstanceTemplateCpumodelArgs
- Model string
- Model string
- model String
- model string
- model str
- model String
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
.
VirtualRouterInstanceTemplateFeature, VirtualRouterInstanceTemplateFeatureArgs
- Acpi string
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - Apic string
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - Guest
Agent string - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - Hyperv string
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- Iothreads string
- umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.
- Localtime string
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - Pae string
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- Virtio
Scsi stringQueues - Numer of vCPU queues for the virtio-scsi controller.
- Acpi string
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - Apic string
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - Guest
Agent string - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - Hyperv string
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- Iothreads string
- umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.
- Localtime string
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - Pae string
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- Virtio
Scsi stringQueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi String
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic String
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest
Agent String - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv String
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads String
- umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.
- localtime String
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae String
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio
Scsi StringQueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi string
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic string
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest
Agent string - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv string
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads string
- umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.
- localtime string
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae string
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio
Scsi stringQueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi str
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic str
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest_
agent str - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv str
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads str
- umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.
- localtime str
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae str
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio_
scsi_ strqueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi String
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic String
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest
Agent String - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv String
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads String
- umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.
- localtime String
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae String
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio
Scsi StringQueues - Numer of vCPU queues for the virtio-scsi controller.
VirtualRouterInstanceTemplateGraphics, VirtualRouterInstanceTemplateGraphicsArgs
VirtualRouterInstanceTemplateOs, VirtualRouterInstanceTemplateOsArgs
VirtualRouterInstanceTemplateRaw, VirtualRouterInstanceTemplateRawArgs
VirtualRouterInstanceTemplateTemplateSection, VirtualRouterInstanceTemplateTemplateSectionArgs
VirtualRouterInstanceTemplateVmgroup, VirtualRouterInstanceTemplateVmgroupArgs
- role str
- role of the VM group to use.
- vmgroup_
id float - ID of the VM group to use.
Import
opennebula_virtual_router_instance_template
can be imported using its ID:
$ pulumi import opennebula:index/virtualRouterInstanceTemplate:VirtualRouterInstanceTemplate 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.