1. Packages
  2. Opennebula Provider
  3. API Docs
  4. VirtualRouterInstanceTemplate
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

opennebula.VirtualRouterInstanceTemplate

Explore with Pulumi AI

opennebula logo
opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula

    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" and SET_HOSTNAME = "$NAME".
    Cpu double
    Amount of CPU shares assigned to the VM.
    Cpumodel VirtualRouterInstanceTemplateCpumodel
    Definition of CPU Model type for the Virtual Machine
    Description string
    The description of the template.
    Disks List<VirtualRouterInstanceTemplateDisk>
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    Features List<VirtualRouterInstanceTemplateFeature>
    See Features parameters below for details.
    Graphics VirtualRouterInstanceTemplateGraphics
    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 or UNLOCK.
    Memory double
    Amount of RAM assigned to the VM in MB.
    Name string
    The name of the virtual machine template.
    Os VirtualRouterInstanceTemplateOs
    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 VirtualRouterInstanceTemplateRaw
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    SchedDsRequirements string
    Storage placement requirements to deploy the resource following specific rule.
    SchedRequirements string
    Scheduling requirements to deploy the resource following specific rule
    Tags Dictionary<string, string>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    TemplateSections List<VirtualRouterInstanceTemplateTemplateSection>
    Allow to add a custom vector. See Template section parameters
    UserInputs 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
    VirtualRouterInstanceTemplateId string
    ID of the template.
    Vmgroup VirtualRouterInstanceTemplateVmgroup
    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" and SET_HOSTNAME = "$NAME".
    Cpu float64
    Amount of CPU shares assigned to the VM.
    Cpumodel VirtualRouterInstanceTemplateCpumodelArgs
    Definition of CPU Model type for the Virtual Machine
    Description string
    The description of the template.
    Disks []VirtualRouterInstanceTemplateDiskArgs
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    Features []VirtualRouterInstanceTemplateFeatureArgs
    See Features parameters below for details.
    Graphics VirtualRouterInstanceTemplateGraphicsArgs
    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 or UNLOCK.
    Memory float64
    Amount of RAM assigned to the VM in MB.
    Name string
    The name of the virtual machine template.
    Os VirtualRouterInstanceTemplateOsArgs
    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 VirtualRouterInstanceTemplateRawArgs
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    SchedDsRequirements string
    Storage placement requirements to deploy the resource following specific rule.
    SchedRequirements string
    Scheduling requirements to deploy the resource following specific rule
    Tags map[string]string
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    TemplateSections []VirtualRouterInstanceTemplateTemplateSectionArgs
    Allow to add a custom vector. See Template section parameters
    UserInputs 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
    VirtualRouterInstanceTemplateId string
    ID of the template.
    Vmgroup VirtualRouterInstanceTemplateVmgroupArgs
    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" and SET_HOSTNAME = "$NAME".
    cpu Double
    Amount of CPU shares assigned to the VM.
    cpumodel VirtualRouterInstanceTemplateCpumodel
    Definition of CPU Model type for the Virtual Machine
    description String
    The description of the template.
    disks List<VirtualRouterInstanceTemplateDisk>
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    features List<VirtualRouterInstanceTemplateFeature>
    See Features parameters below for details.
    graphics VirtualRouterInstanceTemplateGraphics
    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 or UNLOCK.
    memory Double
    Amount of RAM assigned to the VM in MB.
    name String
    The name of the virtual machine template.
    os VirtualRouterInstanceTemplateOs
    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 VirtualRouterInstanceTemplateRaw
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    schedDsRequirements String
    Storage placement requirements to deploy the resource following specific rule.
    schedRequirements String
    Scheduling requirements to deploy the resource following specific rule
    tags Map<String,String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    templateSections List<VirtualRouterInstanceTemplateTemplateSection>
    Allow to add a custom vector. See Template section parameters
    userInputs 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
    virtualRouterInstanceTemplateId String
    ID of the template.
    vmgroup VirtualRouterInstanceTemplateVmgroup
    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" and SET_HOSTNAME = "$NAME".
    cpu number
    Amount of CPU shares assigned to the VM.
    cpumodel VirtualRouterInstanceTemplateCpumodel
    Definition of CPU Model type for the Virtual Machine
    description string
    The description of the template.
    disks VirtualRouterInstanceTemplateDisk[]
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    features VirtualRouterInstanceTemplateFeature[]
    See Features parameters below for details.
    graphics VirtualRouterInstanceTemplateGraphics
    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 or UNLOCK.
    memory number
    Amount of RAM assigned to the VM in MB.
    name string
    The name of the virtual machine template.
    os VirtualRouterInstanceTemplateOs
    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 VirtualRouterInstanceTemplateRaw
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    schedDsRequirements string
    Storage placement requirements to deploy the resource following specific rule.
    schedRequirements string
    Scheduling requirements to deploy the resource following specific rule
    tags {[key: string]: string}
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    templateSections VirtualRouterInstanceTemplateTemplateSection[]
    Allow to add a custom vector. See Template section parameters
    userInputs {[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
    virtualRouterInstanceTemplateId string
    ID of the template.
    vmgroup VirtualRouterInstanceTemplateVmgroup
    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" and SET_HOSTNAME = "$NAME".
    cpu float
    Amount of CPU shares assigned to the VM.
    cpumodel VirtualRouterInstanceTemplateCpumodelArgs
    Definition of CPU Model type for the Virtual Machine
    description str
    The description of the template.
    disks Sequence[VirtualRouterInstanceTemplateDiskArgs]
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    features Sequence[VirtualRouterInstanceTemplateFeatureArgs]
    See Features parameters below for details.
    graphics VirtualRouterInstanceTemplateGraphicsArgs
    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 or UNLOCK.
    memory float
    Amount of RAM assigned to the VM in MB.
    name str
    The name of the virtual machine template.
    os VirtualRouterInstanceTemplateOsArgs
    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 VirtualRouterInstanceTemplateRawArgs
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    sched_ds_requirements str
    Storage placement requirements to deploy the resource following specific rule.
    sched_requirements str
    Scheduling requirements to deploy the resource following specific rule
    tags Mapping[str, str]
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    template_sections Sequence[VirtualRouterInstanceTemplateTemplateSectionArgs]
    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_instance_template_id str
    ID of the template.
    vmgroup VirtualRouterInstanceTemplateVmgroupArgs
    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" and SET_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 or UNLOCK.
    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.
    schedDsRequirements String
    Storage placement requirements to deploy the resource following specific rule.
    schedRequirements String
    Scheduling requirements to deploy the resource following specific rule
    tags Map<String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    templateSections List<Property Map>
    Allow to add a custom vector. See Template section parameters
    userInputs Map<String>
    Ask the user instantiating the template to define the values described.
    vcpu Number
    Number of virtual CPUs assigned to the virtual machine
    virtualRouterInstanceTemplateId String
    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:

    DefaultTags 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.
    RegTime double
    Registration time of the template.
    TagsAll Dictionary<string, string>
    Result of the applied default_tags and then resource tags.
    Uid double
    User ID whom owns the template.
    Uname string
    User Name whom owns the template.
    DefaultTags 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.
    RegTime float64
    Registration time of the template.
    TagsAll map[string]string
    Result of the applied default_tags and then resource tags.
    Uid float64
    User ID whom owns the template.
    Uname string
    User Name whom owns the template.
    defaultTags 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.
    regTime Double
    Registration time of the template.
    tagsAll Map<String,String>
    Result of the applied default_tags and then resource tags.
    uid Double
    User ID whom owns the template.
    uname String
    User Name whom owns the template.
    defaultTags {[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.
    regTime number
    Registration time of the template.
    tagsAll {[key: string]: string}
    Result of the applied default_tags and then resource tags.
    uid number
    User ID whom owns the template.
    uname string
    User Name whom owns the template.
    default_tags 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.
    tags_all Mapping[str, str]
    Result of the applied default_tags and then resource tags.
    uid float
    User ID whom owns the template.
    uname str
    User Name whom owns the template.
    defaultTags 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.
    regTime Number
    Registration time of the template.
    tagsAll Map<String>
    Result of the applied default_tags and then resource tags.
    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.
    The following state arguments are supported:
    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" and SET_HOSTNAME = "$NAME".
    Cpu double
    Amount of CPU shares assigned to the VM.
    Cpumodel VirtualRouterInstanceTemplateCpumodel
    Definition of CPU Model type for the Virtual Machine
    DefaultTags Dictionary<string, string>
    Default tags defined in the provider configuration.
    Description string
    The description of the template.
    Disks List<VirtualRouterInstanceTemplateDisk>
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    Features List<VirtualRouterInstanceTemplateFeature>
    See Features parameters below for details.
    Gid double
    Group ID which owns the template.
    Gname string
    Group Name which owns the template.
    Graphics VirtualRouterInstanceTemplateGraphics
    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 or UNLOCK.
    Memory double
    Amount of RAM assigned to the VM in MB.
    Name string
    The name of the virtual machine template.
    Os VirtualRouterInstanceTemplateOs
    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 VirtualRouterInstanceTemplateRaw
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    RegTime double
    Registration time of the template.
    SchedDsRequirements string
    Storage placement requirements to deploy the resource following specific rule.
    SchedRequirements string
    Scheduling requirements to deploy the resource following specific rule
    Tags Dictionary<string, string>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    TagsAll Dictionary<string, string>
    Result of the applied default_tags and then resource tags.
    TemplateSections List<VirtualRouterInstanceTemplateTemplateSection>
    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.
    UserInputs 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
    VirtualRouterInstanceTemplateId string
    ID of the template.
    Vmgroup VirtualRouterInstanceTemplateVmgroup
    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" and SET_HOSTNAME = "$NAME".
    Cpu float64
    Amount of CPU shares assigned to the VM.
    Cpumodel VirtualRouterInstanceTemplateCpumodelArgs
    Definition of CPU Model type for the Virtual Machine
    DefaultTags map[string]string
    Default tags defined in the provider configuration.
    Description string
    The description of the template.
    Disks []VirtualRouterInstanceTemplateDiskArgs
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    Features []VirtualRouterInstanceTemplateFeatureArgs
    See Features parameters below for details.
    Gid float64
    Group ID which owns the template.
    Gname string
    Group Name which owns the template.
    Graphics VirtualRouterInstanceTemplateGraphicsArgs
    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 or UNLOCK.
    Memory float64
    Amount of RAM assigned to the VM in MB.
    Name string
    The name of the virtual machine template.
    Os VirtualRouterInstanceTemplateOsArgs
    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 VirtualRouterInstanceTemplateRawArgs
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    RegTime float64
    Registration time of the template.
    SchedDsRequirements string
    Storage placement requirements to deploy the resource following specific rule.
    SchedRequirements string
    Scheduling requirements to deploy the resource following specific rule
    Tags map[string]string
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    TagsAll map[string]string
    Result of the applied default_tags and then resource tags.
    TemplateSections []VirtualRouterInstanceTemplateTemplateSectionArgs
    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.
    UserInputs 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
    VirtualRouterInstanceTemplateId string
    ID of the template.
    Vmgroup VirtualRouterInstanceTemplateVmgroupArgs
    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" and SET_HOSTNAME = "$NAME".
    cpu Double
    Amount of CPU shares assigned to the VM.
    cpumodel VirtualRouterInstanceTemplateCpumodel
    Definition of CPU Model type for the Virtual Machine
    defaultTags Map<String,String>
    Default tags defined in the provider configuration.
    description String
    The description of the template.
    disks List<VirtualRouterInstanceTemplateDisk>
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    features List<VirtualRouterInstanceTemplateFeature>
    See Features parameters below for details.
    gid Double
    Group ID which owns the template.
    gname String
    Group Name which owns the template.
    graphics VirtualRouterInstanceTemplateGraphics
    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 or UNLOCK.
    memory Double
    Amount of RAM assigned to the VM in MB.
    name String
    The name of the virtual machine template.
    os VirtualRouterInstanceTemplateOs
    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 VirtualRouterInstanceTemplateRaw
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    regTime Double
    Registration time of the template.
    schedDsRequirements String
    Storage placement requirements to deploy the resource following specific rule.
    schedRequirements String
    Scheduling requirements to deploy the resource following specific rule
    tags Map<String,String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tagsAll Map<String,String>
    Result of the applied default_tags and then resource tags.
    templateSections List<VirtualRouterInstanceTemplateTemplateSection>
    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.
    userInputs 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
    virtualRouterInstanceTemplateId String
    ID of the template.
    vmgroup VirtualRouterInstanceTemplateVmgroup
    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" and SET_HOSTNAME = "$NAME".
    cpu number
    Amount of CPU shares assigned to the VM.
    cpumodel VirtualRouterInstanceTemplateCpumodel
    Definition of CPU Model type for the Virtual Machine
    defaultTags {[key: string]: string}
    Default tags defined in the provider configuration.
    description string
    The description of the template.
    disks VirtualRouterInstanceTemplateDisk[]
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    features VirtualRouterInstanceTemplateFeature[]
    See Features parameters below for details.
    gid number
    Group ID which owns the template.
    gname string
    Group Name which owns the template.
    graphics VirtualRouterInstanceTemplateGraphics
    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 or UNLOCK.
    memory number
    Amount of RAM assigned to the VM in MB.
    name string
    The name of the virtual machine template.
    os VirtualRouterInstanceTemplateOs
    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 VirtualRouterInstanceTemplateRaw
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    regTime number
    Registration time of the template.
    schedDsRequirements string
    Storage placement requirements to deploy the resource following specific rule.
    schedRequirements string
    Scheduling requirements to deploy the resource following specific rule
    tags {[key: string]: string}
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tagsAll {[key: string]: string}
    Result of the applied default_tags and then resource tags.
    templateSections VirtualRouterInstanceTemplateTemplateSection[]
    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.
    userInputs {[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
    virtualRouterInstanceTemplateId string
    ID of the template.
    vmgroup VirtualRouterInstanceTemplateVmgroup
    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" and SET_HOSTNAME = "$NAME".
    cpu float
    Amount of CPU shares assigned to the VM.
    cpumodel VirtualRouterInstanceTemplateCpumodelArgs
    Definition of CPU Model type for the Virtual Machine
    default_tags Mapping[str, str]
    Default tags defined in the provider configuration.
    description str
    The description of the template.
    disks Sequence[VirtualRouterInstanceTemplateDiskArgs]
    Can be specified multiple times to attach several disks. See Disks parameters below for details.
    features Sequence[VirtualRouterInstanceTemplateFeatureArgs]
    See Features parameters below for details.
    gid float
    Group ID which owns the template.
    gname str
    Group Name which owns the template.
    graphics VirtualRouterInstanceTemplateGraphicsArgs
    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 or UNLOCK.
    memory float
    Amount of RAM assigned to the VM in MB.
    name str
    The name of the virtual machine template.
    os VirtualRouterInstanceTemplateOsArgs
    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 VirtualRouterInstanceTemplateRawArgs
    Allow to pass hypervisor level tuning content. See Raw parameters below for details.
    reg_time float
    Registration time of the template.
    sched_ds_requirements str
    Storage placement requirements to deploy the resource following specific rule.
    sched_requirements str
    Scheduling requirements to deploy the resource following specific rule
    tags Mapping[str, str]
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tags_all Mapping[str, str]
    Result of the applied default_tags and then resource tags.
    template_sections Sequence[VirtualRouterInstanceTemplateTemplateSectionArgs]
    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_instance_template_id str
    ID of the template.
    vmgroup VirtualRouterInstanceTemplateVmgroupArgs
    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" and SET_HOSTNAME = "$NAME".
    cpu Number
    Amount of CPU shares assigned to the VM.
    cpumodel Property Map
    Definition of CPU Model type for the Virtual Machine
    defaultTags 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 or UNLOCK.
    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.
    regTime Number
    Registration time of the template.
    schedDsRequirements String
    Storage placement requirements to deploy the resource following specific rule.
    schedRequirements String
    Scheduling requirements to deploy the resource following specific rule
    tags Map<String>
    Map of tags (key=value) assigned to the resource. Override matching tags present in the default_tags atribute when configured in the provider block. See tags usage related documentation for more information.
    tagsAll Map<String>
    Result of the applied default_tags and then resource tags.
    templateSections 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.
    userInputs Map<String>
    Ask the user instantiating the template to define the values described.
    vcpu Number
    Number of virtual CPUs assigned to the virtual machine
    virtualRouterInstanceTemplateId String
    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
    DevPrefix string
    Discard string
    Driver string
    OpenNebula image driver.
    ImageId double
    ID of the image to attach to the virtual machine. Conflicts with volatile_type and volatile_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.
    VolatileFormat string

    Format of the volatile disk: raw or qcow2. Conflicts with image_id.

    Minimum 1 item. Maximum 8 items.

    VolatileType string
    Type of the volatile disk: swap or fs. Type swap is not supported in vcenter. Conflicts with image_id.
    Cache string
    DevPrefix string
    Discard string
    Driver string
    OpenNebula image driver.
    ImageId float64
    ID of the image to attach to the virtual machine. Conflicts with volatile_type and volatile_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.
    VolatileFormat string

    Format of the volatile disk: raw or qcow2. Conflicts with image_id.

    Minimum 1 item. Maximum 8 items.

    VolatileType string
    Type of the volatile disk: swap or fs. Type swap is not supported in vcenter. Conflicts with image_id.
    cache String
    devPrefix String
    discard String
    driver String
    OpenNebula image driver.
    imageId Double
    ID of the image to attach to the virtual machine. Conflicts with volatile_type and volatile_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.
    volatileFormat String

    Format of the volatile disk: raw or qcow2. Conflicts with image_id.

    Minimum 1 item. Maximum 8 items.

    volatileType String
    Type of the volatile disk: swap or fs. Type swap is not supported in vcenter. Conflicts with image_id.
    cache string
    devPrefix string
    discard string
    driver string
    OpenNebula image driver.
    imageId number
    ID of the image to attach to the virtual machine. Conflicts with volatile_type and volatile_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.
    volatileFormat string

    Format of the volatile disk: raw or qcow2. Conflicts with image_id.

    Minimum 1 item. Maximum 8 items.

    volatileType string
    Type of the volatile disk: swap or fs. Type swap is not supported in vcenter. Conflicts with image_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 and volatile_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 or qcow2. Conflicts with image_id.

    Minimum 1 item. Maximum 8 items.

    volatile_type str
    Type of the volatile disk: swap or fs. Type swap is not supported in vcenter. Conflicts with image_id.
    cache String
    devPrefix String
    discard String
    driver String
    OpenNebula image driver.
    imageId Number
    ID of the image to attach to the virtual machine. Conflicts with volatile_type and volatile_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.
    volatileFormat String

    Format of the volatile disk: raw or qcow2. Conflicts with image_id.

    Minimum 1 item. Maximum 8 items.

    volatileType String
    Type of the volatile disk: swap or fs. Type swap is not supported in vcenter. Conflicts with image_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 or NO)
    Apic string
    Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be YES or NO)
    GuestAgent 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 or NO)
    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 or NO)
    Pae string
    Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
    VirtioScsiQueues string
    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 or NO)
    Apic string
    Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be YES or NO)
    GuestAgent 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 or NO)
    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 or NO)
    Pae string
    Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
    VirtioScsiQueues string
    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 or NO)
    apic String
    Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be YES or NO)
    guestAgent 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 or NO)
    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 or NO)
    pae String
    Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
    virtioScsiQueues String
    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 or NO)
    apic string
    Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be YES or NO)
    guestAgent 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 or NO)
    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 or NO)
    pae string
    Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
    virtioScsiQueues string
    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 or NO)
    apic str
    Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be YES or NO)
    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 or NO)
    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 or NO)
    pae str
    Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
    virtio_scsi_queues str
    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 or NO)
    apic String
    Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be YES or NO)
    guestAgent 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 or NO)
    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 or NO)
    pae String
    Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
    virtioScsiQueues String
    Numer of vCPU queues for the virtio-scsi controller.

    VirtualRouterInstanceTemplateGraphics, VirtualRouterInstanceTemplateGraphicsArgs

    Listen string
    Binding address.
    Type string
    Generally set to VNC.
    Keymap string
    Keyboard mapping.
    Passwd string
    Port string
    Binding Port.
    RandomPasswd bool
    Listen string
    Binding address.
    Type string
    Generally set to VNC.
    Keymap string
    Keyboard mapping.
    Passwd string
    Port string
    Binding Port.
    RandomPasswd bool
    listen String
    Binding address.
    type String
    Generally set to VNC.
    keymap String
    Keyboard mapping.
    passwd String
    port String
    Binding Port.
    randomPasswd Boolean
    listen string
    Binding address.
    type string
    Generally set to VNC.
    keymap string
    Keyboard mapping.
    passwd string
    port string
    Binding Port.
    randomPasswd boolean
    listen str
    Binding address.
    type str
    Generally set to VNC.
    keymap str
    Keyboard mapping.
    passwd str
    port str
    Binding Port.
    random_passwd bool
    listen String
    Binding address.
    type String
    Generally set to VNC.
    keymap String
    Keyboard mapping.
    passwd String
    port String
    Binding Port.
    randomPasswd Boolean

    VirtualRouterInstanceTemplateOs, VirtualRouterInstanceTemplateOsArgs

    Arch string
    Hardware architecture of the Virtual machine. Must fit the host architecture.
    Boot string
    OS disk to use to boot on.
    Arch string
    Hardware architecture of the Virtual machine. Must fit the host architecture.
    Boot string
    OS disk to use to boot on.
    arch String
    Hardware architecture of the Virtual machine. Must fit the host architecture.
    boot String
    OS disk to use to boot on.
    arch string
    Hardware architecture of the Virtual machine. Must fit the host architecture.
    boot string
    OS disk to use to boot on.
    arch str
    Hardware architecture of the Virtual machine. Must fit the host architecture.
    boot str
    OS disk to use to boot on.
    arch String
    Hardware architecture of the Virtual machine. Must fit the host architecture.
    boot String
    OS disk to use to boot on.

    VirtualRouterInstanceTemplateRaw, VirtualRouterInstanceTemplateRawArgs

    Data string
    Raw data to pass to the hypervisor.
    Type string
    Hypervisor. Supported values: kvm, lxd, vmware.
    Data string
    Raw data to pass to the hypervisor.
    Type string
    Hypervisor. Supported values: kvm, lxd, vmware.
    data String
    Raw data to pass to the hypervisor.
    type String
    Hypervisor. Supported values: kvm, lxd, vmware.
    data string
    Raw data to pass to the hypervisor.
    type string
    Hypervisor. Supported values: kvm, lxd, vmware.
    data str
    Raw data to pass to the hypervisor.
    type str
    Hypervisor. Supported values: kvm, lxd, vmware.
    data String
    Raw data to pass to the hypervisor.
    type String
    Hypervisor. Supported values: kvm, lxd, vmware.

    VirtualRouterInstanceTemplateTemplateSection, VirtualRouterInstanceTemplateTemplateSectionArgs

    Name string
    The vector name.
    Elements Dictionary<string, string>
    Collection of custom tags.
    Name string
    The vector name.
    Elements map[string]string
    Collection of custom tags.
    name String
    The vector name.
    elements Map<String,String>
    Collection of custom tags.
    name string
    The vector name.
    elements {[key: string]: string}
    Collection of custom tags.
    name str
    The vector name.
    elements Mapping[str, str]
    Collection of custom tags.
    name String
    The vector name.
    elements Map<String>
    Collection of custom tags.

    VirtualRouterInstanceTemplateVmgroup, VirtualRouterInstanceTemplateVmgroupArgs

    Role string
    role of the VM group to use.
    VmgroupId double
    ID of the VM group to use.
    Role string
    role of the VM group to use.
    VmgroupId float64
    ID of the VM group to use.
    role String
    role of the VM group to use.
    vmgroupId Double
    ID of the VM group to use.
    role string
    role of the VM group to use.
    vmgroupId number
    ID of the VM group to use.
    role str
    role of the VM group to use.
    vmgroup_id float
    ID of the VM group to use.
    role String
    role of the VM group to use.
    vmgroupId Number
    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.
    opennebula logo
    opennebula 1.4.1 published on Monday, Apr 14, 2025 by opennebula