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",
}],
});
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",
}])
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
})
}
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",
},
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args VirtualMachineGroupArgs
- 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 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 string
- The unique name of the resource.
- args VirtualMachineGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := opennebula.NewVirtualMachineGroup(ctx, "virtualMachineGroupResource", &opennebula.VirtualMachineGroupArgs{
Roles: opennebula.VirtualMachineGroupRoleArray{
&opennebula.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: opennebula.VirtualMachineGroupTemplateSectionArray{
&opennebula.VirtualMachineGroupTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
VirtualMachineGroupId: pulumi.String("string"),
})
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());
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")
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",
});
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
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
List<Virtual
Machine Group Role> - 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.
- Dictionary<string, string>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Template
Sections List<VirtualMachine Group Template Section> - Allow to add a custom vector. See Template section parameters
- Virtual
Machine stringGroup Id - ID of the virtual machine.
- Roles
[]Virtual
Machine Group Role Args - 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.
- map[string]string
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Template
Sections []VirtualMachine Group Template Section Args - Allow to add a custom vector. See Template section parameters
- Virtual
Machine stringGroup Id - ID of the virtual machine.
- roles
List<Virtual
Machine Group Role> - 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.
- Map<String,String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Sections List<VirtualMachine Group Template Section> - Allow to add a custom vector. See Template section parameters
- virtual
Machine StringGroup Id - ID of the virtual machine.
- roles
Virtual
Machine Group Role[] - 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.
- {[key: string]: string}
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Sections VirtualMachine Group Template Section[] - Allow to add a custom vector. See Template section parameters
- virtual
Machine stringGroup Id - ID of the virtual machine.
- roles
Sequence[Virtual
Machine Group Role Args] - 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.
- Mapping[str, str]
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template_
sections Sequence[VirtualMachine Group Template Section Args] - Allow to add a custom vector. See Template section parameters
- virtual_
machine_ strgroup_ id - ID of the virtual machine.
- roles 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.
- Map<String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Sections List<Property Map> - Allow to add a custom vector. See Template section parameters
- virtual
Machine StringGroup Id - ID of the virtual machine.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachineGroup resource produces the following output properties:
- 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.
- Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Uid double
- User ID whom owns the virtual machine.
- Uname string
- User Name whom owns the virtual machine.
- 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.
- map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Uid float64
- User ID whom owns the virtual machine.
- Uname string
- User Name whom owns the virtual machine.
- 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.
- Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - uid Double
- User ID whom owns the virtual machine.
- uname String
- User Name whom owns the virtual machine.
- {[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.
- {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - uid number
- User ID whom owns the virtual machine.
- uname string
- User Name whom owns the virtual machine.
- 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.
- Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - uid float
- User ID whom owns the virtual machine.
- uname str
- User Name whom owns the virtual machine.
- 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.
- Map<String>
- Result of the applied
default_tags
and then resourcetags
. - 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
- 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.
- 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<Virtual
Machine Group Role> - List of roles. See Role parameters below for details.
- Dictionary<string, string>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Template
Sections List<VirtualMachine Group Template Section> - 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.
- Virtual
Machine stringGroup Id - ID of the virtual machine.
- 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
[]Virtual
Machine Group Role Args - List of roles. See Role parameters below for details.
- map[string]string
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Template
Sections []VirtualMachine Group Template Section Args - 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.
- Virtual
Machine stringGroup Id - ID of the virtual machine.
- 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<Virtual
Machine Group Role> - List of roles. See Role parameters below for details.
- Map<String,String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - template
Sections List<VirtualMachine Group Template Section> - 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.
- virtual
Machine StringGroup Id - ID of the virtual machine.
- {[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
Virtual
Machine Group Role[] - List of roles. See Role parameters below for details.
- {[key: string]: string}
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - template
Sections VirtualMachine Group Template Section[] - 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.
- virtual
Machine stringGroup Id - ID of the virtual machine.
- 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[Virtual
Machine Group Role Args] - List of roles. See Role parameters below for details.
- Mapping[str, str]
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - template_
sections Sequence[VirtualMachine Group Template Section Args] - 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_ strgroup_ id - ID of the virtual machine.
- 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.
- Map<String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Map<String>
- Result of the applied
default_tags
and then resourcetags
. - template
Sections List<Property Map> - Allow to add a custom vector. See Template section parameters
- uid Number
- User ID whom owns the virtual machine.
- uname String
- User Name whom owns the virtual machine.
- virtual
Machine StringGroup Id - ID of the virtual machine.
Supporting Types
VirtualMachineGroupRole, VirtualMachineGroupRoleArgs
- Name string
- Name of the role.
- Host
Affineds List<double> - List of Hosts affined to Virtual Machines using this role.
- Host
Anti List<double>Affineds - 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 string
- Name of the role.
- Host
Affineds []float64 - List of Hosts affined to Virtual Machines using this role.
- Host
Anti []float64Affineds - 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 String
- Name of the role.
- host
Affineds List<Double> - List of Hosts affined to Virtual Machines using this role.
- host
Anti List<Double>Affineds - 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 string
- Name of the role.
- host
Affineds number[] - List of Hosts affined to Virtual Machines using this role.
- host
Anti number[]Affineds - 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 str
- Name of the role.
- host_
affineds Sequence[float] - List of Hosts affined to Virtual Machines using this role.
- host_
anti_ Sequence[float]affineds - 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 String
- Name of the role.
- host
Affineds List<Number> - List of Hosts affined to Virtual Machines using this role.
- host
Anti List<Number>Affineds - 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
Import
opennebula_virtual_machine_group
can be imported using its ID:
$ pulumi import opennebula:index/virtualMachineGroup:VirtualMachineGroup 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.