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

opennebula.VirtualMachineGroup

Explore with Pulumi AI

Provides an OpenNebula virtual machine group resource.

This resource allows you to manage virtual machine groups on your OpenNebula clusters. When applied, a new virtual machine group is created. When destroyed, this virtual machine group is removed.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opennebula from "@pulumi/opennebula";

const example = new opennebula.VirtualMachineGroup("example", {
    group: "oneadmin",
    permissions: "642",
    roles: [{
        hostAntiAffineds: [0],
        name: "anti-aff",
        policy: "ANTI_AFFINED",
    }],
    tags: {
        environment: "example",
    },
    templateSections: [{
        elements: {
            key1: "value1",
        },
        name: "example",
    }],
});
Copy
import pulumi
import pulumi_opennebula as opennebula

example = opennebula.VirtualMachineGroup("example",
    group="oneadmin",
    permissions="642",
    roles=[{
        "host_anti_affineds": [0],
        "name": "anti-aff",
        "policy": "ANTI_AFFINED",
    }],
    tags={
        "environment": "example",
    },
    template_sections=[{
        "elements": {
            "key1": "value1",
        },
        "name": "example",
    }])
Copy
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.NewVirtualMachineGroup(ctx, "example", &opennebula.VirtualMachineGroupArgs{
			Group:       pulumi.String("oneadmin"),
			Permissions: pulumi.String("642"),
			Roles: opennebula.VirtualMachineGroupRoleArray{
				&opennebula.VirtualMachineGroupRoleArgs{
					HostAntiAffineds: pulumi.Float64Array{
						pulumi.Float64(0),
					},
					Name:   pulumi.String("anti-aff"),
					Policy: pulumi.String("ANTI_AFFINED"),
				},
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("example"),
			},
			TemplateSections: opennebula.VirtualMachineGroupTemplateSectionArray{
				&opennebula.VirtualMachineGroupTemplateSectionArgs{
					Elements: pulumi.StringMap{
						"key1": pulumi.String("value1"),
					},
					Name: pulumi.String("example"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opennebula = Pulumi.Opennebula;

return await Deployment.RunAsync(() => 
{
    var example = new Opennebula.VirtualMachineGroup("example", new()
    {
        Group = "oneadmin",
        Permissions = "642",
        Roles = new[]
        {
            new Opennebula.Inputs.VirtualMachineGroupRoleArgs
            {
                HostAntiAffineds = new[]
                {
                    0,
                },
                Name = "anti-aff",
                Policy = "ANTI_AFFINED",
            },
        },
        Tags = 
        {
            { "environment", "example" },
        },
        TemplateSections = new[]
        {
            new Opennebula.Inputs.VirtualMachineGroupTemplateSectionArgs
            {
                Elements = 
                {
                    { "key1", "value1" },
                },
                Name = "example",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opennebula.VirtualMachineGroup;
import com.pulumi.opennebula.VirtualMachineGroupArgs;
import com.pulumi.opennebula.inputs.VirtualMachineGroupRoleArgs;
import com.pulumi.opennebula.inputs.VirtualMachineGroupTemplateSectionArgs;
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 VirtualMachineGroup("example", VirtualMachineGroupArgs.builder()
            .group("oneadmin")
            .permissions("642")
            .roles(VirtualMachineGroupRoleArgs.builder()
                .hostAntiAffineds(0)
                .name("anti-aff")
                .policy("ANTI_AFFINED")
                .build())
            .tags(Map.of("environment", "example"))
            .templateSections(VirtualMachineGroupTemplateSectionArgs.builder()
                .elements(Map.of("key1", "value1"))
                .name("example")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: opennebula:VirtualMachineGroup
    properties:
      group: oneadmin
      permissions: '642'
      roles:
        - hostAntiAffineds:
            - 0
          name: anti-aff
          policy: ANTI_AFFINED
      tags:
        environment: example
      templateSections:
        - elements:
            key1: value1
          name: example
Copy

Role Attribute Reference

The Following attributes are exported under role:

  • id - ID of the role.

Create VirtualMachineGroup Resource

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

Constructor syntax

new VirtualMachineGroup(name: string, args: VirtualMachineGroupArgs, opts?: CustomResourceOptions);
@overload
def VirtualMachineGroup(resource_name: str,
                        args: VirtualMachineGroupArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def VirtualMachineGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        roles: Optional[Sequence[VirtualMachineGroupRoleArgs]] = None,
                        group: Optional[str] = None,
                        name: Optional[str] = None,
                        permissions: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        template_sections: Optional[Sequence[VirtualMachineGroupTemplateSectionArgs]] = None,
                        virtual_machine_group_id: Optional[str] = None)
func NewVirtualMachineGroup(ctx *Context, name string, args VirtualMachineGroupArgs, opts ...ResourceOption) (*VirtualMachineGroup, error)
public VirtualMachineGroup(string name, VirtualMachineGroupArgs args, CustomResourceOptions? opts = null)
public VirtualMachineGroup(String name, VirtualMachineGroupArgs args)
public VirtualMachineGroup(String name, VirtualMachineGroupArgs args, CustomResourceOptions options)
type: opennebula:VirtualMachineGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VirtualMachineGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VirtualMachineGroupArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VirtualMachineGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VirtualMachineGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VirtualMachineGroupArgs
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 virtualMachineGroupResource = new Opennebula.VirtualMachineGroup("virtualMachineGroupResource", new()
{
    Roles = new[]
    {
        new Opennebula.Inputs.VirtualMachineGroupRoleArgs
        {
            Name = "string",
            HostAffineds = new[]
            {
                0,
            },
            HostAntiAffineds = new[]
            {
                0,
            },
            Id = 0,
            Policy = "string",
        },
    },
    Group = "string",
    Name = "string",
    Permissions = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TemplateSections = new[]
    {
        new Opennebula.Inputs.VirtualMachineGroupTemplateSectionArgs
        {
            Name = "string",
            Elements = 
            {
                { "string", "string" },
            },
        },
    },
    VirtualMachineGroupId = "string",
});
Copy
example, err := opennebula.NewVirtualMachineGroup(ctx, "virtualMachineGroupResource", &opennebula.VirtualMachineGroupArgs{
Roles: .VirtualMachineGroupRoleArray{
&.VirtualMachineGroupRoleArgs{
Name: pulumi.String("string"),
HostAffineds: pulumi.Float64Array{
pulumi.Float64(0),
},
HostAntiAffineds: pulumi.Float64Array{
pulumi.Float64(0),
},
Id: pulumi.Float64(0),
Policy: pulumi.String("string"),
},
},
Group: pulumi.String("string"),
Name: pulumi.String("string"),
Permissions: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemplateSections: .VirtualMachineGroupTemplateSectionArray{
&.VirtualMachineGroupTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
VirtualMachineGroupId: pulumi.String("string"),
})
Copy
var virtualMachineGroupResource = new VirtualMachineGroup("virtualMachineGroupResource", VirtualMachineGroupArgs.builder()
    .roles(VirtualMachineGroupRoleArgs.builder()
        .name("string")
        .hostAffineds(0)
        .hostAntiAffineds(0)
        .id(0)
        .policy("string")
        .build())
    .group("string")
    .name("string")
    .permissions("string")
    .tags(Map.of("string", "string"))
    .templateSections(VirtualMachineGroupTemplateSectionArgs.builder()
        .name("string")
        .elements(Map.of("string", "string"))
        .build())
    .virtualMachineGroupId("string")
    .build());
Copy
virtual_machine_group_resource = opennebula.VirtualMachineGroup("virtualMachineGroupResource",
    roles=[{
        "name": "string",
        "host_affineds": [0],
        "host_anti_affineds": [0],
        "id": 0,
        "policy": "string",
    }],
    group="string",
    name="string",
    permissions="string",
    tags={
        "string": "string",
    },
    template_sections=[{
        "name": "string",
        "elements": {
            "string": "string",
        },
    }],
    virtual_machine_group_id="string")
Copy
const virtualMachineGroupResource = new opennebula.VirtualMachineGroup("virtualMachineGroupResource", {
    roles: [{
        name: "string",
        hostAffineds: [0],
        hostAntiAffineds: [0],
        id: 0,
        policy: "string",
    }],
    group: "string",
    name: "string",
    permissions: "string",
    tags: {
        string: "string",
    },
    templateSections: [{
        name: "string",
        elements: {
            string: "string",
        },
    }],
    virtualMachineGroupId: "string",
});
Copy
type: opennebula:VirtualMachineGroup
properties:
    group: string
    name: string
    permissions: string
    roles:
        - hostAffineds:
            - 0
          hostAntiAffineds:
            - 0
          id: 0
          name: string
          policy: string
    tags:
        string: string
    templateSections:
        - elements:
            string: string
          name: string
    virtualMachineGroupId: string
Copy

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

Roles This property is required. List<VirtualMachineGroupRole>
List of roles. See Role parameters below for details.
Group string
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
Name string
The name of the virtual machine group.
Permissions string
Permissions applied on virtual machine group. 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<VirtualMachineGroupTemplateSection>
Allow to add a custom vector. See Template section parameters
VirtualMachineGroupId string
ID of the virtual machine.
Roles This property is required. []VirtualMachineGroupRoleArgs
List of roles. See Role parameters below for details.
Group string
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
Name string
The name of the virtual machine group.
Permissions string
Permissions applied on virtual machine group. 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 []VirtualMachineGroupTemplateSectionArgs
Allow to add a custom vector. See Template section parameters
VirtualMachineGroupId string
ID of the virtual machine.
roles This property is required. List<VirtualMachineGroupRole>
List of roles. See Role parameters below for details.
group String
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name String
The name of the virtual machine group.
permissions String
Permissions applied on virtual machine group. 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<VirtualMachineGroupTemplateSection>
Allow to add a custom vector. See Template section parameters
virtualMachineGroupId String
ID of the virtual machine.
roles This property is required. VirtualMachineGroupRole[]
List of roles. See Role parameters below for details.
group string
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name string
The name of the virtual machine group.
permissions string
Permissions applied on virtual machine group. 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 VirtualMachineGroupTemplateSection[]
Allow to add a custom vector. See Template section parameters
virtualMachineGroupId string
ID of the virtual machine.
roles This property is required. Sequence[VirtualMachineGroupRoleArgs]
List of roles. See Role parameters below for details.
group str
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name str
The name of the virtual machine group.
permissions str
Permissions applied on virtual machine group. 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[VirtualMachineGroupTemplateSectionArgs]
Allow to add a custom vector. See Template section parameters
virtual_machine_group_id str
ID of the virtual machine.
roles This property is required. List<Property Map>
List of roles. See Role parameters below for details.
group String
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name String
The name of the virtual machine group.
permissions String
Permissions applied on virtual machine group. 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
virtualMachineGroupId String
ID of the virtual machine.

Outputs

All input properties are implicitly available as output properties. Additionally, the VirtualMachineGroup 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 machine.
Gname string
Group Name which owns the virtual machine.
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 machine.
Uname string
User Name whom owns the virtual machine.
DefaultTags map[string]string
Default tags defined in the provider configuration.
Gid float64
Group ID which owns the virtual machine.
Gname string
Group Name which owns the virtual machine.
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 machine.
Uname string
User Name whom owns the virtual machine.
defaultTags Map<String,String>
Default tags defined in the provider configuration.
gid Double
Group ID which owns the virtual machine.
gname String
Group Name which owns the virtual machine.
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 machine.
uname String
User Name whom owns the virtual machine.
defaultTags {[key: string]: string}
Default tags defined in the provider configuration.
gid number
Group ID which owns the virtual machine.
gname string
Group Name which owns the virtual machine.
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 machine.
uname string
User Name whom owns the virtual machine.
default_tags Mapping[str, str]
Default tags defined in the provider configuration.
gid float
Group ID which owns the virtual machine.
gname str
Group Name which owns the virtual machine.
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 machine.
uname str
User Name whom owns the virtual machine.
defaultTags Map<String>
Default tags defined in the provider configuration.
gid Number
Group ID which owns the virtual machine.
gname String
Group Name which owns the virtual machine.
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 machine.
uname String
User Name whom owns the virtual machine.

Look up Existing VirtualMachineGroup Resource

Get an existing VirtualMachineGroup 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?: VirtualMachineGroupState, opts?: CustomResourceOptions): VirtualMachineGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        default_tags: Optional[Mapping[str, str]] = None,
        gid: Optional[float] = None,
        gname: Optional[str] = None,
        group: Optional[str] = None,
        name: Optional[str] = None,
        permissions: Optional[str] = None,
        roles: Optional[Sequence[VirtualMachineGroupRoleArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        template_sections: Optional[Sequence[VirtualMachineGroupTemplateSectionArgs]] = None,
        uid: Optional[float] = None,
        uname: Optional[str] = None,
        virtual_machine_group_id: Optional[str] = None) -> VirtualMachineGroup
func GetVirtualMachineGroup(ctx *Context, name string, id IDInput, state *VirtualMachineGroupState, opts ...ResourceOption) (*VirtualMachineGroup, error)
public static VirtualMachineGroup Get(string name, Input<string> id, VirtualMachineGroupState? state, CustomResourceOptions? opts = null)
public static VirtualMachineGroup get(String name, Output<String> id, VirtualMachineGroupState state, CustomResourceOptions options)
resources:  _:    type: opennebula:VirtualMachineGroup    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
Gid double
Group ID which owns the virtual machine.
Gname string
Group Name which owns the virtual machine.
Group string
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
Name string
The name of the virtual machine group.
Permissions string
Permissions applied on virtual machine group. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin.
Roles List<VirtualMachineGroupRole>
List of roles. See Role parameters below for details.
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<VirtualMachineGroupTemplateSection>
Allow to add a custom vector. See Template section parameters
Uid double
User ID whom owns the virtual machine.
Uname string
User Name whom owns the virtual machine.
VirtualMachineGroupId string
ID of the virtual machine.
DefaultTags map[string]string
Default tags defined in the provider configuration.
Gid float64
Group ID which owns the virtual machine.
Gname string
Group Name which owns the virtual machine.
Group string
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
Name string
The name of the virtual machine group.
Permissions string
Permissions applied on virtual machine group. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin.
Roles []VirtualMachineGroupRoleArgs
List of roles. See Role parameters below for details.
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 []VirtualMachineGroupTemplateSectionArgs
Allow to add a custom vector. See Template section parameters
Uid float64
User ID whom owns the virtual machine.
Uname string
User Name whom owns the virtual machine.
VirtualMachineGroupId string
ID of the virtual machine.
defaultTags Map<String,String>
Default tags defined in the provider configuration.
gid Double
Group ID which owns the virtual machine.
gname String
Group Name which owns the virtual machine.
group String
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name String
The name of the virtual machine group.
permissions String
Permissions applied on virtual machine group. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin.
roles List<VirtualMachineGroupRole>
List of roles. See Role parameters below for details.
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<VirtualMachineGroupTemplateSection>
Allow to add a custom vector. See Template section parameters
uid Double
User ID whom owns the virtual machine.
uname String
User Name whom owns the virtual machine.
virtualMachineGroupId String
ID of the virtual machine.
defaultTags {[key: string]: string}
Default tags defined in the provider configuration.
gid number
Group ID which owns the virtual machine.
gname string
Group Name which owns the virtual machine.
group string
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name string
The name of the virtual machine group.
permissions string
Permissions applied on virtual machine group. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin.
roles VirtualMachineGroupRole[]
List of roles. See Role parameters below for details.
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 VirtualMachineGroupTemplateSection[]
Allow to add a custom vector. See Template section parameters
uid number
User ID whom owns the virtual machine.
uname string
User Name whom owns the virtual machine.
virtualMachineGroupId string
ID of the virtual machine.
default_tags Mapping[str, str]
Default tags defined in the provider configuration.
gid float
Group ID which owns the virtual machine.
gname str
Group Name which owns the virtual machine.
group str
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name str
The name of the virtual machine group.
permissions str
Permissions applied on virtual machine group. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin.
roles Sequence[VirtualMachineGroupRoleArgs]
List of roles. See Role parameters below for details.
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[VirtualMachineGroupTemplateSectionArgs]
Allow to add a custom vector. See Template section parameters
uid float
User ID whom owns the virtual machine.
uname str
User Name whom owns the virtual machine.
virtual_machine_group_id str
ID of the virtual machine.
defaultTags Map<String>
Default tags defined in the provider configuration.
gid Number
Group ID which owns the virtual machine.
gname String
Group Name which owns the virtual machine.
group String
Name of the group which owns the virtual machine group. Defaults to the caller primary group.
name String
The name of the virtual machine group.
permissions String
Permissions applied on virtual machine group. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin.
roles List<Property Map>
List of roles. See Role parameters below for details.
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 machine.
uname String
User Name whom owns the virtual machine.
virtualMachineGroupId String
ID of the virtual machine.

Supporting Types

VirtualMachineGroupRole
, VirtualMachineGroupRoleArgs

Name This property is required. string
Name of the role.
HostAffineds List<double>
List of Hosts affined to Virtual Machines using this role.
HostAntiAffineds List<double>
List of Hosts not-affined to Virtual Machines using this role.
Id double
ID of the virtual machine.
Policy string
Policy to apply between Virtual Machines using this role. Allowed Values: NONE, AFFINED, ANTI_AFFINED.
Name This property is required. string
Name of the role.
HostAffineds []float64
List of Hosts affined to Virtual Machines using this role.
HostAntiAffineds []float64
List of Hosts not-affined to Virtual Machines using this role.
Id float64
ID of the virtual machine.
Policy string
Policy to apply between Virtual Machines using this role. Allowed Values: NONE, AFFINED, ANTI_AFFINED.
name This property is required. String
Name of the role.
hostAffineds List<Double>
List of Hosts affined to Virtual Machines using this role.
hostAntiAffineds List<Double>
List of Hosts not-affined to Virtual Machines using this role.
id Double
ID of the virtual machine.
policy String
Policy to apply between Virtual Machines using this role. Allowed Values: NONE, AFFINED, ANTI_AFFINED.
name This property is required. string
Name of the role.
hostAffineds number[]
List of Hosts affined to Virtual Machines using this role.
hostAntiAffineds number[]
List of Hosts not-affined to Virtual Machines using this role.
id number
ID of the virtual machine.
policy string
Policy to apply between Virtual Machines using this role. Allowed Values: NONE, AFFINED, ANTI_AFFINED.
name This property is required. str
Name of the role.
host_affineds Sequence[float]
List of Hosts affined to Virtual Machines using this role.
host_anti_affineds Sequence[float]
List of Hosts not-affined to Virtual Machines using this role.
id float
ID of the virtual machine.
policy str
Policy to apply between Virtual Machines using this role. Allowed Values: NONE, AFFINED, ANTI_AFFINED.
name This property is required. String
Name of the role.
hostAffineds List<Number>
List of Hosts affined to Virtual Machines using this role.
hostAntiAffineds List<Number>
List of Hosts not-affined to Virtual Machines using this role.
id Number
ID of the virtual machine.
policy String
Policy to apply between Virtual Machines using this role. Allowed Values: NONE, AFFINED, ANTI_AFFINED.

VirtualMachineGroupTemplateSection
, VirtualMachineGroupTemplateSectionArgs

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

Import

opennebula_virtual_machine_group can be imported using its ID:

$ pulumi import opennebula:index/virtualMachineGroup:VirtualMachineGroup example 123
Copy

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.