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

opennebula.Group

Explore with Pulumi AI

Provides an OpenNebula group resource.

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

Example Usage

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

const exampleGroup = new opennebula.Group("exampleGroup", {
    tags: {
        environment: "example",
    },
    templateSections: [{
        name: "example",
        elements: {
            key1: "value1",
        },
    }],
});
const exampleGroupQuotas = new opennebula.GroupQuotas("exampleGroupQuotas", {
    groupId: exampleGroup.groupId,
    datastores: [{
        id: 1,
        images: 3,
        size: 10000,
    }],
    vms: [{
        cpu: 3,
        runningCpu: 3,
        memory: 2048,
        runningMemory: 2048,
    }],
    networks: [
        {
            id: 10,
            leases: 6,
        },
        {
            id: 11,
            leases: 4,
        },
    ],
    images: [
        {
            id: 8,
            runningVms: 1,
        },
        {
            id: 9,
            runningVms: 1,
        },
    ],
});
Copy
import pulumi
import pulumi_opennebula as opennebula

example_group = opennebula.Group("exampleGroup",
    tags={
        "environment": "example",
    },
    template_sections=[{
        "name": "example",
        "elements": {
            "key1": "value1",
        },
    }])
example_group_quotas = opennebula.GroupQuotas("exampleGroupQuotas",
    group_id=example_group.group_id,
    datastores=[{
        "id": 1,
        "images": 3,
        "size": 10000,
    }],
    vms=[{
        "cpu": 3,
        "running_cpu": 3,
        "memory": 2048,
        "running_memory": 2048,
    }],
    networks=[
        {
            "id": 10,
            "leases": 6,
        },
        {
            "id": 11,
            "leases": 4,
        },
    ],
    images=[
        {
            "id": 8,
            "running_vms": 1,
        },
        {
            "id": 9,
            "running_vms": 1,
        },
    ])
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 {
		exampleGroup, err := opennebula.NewGroup(ctx, "exampleGroup", &opennebula.GroupArgs{
			Tags: pulumi.StringMap{
				"environment": pulumi.String("example"),
			},
			TemplateSections: opennebula.GroupTemplateSectionArray{
				&opennebula.GroupTemplateSectionArgs{
					Name: pulumi.String("example"),
					Elements: pulumi.StringMap{
						"key1": pulumi.String("value1"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = opennebula.NewGroupQuotas(ctx, "exampleGroupQuotas", &opennebula.GroupQuotasArgs{
			GroupId: exampleGroup.GroupId,
			Datastores: opennebula.GroupQuotasDatastoreArray{
				&opennebula.GroupQuotasDatastoreArgs{
					Id:     pulumi.Float64(1),
					Images: pulumi.Float64(3),
					Size:   pulumi.Float64(10000),
				},
			},
			Vms: opennebula.GroupQuotasVmArray{
				&opennebula.GroupQuotasVmArgs{
					Cpu:           pulumi.Float64(3),
					RunningCpu:    pulumi.Float64(3),
					Memory:        pulumi.Float64(2048),
					RunningMemory: pulumi.Float64(2048),
				},
			},
			Networks: opennebula.GroupQuotasNetworkArray{
				&opennebula.GroupQuotasNetworkArgs{
					Id:     pulumi.Float64(10),
					Leases: pulumi.Float64(6),
				},
				&opennebula.GroupQuotasNetworkArgs{
					Id:     pulumi.Float64(11),
					Leases: pulumi.Float64(4),
				},
			},
			Images: opennebula.GroupQuotasImageArray{
				&opennebula.GroupQuotasImageArgs{
					Id:         pulumi.Float64(8),
					RunningVms: pulumi.Float64(1),
				},
				&opennebula.GroupQuotasImageArgs{
					Id:         pulumi.Float64(9),
					RunningVms: pulumi.Float64(1),
				},
			},
		})
		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 exampleGroup = new Opennebula.Group("exampleGroup", new()
    {
        Tags = 
        {
            { "environment", "example" },
        },
        TemplateSections = new[]
        {
            new Opennebula.Inputs.GroupTemplateSectionArgs
            {
                Name = "example",
                Elements = 
                {
                    { "key1", "value1" },
                },
            },
        },
    });

    var exampleGroupQuotas = new Opennebula.GroupQuotas("exampleGroupQuotas", new()
    {
        GroupId = exampleGroup.GroupId,
        Datastores = new[]
        {
            new Opennebula.Inputs.GroupQuotasDatastoreArgs
            {
                Id = 1,
                Images = 3,
                Size = 10000,
            },
        },
        Vms = new[]
        {
            new Opennebula.Inputs.GroupQuotasVmArgs
            {
                Cpu = 3,
                RunningCpu = 3,
                Memory = 2048,
                RunningMemory = 2048,
            },
        },
        Networks = new[]
        {
            new Opennebula.Inputs.GroupQuotasNetworkArgs
            {
                Id = 10,
                Leases = 6,
            },
            new Opennebula.Inputs.GroupQuotasNetworkArgs
            {
                Id = 11,
                Leases = 4,
            },
        },
        Images = new[]
        {
            new Opennebula.Inputs.GroupQuotasImageArgs
            {
                Id = 8,
                RunningVms = 1,
            },
            new Opennebula.Inputs.GroupQuotasImageArgs
            {
                Id = 9,
                RunningVms = 1,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opennebula.Group;
import com.pulumi.opennebula.GroupArgs;
import com.pulumi.opennebula.inputs.GroupTemplateSectionArgs;
import com.pulumi.opennebula.GroupQuotas;
import com.pulumi.opennebula.GroupQuotasArgs;
import com.pulumi.opennebula.inputs.GroupQuotasDatastoreArgs;
import com.pulumi.opennebula.inputs.GroupQuotasVmArgs;
import com.pulumi.opennebula.inputs.GroupQuotasNetworkArgs;
import com.pulumi.opennebula.inputs.GroupQuotasImageArgs;
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 exampleGroup = new Group("exampleGroup", GroupArgs.builder()
            .tags(Map.of("environment", "example"))
            .templateSections(GroupTemplateSectionArgs.builder()
                .name("example")
                .elements(Map.of("key1", "value1"))
                .build())
            .build());

        var exampleGroupQuotas = new GroupQuotas("exampleGroupQuotas", GroupQuotasArgs.builder()
            .groupId(exampleGroup.groupId())
            .datastores(GroupQuotasDatastoreArgs.builder()
                .id(1)
                .images(3)
                .size(10000)
                .build())
            .vms(GroupQuotasVmArgs.builder()
                .cpu(3)
                .runningCpu(3)
                .memory(2048)
                .runningMemory(2048)
                .build())
            .networks(            
                GroupQuotasNetworkArgs.builder()
                    .id(10)
                    .leases(6)
                    .build(),
                GroupQuotasNetworkArgs.builder()
                    .id(11)
                    .leases(4)
                    .build())
            .images(            
                GroupQuotasImageArgs.builder()
                    .id(8)
                    .runningVms(1)
                    .build(),
                GroupQuotasImageArgs.builder()
                    .id(9)
                    .runningVms(1)
                    .build())
            .build());

    }
}
Copy
resources:
  exampleGroup:
    type: opennebula:Group
    properties:
      tags:
        environment: example
      templateSections:
        - name: example
          elements:
            key1: value1
  exampleGroupQuotas:
    type: opennebula:GroupQuotas
    properties:
      groupId: ${exampleGroup.groupId}
      datastores:
        - id: 1
          images: 3
          size: 10000
      vms:
        - cpu: 3
          runningCpu: 3
          memory: 2048
          runningMemory: 2048
      networks:
        - id: 10
          leases: 6
        - id: 11
          leases: 4
      images:
        - id: 8
          runningVms: 1
        - id: 9
          runningVms: 1
Copy

Create Group Resource

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

Constructor syntax

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

@overload
def Group(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          admins: Optional[Sequence[float]] = None,
          group_id: Optional[str] = None,
          name: Optional[str] = None,
          opennebulas: Optional[Sequence[GroupOpennebulaArgs]] = None,
          quotas: Optional[Sequence[GroupQuotaArgs]] = None,
          sunstones: Optional[Sequence[GroupSunstoneArgs]] = None,
          tags: Optional[Mapping[str, str]] = None,
          template_sections: Optional[Sequence[GroupTemplateSectionArgs]] = None,
          users: Optional[Sequence[float]] = None)
func NewGroup(ctx *Context, name string, args *GroupArgs, opts ...ResourceOption) (*Group, error)
public Group(string name, GroupArgs? args = null, CustomResourceOptions? opts = null)
public Group(String name, GroupArgs args)
public Group(String name, GroupArgs args, CustomResourceOptions options)
type: opennebula:Group
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 GroupArgs
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 GroupArgs
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 GroupArgs
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 GroupArgs
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. GroupArgs
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 groupResource = new Opennebula.Group("groupResource", new()
{
    GroupId = "string",
    Name = "string",
    Opennebulas = new[]
    {
        new Opennebula.Inputs.GroupOpennebulaArgs
        {
            ApiListOrder = "string",
            DefaultImagePersistent = "string",
            DefaultImagePersistentNew = "string",
        },
    },
    Sunstones = new[]
    {
        new Opennebula.Inputs.GroupSunstoneArgs
        {
            DefaultView = "string",
            GroupAdminDefaultView = "string",
            GroupAdminViews = "string",
            Views = "string",
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
    TemplateSections = new[]
    {
        new Opennebula.Inputs.GroupTemplateSectionArgs
        {
            Name = "string",
            Elements = 
            {
                { "string", "string" },
            },
        },
    },
});
Copy
example, err := opennebula.NewGroup(ctx, "groupResource", &opennebula.GroupArgs{
	GroupId: pulumi.String("string"),
	Name:    pulumi.String("string"),
	Opennebulas: opennebula.GroupOpennebulaArray{
		&opennebula.GroupOpennebulaArgs{
			ApiListOrder:              pulumi.String("string"),
			DefaultImagePersistent:    pulumi.String("string"),
			DefaultImagePersistentNew: pulumi.String("string"),
		},
	},
	Sunstones: opennebula.GroupSunstoneArray{
		&opennebula.GroupSunstoneArgs{
			DefaultView:           pulumi.String("string"),
			GroupAdminDefaultView: pulumi.String("string"),
			GroupAdminViews:       pulumi.String("string"),
			Views:                 pulumi.String("string"),
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TemplateSections: opennebula.GroupTemplateSectionArray{
		&opennebula.GroupTemplateSectionArgs{
			Name: pulumi.String("string"),
			Elements: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
		},
	},
})
Copy
var groupResource = new Group("groupResource", GroupArgs.builder()
    .groupId("string")
    .name("string")
    .opennebulas(GroupOpennebulaArgs.builder()
        .apiListOrder("string")
        .defaultImagePersistent("string")
        .defaultImagePersistentNew("string")
        .build())
    .sunstones(GroupSunstoneArgs.builder()
        .defaultView("string")
        .groupAdminDefaultView("string")
        .groupAdminViews("string")
        .views("string")
        .build())
    .tags(Map.of("string", "string"))
    .templateSections(GroupTemplateSectionArgs.builder()
        .name("string")
        .elements(Map.of("string", "string"))
        .build())
    .build());
Copy
group_resource = opennebula.Group("groupResource",
    group_id="string",
    name="string",
    opennebulas=[{
        "api_list_order": "string",
        "default_image_persistent": "string",
        "default_image_persistent_new": "string",
    }],
    sunstones=[{
        "default_view": "string",
        "group_admin_default_view": "string",
        "group_admin_views": "string",
        "views": "string",
    }],
    tags={
        "string": "string",
    },
    template_sections=[{
        "name": "string",
        "elements": {
            "string": "string",
        },
    }])
Copy
const groupResource = new opennebula.Group("groupResource", {
    groupId: "string",
    name: "string",
    opennebulas: [{
        apiListOrder: "string",
        defaultImagePersistent: "string",
        defaultImagePersistentNew: "string",
    }],
    sunstones: [{
        defaultView: "string",
        groupAdminDefaultView: "string",
        groupAdminViews: "string",
        views: "string",
    }],
    tags: {
        string: "string",
    },
    templateSections: [{
        name: "string",
        elements: {
            string: "string",
        },
    }],
});
Copy
type: opennebula:Group
properties:
    groupId: string
    name: string
    opennebulas:
        - apiListOrder: string
          defaultImagePersistent: string
          defaultImagePersistentNew: string
    sunstones:
        - defaultView: string
          groupAdminDefaultView: string
          groupAdminViews: string
          views: string
    tags:
        string: string
    templateSections:
        - elements:
            string: string
          name: string
Copy

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

Admins List<double>
List of Administrator user IDs part of the group.

Deprecated: Deprecated

GroupId string
ID of the group.
Name string
The name of the group.
Opennebulas List<GroupOpennebula>
OpenNebula core configuration. See Opennebula parameters below for details
Quotas List<GroupQuota>
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

Sunstones List<GroupSunstone>
Allow users and group admins to access specific views. See Sunstone 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.
TemplateSections List<GroupTemplateSection>
Allow to add a custom vector. See Template section parameters
Users List<double>
List of user IDs part of the group

Deprecated: Deprecated

Admins []float64
List of Administrator user IDs part of the group.

Deprecated: Deprecated

GroupId string
ID of the group.
Name string
The name of the group.
Opennebulas []GroupOpennebulaArgs
OpenNebula core configuration. See Opennebula parameters below for details
Quotas []GroupQuotaArgs
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

Sunstones []GroupSunstoneArgs
Allow users and group admins to access specific views. See Sunstone 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.
TemplateSections []GroupTemplateSectionArgs
Allow to add a custom vector. See Template section parameters
Users []float64
List of user IDs part of the group

Deprecated: Deprecated

admins List<Double>
List of Administrator user IDs part of the group.

Deprecated: Deprecated

groupId String
ID of the group.
name String
The name of the group.
opennebulas List<GroupOpennebula>
OpenNebula core configuration. See Opennebula parameters below for details
quotas List<GroupQuota>
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones List<GroupSunstone>
Allow users and group admins to access specific views. See Sunstone 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.
templateSections List<GroupTemplateSection>
Allow to add a custom vector. See Template section parameters
users List<Double>
List of user IDs part of the group

Deprecated: Deprecated

admins number[]
List of Administrator user IDs part of the group.

Deprecated: Deprecated

groupId string
ID of the group.
name string
The name of the group.
opennebulas GroupOpennebula[]
OpenNebula core configuration. See Opennebula parameters below for details
quotas GroupQuota[]
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones GroupSunstone[]
Allow users and group admins to access specific views. See Sunstone 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.
templateSections GroupTemplateSection[]
Allow to add a custom vector. See Template section parameters
users number[]
List of user IDs part of the group

Deprecated: Deprecated

admins Sequence[float]
List of Administrator user IDs part of the group.

Deprecated: Deprecated

group_id str
ID of the group.
name str
The name of the group.
opennebulas Sequence[GroupOpennebulaArgs]
OpenNebula core configuration. See Opennebula parameters below for details
quotas Sequence[GroupQuotaArgs]
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones Sequence[GroupSunstoneArgs]
Allow users and group admins to access specific views. See Sunstone 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.
template_sections Sequence[GroupTemplateSectionArgs]
Allow to add a custom vector. See Template section parameters
users Sequence[float]
List of user IDs part of the group

Deprecated: Deprecated

admins List<Number>
List of Administrator user IDs part of the group.

Deprecated: Deprecated

groupId String
ID of the group.
name String
The name of the group.
opennebulas List<Property Map>
OpenNebula core configuration. See Opennebula parameters below for details
quotas List<Property Map>
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones List<Property Map>
Allow users and group admins to access specific views. See Sunstone 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.
templateSections List<Property Map>
Allow to add a custom vector. See Template section parameters
users List<Number>
List of user IDs part of the group

Deprecated: Deprecated

Outputs

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

DefaultTags Dictionary<string, string>
Default tags defined in the provider configuration.
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.
DefaultTags map[string]string
Default tags defined in the provider configuration.
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.
defaultTags Map<String,String>
Default tags defined in the provider configuration.
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.
defaultTags {[key: string]: string}
Default tags defined in the provider configuration.
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.
default_tags Mapping[str, str]
Default tags defined in the provider configuration.
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.
defaultTags Map<String>
Default tags defined in the provider configuration.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String>
Result of the applied default_tags and then resource tags.

Look up Existing Group Resource

Get an existing Group 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?: GroupState, opts?: CustomResourceOptions): Group
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admins: Optional[Sequence[float]] = None,
        default_tags: Optional[Mapping[str, str]] = None,
        group_id: Optional[str] = None,
        name: Optional[str] = None,
        opennebulas: Optional[Sequence[GroupOpennebulaArgs]] = None,
        quotas: Optional[Sequence[GroupQuotaArgs]] = None,
        sunstones: Optional[Sequence[GroupSunstoneArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        template_sections: Optional[Sequence[GroupTemplateSectionArgs]] = None,
        users: Optional[Sequence[float]] = None) -> Group
func GetGroup(ctx *Context, name string, id IDInput, state *GroupState, opts ...ResourceOption) (*Group, error)
public static Group Get(string name, Input<string> id, GroupState? state, CustomResourceOptions? opts = null)
public static Group get(String name, Output<String> id, GroupState state, CustomResourceOptions options)
resources:  _:    type: opennebula:Group    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:
Admins List<double>
List of Administrator user IDs part of the group.

Deprecated: Deprecated

DefaultTags Dictionary<string, string>
Default tags defined in the provider configuration.
GroupId string
ID of the group.
Name string
The name of the group.
Opennebulas List<GroupOpennebula>
OpenNebula core configuration. See Opennebula parameters below for details
Quotas List<GroupQuota>
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

Sunstones List<GroupSunstone>
Allow users and group admins to access specific views. See Sunstone 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<GroupTemplateSection>
Allow to add a custom vector. See Template section parameters
Users List<double>
List of user IDs part of the group

Deprecated: Deprecated

Admins []float64
List of Administrator user IDs part of the group.

Deprecated: Deprecated

DefaultTags map[string]string
Default tags defined in the provider configuration.
GroupId string
ID of the group.
Name string
The name of the group.
Opennebulas []GroupOpennebulaArgs
OpenNebula core configuration. See Opennebula parameters below for details
Quotas []GroupQuotaArgs
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

Sunstones []GroupSunstoneArgs
Allow users and group admins to access specific views. See Sunstone 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 []GroupTemplateSectionArgs
Allow to add a custom vector. See Template section parameters
Users []float64
List of user IDs part of the group

Deprecated: Deprecated

admins List<Double>
List of Administrator user IDs part of the group.

Deprecated: Deprecated

defaultTags Map<String,String>
Default tags defined in the provider configuration.
groupId String
ID of the group.
name String
The name of the group.
opennebulas List<GroupOpennebula>
OpenNebula core configuration. See Opennebula parameters below for details
quotas List<GroupQuota>
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones List<GroupSunstone>
Allow users and group admins to access specific views. See Sunstone 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<GroupTemplateSection>
Allow to add a custom vector. See Template section parameters
users List<Double>
List of user IDs part of the group

Deprecated: Deprecated

admins number[]
List of Administrator user IDs part of the group.

Deprecated: Deprecated

defaultTags {[key: string]: string}
Default tags defined in the provider configuration.
groupId string
ID of the group.
name string
The name of the group.
opennebulas GroupOpennebula[]
OpenNebula core configuration. See Opennebula parameters below for details
quotas GroupQuota[]
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones GroupSunstone[]
Allow users and group admins to access specific views. See Sunstone 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 GroupTemplateSection[]
Allow to add a custom vector. See Template section parameters
users number[]
List of user IDs part of the group

Deprecated: Deprecated

admins Sequence[float]
List of Administrator user IDs part of the group.

Deprecated: Deprecated

default_tags Mapping[str, str]
Default tags defined in the provider configuration.
group_id str
ID of the group.
name str
The name of the group.
opennebulas Sequence[GroupOpennebulaArgs]
OpenNebula core configuration. See Opennebula parameters below for details
quotas Sequence[GroupQuotaArgs]
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones Sequence[GroupSunstoneArgs]
Allow users and group admins to access specific views. See Sunstone 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[GroupTemplateSectionArgs]
Allow to add a custom vector. See Template section parameters
users Sequence[float]
List of user IDs part of the group

Deprecated: Deprecated

admins List<Number>
List of Administrator user IDs part of the group.

Deprecated: Deprecated

defaultTags Map<String>
Default tags defined in the provider configuration.
groupId String
ID of the group.
name String
The name of the group.
opennebulas List<Property Map>
OpenNebula core configuration. See Opennebula parameters below for details
quotas List<Property Map>
See Quotas parameters below for details. Use resource_opennebula_group_quotas instead.

Deprecated: Deprecated

sunstones List<Property Map>
Allow users and group admins to access specific views. See Sunstone 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
users List<Number>
List of user IDs part of the group

Deprecated: Deprecated

Supporting Types

GroupOpennebula
, GroupOpennebulaArgs

ApiListOrder string
Sets order of elements by ID in list API calls: ASC or DESC respectively for ascending or descending order
DefaultImagePersistent string
Control the default value for the PERSISTENT attribute on image creation ( clone and disk save-as): should be YES or NO
DefaultImagePersistentNew string
Control the default value for the PERSISTENT attribute on image creation ( only new images): should be YES or NO
ApiListOrder string
Sets order of elements by ID in list API calls: ASC or DESC respectively for ascending or descending order
DefaultImagePersistent string
Control the default value for the PERSISTENT attribute on image creation ( clone and disk save-as): should be YES or NO
DefaultImagePersistentNew string
Control the default value for the PERSISTENT attribute on image creation ( only new images): should be YES or NO
apiListOrder String
Sets order of elements by ID in list API calls: ASC or DESC respectively for ascending or descending order
defaultImagePersistent String
Control the default value for the PERSISTENT attribute on image creation ( clone and disk save-as): should be YES or NO
defaultImagePersistentNew String
Control the default value for the PERSISTENT attribute on image creation ( only new images): should be YES or NO
apiListOrder string
Sets order of elements by ID in list API calls: ASC or DESC respectively for ascending or descending order
defaultImagePersistent string
Control the default value for the PERSISTENT attribute on image creation ( clone and disk save-as): should be YES or NO
defaultImagePersistentNew string
Control the default value for the PERSISTENT attribute on image creation ( only new images): should be YES or NO
api_list_order str
Sets order of elements by ID in list API calls: ASC or DESC respectively for ascending or descending order
default_image_persistent str
Control the default value for the PERSISTENT attribute on image creation ( clone and disk save-as): should be YES or NO
default_image_persistent_new str
Control the default value for the PERSISTENT attribute on image creation ( only new images): should be YES or NO
apiListOrder String
Sets order of elements by ID in list API calls: ASC or DESC respectively for ascending or descending order
defaultImagePersistent String
Control the default value for the PERSISTENT attribute on image creation ( clone and disk save-as): should be YES or NO
defaultImagePersistentNew String
Control the default value for the PERSISTENT attribute on image creation ( only new images): should be YES or NO

GroupQuota
, GroupQuotaArgs

DatastoreQuotas List<GroupQuotaDatastoreQuota>
List of datastore quotas. See Datastore quotas parameters below for details.
ImageQuotas List<GroupQuotaImageQuota>
List of image quotas. See Image quotas parameters below for details
NetworkQuotas List<GroupQuotaNetworkQuota>
List of network quotas. See Network quotas parameters below for details.
VmQuotas List<GroupQuotaVmQuota>
See Virtual Machine quotas parameters below for details
DatastoreQuotas []GroupQuotaDatastoreQuota
List of datastore quotas. See Datastore quotas parameters below for details.
ImageQuotas []GroupQuotaImageQuota
List of image quotas. See Image quotas parameters below for details
NetworkQuotas []GroupQuotaNetworkQuota
List of network quotas. See Network quotas parameters below for details.
VmQuotas []GroupQuotaVmQuota
See Virtual Machine quotas parameters below for details
datastoreQuotas List<GroupQuotaDatastoreQuota>
List of datastore quotas. See Datastore quotas parameters below for details.
imageQuotas List<GroupQuotaImageQuota>
List of image quotas. See Image quotas parameters below for details
networkQuotas List<GroupQuotaNetworkQuota>
List of network quotas. See Network quotas parameters below for details.
vmQuotas List<GroupQuotaVmQuota>
See Virtual Machine quotas parameters below for details
datastoreQuotas GroupQuotaDatastoreQuota[]
List of datastore quotas. See Datastore quotas parameters below for details.
imageQuotas GroupQuotaImageQuota[]
List of image quotas. See Image quotas parameters below for details
networkQuotas GroupQuotaNetworkQuota[]
List of network quotas. See Network quotas parameters below for details.
vmQuotas GroupQuotaVmQuota[]
See Virtual Machine quotas parameters below for details
datastore_quotas Sequence[GroupQuotaDatastoreQuota]
List of datastore quotas. See Datastore quotas parameters below for details.
image_quotas Sequence[GroupQuotaImageQuota]
List of image quotas. See Image quotas parameters below for details
network_quotas Sequence[GroupQuotaNetworkQuota]
List of network quotas. See Network quotas parameters below for details.
vm_quotas Sequence[GroupQuotaVmQuota]
See Virtual Machine quotas parameters below for details
datastoreQuotas List<Property Map>
List of datastore quotas. See Datastore quotas parameters below for details.
imageQuotas List<Property Map>
List of image quotas. See Image quotas parameters below for details
networkQuotas List<Property Map>
List of network quotas. See Network quotas parameters below for details.
vmQuotas List<Property Map>
See Virtual Machine quotas parameters below for details

GroupQuotaDatastoreQuota
, GroupQuotaDatastoreQuotaArgs

Id This property is required. double
ID of the group.
Images double
Maximum number of Images allowed (default: default quota)
Size double
Maximum size in MB allowed on the datastore (default: default quota)
Id This property is required. float64
ID of the group.
Images float64
Maximum number of Images allowed (default: default quota)
Size float64
Maximum size in MB allowed on the datastore (default: default quota)
id This property is required. Double
ID of the group.
images Double
Maximum number of Images allowed (default: default quota)
size Double
Maximum size in MB allowed on the datastore (default: default quota)
id This property is required. number
ID of the group.
images number
Maximum number of Images allowed (default: default quota)
size number
Maximum size in MB allowed on the datastore (default: default quota)
id This property is required. float
ID of the group.
images float
Maximum number of Images allowed (default: default quota)
size float
Maximum size in MB allowed on the datastore (default: default quota)
id This property is required. Number
ID of the group.
images Number
Maximum number of Images allowed (default: default quota)
size Number
Maximum size in MB allowed on the datastore (default: default quota)

GroupQuotaImageQuota
, GroupQuotaImageQuotaArgs

Id This property is required. double
ID of the group.
RunningVms double
Maximum number of Running VMs allowed for this image (default: default quota)
Id This property is required. float64
ID of the group.
RunningVms float64
Maximum number of Running VMs allowed for this image (default: default quota)
id This property is required. Double
ID of the group.
runningVms Double
Maximum number of Running VMs allowed for this image (default: default quota)
id This property is required. number
ID of the group.
runningVms number
Maximum number of Running VMs allowed for this image (default: default quota)
id This property is required. float
ID of the group.
running_vms float
Maximum number of Running VMs allowed for this image (default: default quota)
id This property is required. Number
ID of the group.
runningVms Number
Maximum number of Running VMs allowed for this image (default: default quota)

GroupQuotaNetworkQuota
, GroupQuotaNetworkQuotaArgs

Id This property is required. double
ID of the group.
Leases double
Maximum number of Leases allowed for this network (default: default quota)
Id This property is required. float64
ID of the group.
Leases float64
Maximum number of Leases allowed for this network (default: default quota)
id This property is required. Double
ID of the group.
leases Double
Maximum number of Leases allowed for this network (default: default quota)
id This property is required. number
ID of the group.
leases number
Maximum number of Leases allowed for this network (default: default quota)
id This property is required. float
ID of the group.
leases float
Maximum number of Leases allowed for this network (default: default quota)
id This property is required. Number
ID of the group.
leases Number
Maximum number of Leases allowed for this network (default: default quota)

GroupQuotaVmQuota
, GroupQuotaVmQuotaArgs

Cpu double
Maximum number of CPU allowed (default: default quota)
Memory double
Maximum Memory (MB) allowed (default: default quota)
RunningCpu double
Maximum number of 'running' CPUs allowed (default: default quota)
RunningMemory double
'Running' Memory (MB) allowed (default: default quota)
RunningVms double
Maximum number of Running VMs allowed (default: default quota)
SystemDiskSize double
Maximum System Disk size (MB) allowed (default: default quota)
Vms double
Maximum number of VMs allowed (default: default quota)
Cpu float64
Maximum number of CPU allowed (default: default quota)
Memory float64
Maximum Memory (MB) allowed (default: default quota)
RunningCpu float64
Maximum number of 'running' CPUs allowed (default: default quota)
RunningMemory float64
'Running' Memory (MB) allowed (default: default quota)
RunningVms float64
Maximum number of Running VMs allowed (default: default quota)
SystemDiskSize float64
Maximum System Disk size (MB) allowed (default: default quota)
Vms float64
Maximum number of VMs allowed (default: default quota)
cpu Double
Maximum number of CPU allowed (default: default quota)
memory Double
Maximum Memory (MB) allowed (default: default quota)
runningCpu Double
Maximum number of 'running' CPUs allowed (default: default quota)
runningMemory Double
'Running' Memory (MB) allowed (default: default quota)
runningVms Double
Maximum number of Running VMs allowed (default: default quota)
systemDiskSize Double
Maximum System Disk size (MB) allowed (default: default quota)
vms Double
Maximum number of VMs allowed (default: default quota)
cpu number
Maximum number of CPU allowed (default: default quota)
memory number
Maximum Memory (MB) allowed (default: default quota)
runningCpu number
Maximum number of 'running' CPUs allowed (default: default quota)
runningMemory number
'Running' Memory (MB) allowed (default: default quota)
runningVms number
Maximum number of Running VMs allowed (default: default quota)
systemDiskSize number
Maximum System Disk size (MB) allowed (default: default quota)
vms number
Maximum number of VMs allowed (default: default quota)
cpu float
Maximum number of CPU allowed (default: default quota)
memory float
Maximum Memory (MB) allowed (default: default quota)
running_cpu float
Maximum number of 'running' CPUs allowed (default: default quota)
running_memory float
'Running' Memory (MB) allowed (default: default quota)
running_vms float
Maximum number of Running VMs allowed (default: default quota)
system_disk_size float
Maximum System Disk size (MB) allowed (default: default quota)
vms float
Maximum number of VMs allowed (default: default quota)
cpu Number
Maximum number of CPU allowed (default: default quota)
memory Number
Maximum Memory (MB) allowed (default: default quota)
runningCpu Number
Maximum number of 'running' CPUs allowed (default: default quota)
runningMemory Number
'Running' Memory (MB) allowed (default: default quota)
runningVms Number
Maximum number of Running VMs allowed (default: default quota)
systemDiskSize Number
Maximum System Disk size (MB) allowed (default: default quota)
vms Number
Maximum number of VMs allowed (default: default quota)

GroupSunstone
, GroupSunstoneArgs

DefaultView string
Default Sunstone view for regular users
GroupAdminDefaultView string
Default Sunstone view for group admin users
GroupAdminViews string
List of available views for the group admins
Views string
List of available views for regular users
DefaultView string
Default Sunstone view for regular users
GroupAdminDefaultView string
Default Sunstone view for group admin users
GroupAdminViews string
List of available views for the group admins
Views string
List of available views for regular users
defaultView String
Default Sunstone view for regular users
groupAdminDefaultView String
Default Sunstone view for group admin users
groupAdminViews String
List of available views for the group admins
views String
List of available views for regular users
defaultView string
Default Sunstone view for regular users
groupAdminDefaultView string
Default Sunstone view for group admin users
groupAdminViews string
List of available views for the group admins
views string
List of available views for regular users
default_view str
Default Sunstone view for regular users
group_admin_default_view str
Default Sunstone view for group admin users
group_admin_views str
List of available views for the group admins
views str
List of available views for regular users
defaultView String
Default Sunstone view for regular users
groupAdminDefaultView String
Default Sunstone view for group admin users
groupAdminViews String
List of available views for the group admins
views String
List of available views for regular users

GroupTemplateSection
, GroupTemplateSectionArgs

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_group can be imported using its ID:

$ pulumi import opennebula:index/group:Group 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.