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

opennebula.VirtualRouter

Explore with Pulumi AI

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

    Provides an OpenNebula virtual router resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opennebula from "@pulumi/opennebula";
    
    const example = new opennebula.VirtualRouter("example", {
        permissions: "642",
        group: "oneadmin",
        description: "This is an example of virtual router",
        instanceTemplateId: opennebula_virtual_router_instance_template.example.id,
        lock: "USE",
        tags: {
            environment: "example",
        },
        templateSections: [{
            name: "example",
            elements: {
                key1: "value1",
            },
        }],
    });
    
    import pulumi
    import pulumi_opennebula as opennebula
    
    example = opennebula.VirtualRouter("example",
        permissions="642",
        group="oneadmin",
        description="This is an example of virtual router",
        instance_template_id=opennebula_virtual_router_instance_template["example"]["id"],
        lock="USE",
        tags={
            "environment": "example",
        },
        template_sections=[{
            "name": "example",
            "elements": {
                "key1": "value1",
            },
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opennebula.NewVirtualRouter(ctx, "example", &opennebula.VirtualRouterArgs{
    			Permissions:        pulumi.String("642"),
    			Group:              pulumi.String("oneadmin"),
    			Description:        pulumi.String("This is an example of virtual router"),
    			InstanceTemplateId: pulumi.Any(opennebula_virtual_router_instance_template.Example.Id),
    			Lock:               pulumi.String("USE"),
    			Tags: pulumi.StringMap{
    				"environment": pulumi.String("example"),
    			},
    			TemplateSections: opennebula.VirtualRouterTemplateSectionArray{
    				&opennebula.VirtualRouterTemplateSectionArgs{
    					Name: pulumi.String("example"),
    					Elements: pulumi.StringMap{
    						"key1": pulumi.String("value1"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opennebula = Pulumi.Opennebula;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Opennebula.VirtualRouter("example", new()
        {
            Permissions = "642",
            Group = "oneadmin",
            Description = "This is an example of virtual router",
            InstanceTemplateId = opennebula_virtual_router_instance_template.Example.Id,
            Lock = "USE",
            Tags = 
            {
                { "environment", "example" },
            },
            TemplateSections = new[]
            {
                new Opennebula.Inputs.VirtualRouterTemplateSectionArgs
                {
                    Name = "example",
                    Elements = 
                    {
                        { "key1", "value1" },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opennebula.VirtualRouter;
    import com.pulumi.opennebula.VirtualRouterArgs;
    import com.pulumi.opennebula.inputs.VirtualRouterTemplateSectionArgs;
    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 VirtualRouter("example", VirtualRouterArgs.builder()
                .permissions("642")
                .group("oneadmin")
                .description("This is an example of virtual router")
                .instanceTemplateId(opennebula_virtual_router_instance_template.example().id())
                .lock("USE")
                .tags(Map.of("environment", "example"))
                .templateSections(VirtualRouterTemplateSectionArgs.builder()
                    .name("example")
                    .elements(Map.of("key1", "value1"))
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: opennebula:VirtualRouter
        properties:
          permissions: '642'
          group: oneadmin
          description: This is an example of virtual router
          instanceTemplateId: ${opennebula_virtual_router_instance_template.example.id}
          lock: USE
          tags:
            environment: example
          templateSections:
            - name: example
              elements:
                key1: value1
    

    Create VirtualRouter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualRouter(name: string, args: VirtualRouterArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualRouter(resource_name: str,
                      args: VirtualRouterArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualRouter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      instance_template_id: Optional[float] = None,
                      description: Optional[str] = None,
                      group: Optional[str] = None,
                      lock: Optional[str] = None,
                      name: Optional[str] = None,
                      permissions: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      template_sections: Optional[Sequence[VirtualRouterTemplateSectionArgs]] = None,
                      virtual_router_id: Optional[str] = None)
    func NewVirtualRouter(ctx *Context, name string, args VirtualRouterArgs, opts ...ResourceOption) (*VirtualRouter, error)
    public VirtualRouter(string name, VirtualRouterArgs args, CustomResourceOptions? opts = null)
    public VirtualRouter(String name, VirtualRouterArgs args)
    public VirtualRouter(String name, VirtualRouterArgs args, CustomResourceOptions options)
    
    type: opennebula:VirtualRouter
    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 VirtualRouterArgs
    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 VirtualRouterArgs
    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 VirtualRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualRouterArgs
    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 virtualRouterResource = new Opennebula.VirtualRouter("virtualRouterResource", new()
    {
        InstanceTemplateId = 0,
        Description = "string",
        Group = "string",
        Lock = "string",
        Name = "string",
        Permissions = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TemplateSections = new[]
        {
            new Opennebula.Inputs.VirtualRouterTemplateSectionArgs
            {
                Name = "string",
                Elements = 
                {
                    { "string", "string" },
                },
            },
        },
        VirtualRouterId = "string",
    });
    
    example, err := opennebula.NewVirtualRouter(ctx, "virtualRouterResource", &opennebula.VirtualRouterArgs{
    	InstanceTemplateId: pulumi.Float64(0),
    	Description:        pulumi.String("string"),
    	Group:              pulumi.String("string"),
    	Lock:               pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Permissions:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TemplateSections: opennebula.VirtualRouterTemplateSectionArray{
    		&opennebula.VirtualRouterTemplateSectionArgs{
    			Name: pulumi.String("string"),
    			Elements: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	VirtualRouterId: pulumi.String("string"),
    })
    
    var virtualRouterResource = new VirtualRouter("virtualRouterResource", VirtualRouterArgs.builder()
        .instanceTemplateId(0)
        .description("string")
        .group("string")
        .lock("string")
        .name("string")
        .permissions("string")
        .tags(Map.of("string", "string"))
        .templateSections(VirtualRouterTemplateSectionArgs.builder()
            .name("string")
            .elements(Map.of("string", "string"))
            .build())
        .virtualRouterId("string")
        .build());
    
    virtual_router_resource = opennebula.VirtualRouter("virtualRouterResource",
        instance_template_id=0,
        description="string",
        group="string",
        lock="string",
        name="string",
        permissions="string",
        tags={
            "string": "string",
        },
        template_sections=[{
            "name": "string",
            "elements": {
                "string": "string",
            },
        }],
        virtual_router_id="string")
    
    const virtualRouterResource = new opennebula.VirtualRouter("virtualRouterResource", {
        instanceTemplateId: 0,
        description: "string",
        group: "string",
        lock: "string",
        name: "string",
        permissions: "string",
        tags: {
            string: "string",
        },
        templateSections: [{
            name: "string",
            elements: {
                string: "string",
            },
        }],
        virtualRouterId: "string",
    });
    
    type: opennebula:VirtualRouter
    properties:
        description: string
        group: string
        instanceTemplateId: 0
        lock: string
        name: string
        permissions: string
        tags:
            string: string
        templateSections:
            - elements:
                string: string
              name: string
        virtualRouterId: string
    

    VirtualRouter 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 VirtualRouter resource accepts the following input properties:

    InstanceTemplateId double
    The ID of the template of the virtual router instances.
    Description string
    Description of the virtual router.
    Group string
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    Lock string
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the virtual router.
    Permissions string
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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<VirtualRouterTemplateSection>
    Allow to add a custom vector. See Template section parameters
    VirtualRouterId string
    ID of the virtual router.
    InstanceTemplateId float64
    The ID of the template of the virtual router instances.
    Description string
    Description of the virtual router.
    Group string
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    Lock string
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the virtual router.
    Permissions string
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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 []VirtualRouterTemplateSectionArgs
    Allow to add a custom vector. See Template section parameters
    VirtualRouterId string
    ID of the virtual router.
    instanceTemplateId Double
    The ID of the template of the virtual router instances.
    description String
    Description of the virtual router.
    group String
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    lock String
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the virtual router.
    permissions String
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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<VirtualRouterTemplateSection>
    Allow to add a custom vector. See Template section parameters
    virtualRouterId String
    ID of the virtual router.
    instanceTemplateId number
    The ID of the template of the virtual router instances.
    description string
    Description of the virtual router.
    group string
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    lock string
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name string
    The name of the virtual router.
    permissions string
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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 VirtualRouterTemplateSection[]
    Allow to add a custom vector. See Template section parameters
    virtualRouterId string
    ID of the virtual router.
    instance_template_id float
    The ID of the template of the virtual router instances.
    description str
    Description of the virtual router.
    group str
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    lock str
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name str
    The name of the virtual router.
    permissions str
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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[VirtualRouterTemplateSectionArgs]
    Allow to add a custom vector. See Template section parameters
    virtual_router_id str
    ID of the virtual router.
    instanceTemplateId Number
    The ID of the template of the virtual router instances.
    description String
    Description of the virtual router.
    group String
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    lock String
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the virtual router.
    permissions String
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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
    virtualRouterId String
    ID of the virtual router.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualRouter resource produces the following output properties:

    DefaultTags Dictionary<string, string>
    Default tags defined in the provider configuration.
    Gid double
    Group ID which owns the virtual router.
    Gname string
    Group Name which owns the virtual router.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Result of the applied default_tags and then resource tags.
    Uid double
    User ID whom owns the virtual router.
    Uname string
    User Name whom owns the virtual router.
    DefaultTags map[string]string
    Default tags defined in the provider configuration.
    Gid float64
    Group ID which owns the virtual router.
    Gname string
    Group Name which owns the virtual router.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Result of the applied default_tags and then resource tags.
    Uid float64
    User ID whom owns the virtual router.
    Uname string
    User Name whom owns the virtual router.
    defaultTags Map<String,String>
    Default tags defined in the provider configuration.
    gid Double
    Group ID which owns the virtual router.
    gname String
    Group Name which owns the virtual router.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Result of the applied default_tags and then resource tags.
    uid Double
    User ID whom owns the virtual router.
    uname String
    User Name whom owns the virtual router.
    defaultTags {[key: string]: string}
    Default tags defined in the provider configuration.
    gid number
    Group ID which owns the virtual router.
    gname string
    Group Name which owns the virtual router.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Result of the applied default_tags and then resource tags.
    uid number
    User ID whom owns the virtual router.
    uname string
    User Name whom owns the virtual router.
    default_tags Mapping[str, str]
    Default tags defined in the provider configuration.
    gid float
    Group ID which owns the virtual router.
    gname str
    Group Name which owns the virtual router.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Result of the applied default_tags and then resource tags.
    uid float
    User ID whom owns the virtual router.
    uname str
    User Name whom owns the virtual router.
    defaultTags Map<String>
    Default tags defined in the provider configuration.
    gid Number
    Group ID which owns the virtual router.
    gname String
    Group Name which owns the virtual router.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Result of the applied default_tags and then resource tags.
    uid Number
    User ID whom owns the virtual router.
    uname String
    User Name whom owns the virtual router.

    Look up Existing VirtualRouter Resource

    Get an existing VirtualRouter 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?: VirtualRouterState, opts?: CustomResourceOptions): VirtualRouter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            default_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            gid: Optional[float] = None,
            gname: Optional[str] = None,
            group: Optional[str] = None,
            instance_template_id: Optional[float] = None,
            lock: Optional[str] = None,
            name: Optional[str] = None,
            permissions: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            template_sections: Optional[Sequence[VirtualRouterTemplateSectionArgs]] = None,
            uid: Optional[float] = None,
            uname: Optional[str] = None,
            virtual_router_id: Optional[str] = None) -> VirtualRouter
    func GetVirtualRouter(ctx *Context, name string, id IDInput, state *VirtualRouterState, opts ...ResourceOption) (*VirtualRouter, error)
    public static VirtualRouter Get(string name, Input<string> id, VirtualRouterState? state, CustomResourceOptions? opts = null)
    public static VirtualRouter get(String name, Output<String> id, VirtualRouterState state, CustomResourceOptions options)
    resources:  _:    type: opennebula:VirtualRouter    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:
    DefaultTags Dictionary<string, string>
    Default tags defined in the provider configuration.
    Description string
    Description of the virtual router.
    Gid double
    Group ID which owns the virtual router.
    Gname string
    Group Name which owns the virtual router.
    Group string
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    InstanceTemplateId double
    The ID of the template of the virtual router instances.
    Lock string
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the virtual router.
    Permissions string
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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<VirtualRouterTemplateSection>
    Allow to add a custom vector. See Template section parameters
    Uid double
    User ID whom owns the virtual router.
    Uname string
    User Name whom owns the virtual router.
    VirtualRouterId string
    ID of the virtual router.
    DefaultTags map[string]string
    Default tags defined in the provider configuration.
    Description string
    Description of the virtual router.
    Gid float64
    Group ID which owns the virtual router.
    Gname string
    Group Name which owns the virtual router.
    Group string
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    InstanceTemplateId float64
    The ID of the template of the virtual router instances.
    Lock string
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    Name string
    The name of the virtual router.
    Permissions string
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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 []VirtualRouterTemplateSectionArgs
    Allow to add a custom vector. See Template section parameters
    Uid float64
    User ID whom owns the virtual router.
    Uname string
    User Name whom owns the virtual router.
    VirtualRouterId string
    ID of the virtual router.
    defaultTags Map<String,String>
    Default tags defined in the provider configuration.
    description String
    Description of the virtual router.
    gid Double
    Group ID which owns the virtual router.
    gname String
    Group Name which owns the virtual router.
    group String
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    instanceTemplateId Double
    The ID of the template of the virtual router instances.
    lock String
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the virtual router.
    permissions String
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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<VirtualRouterTemplateSection>
    Allow to add a custom vector. See Template section parameters
    uid Double
    User ID whom owns the virtual router.
    uname String
    User Name whom owns the virtual router.
    virtualRouterId String
    ID of the virtual router.
    defaultTags {[key: string]: string}
    Default tags defined in the provider configuration.
    description string
    Description of the virtual router.
    gid number
    Group ID which owns the virtual router.
    gname string
    Group Name which owns the virtual router.
    group string
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    instanceTemplateId number
    The ID of the template of the virtual router instances.
    lock string
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name string
    The name of the virtual router.
    permissions string
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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 VirtualRouterTemplateSection[]
    Allow to add a custom vector. See Template section parameters
    uid number
    User ID whom owns the virtual router.
    uname string
    User Name whom owns the virtual router.
    virtualRouterId string
    ID of the virtual router.
    default_tags Mapping[str, str]
    Default tags defined in the provider configuration.
    description str
    Description of the virtual router.
    gid float
    Group ID which owns the virtual router.
    gname str
    Group Name which owns the virtual router.
    group str
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    instance_template_id float
    The ID of the template of the virtual router instances.
    lock str
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name str
    The name of the virtual router.
    permissions str
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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[VirtualRouterTemplateSectionArgs]
    Allow to add a custom vector. See Template section parameters
    uid float
    User ID whom owns the virtual router.
    uname str
    User Name whom owns the virtual router.
    virtual_router_id str
    ID of the virtual router.
    defaultTags Map<String>
    Default tags defined in the provider configuration.
    description String
    Description of the virtual router.
    gid Number
    Group ID which owns the virtual router.
    gname String
    Group Name which owns the virtual router.
    group String
    Name of the group which owns the virtual router. Defaults to the caller primary group.
    instanceTemplateId Number
    The ID of the template of the virtual router instances.
    lock String
    Lock the VM with a specific lock level. Supported values: USE, MANAGE, ADMIN, ALL or UNLOCK.
    name String
    The name of the virtual router.
    permissions String
    Permissions applied on virtual router. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
    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 virtual router.
    uname String
    User Name whom owns the virtual router.
    virtualRouterId String
    ID of the virtual router.

    Supporting Types

    VirtualRouterTemplateSection, VirtualRouterTemplateSectionArgs

    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.

    Import

    opennebula_virtual_router can be imported using its ID:

    $ pulumi import opennebula:index/virtualRouter:VirtualRouter 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