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

opennebula.User

Explore with Pulumi AI

Provides an OpenNebula user resource.

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

Example Usage

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

const exampleUser = new opennebula.User("exampleUser", {
    password: "randomp4ss",
    authDriver: "core",
    primaryGroup: 100,
    groups: [
        101,
        102,
    ],
    tags: {
        environment: "example",
    },
    templateSections: [{
        name: "example",
        elements: {
            key1: "value1",
        },
    }],
});
const exampleUserQuotas = new opennebula.UserQuotas("exampleUserQuotas", {
    userId: exampleUser.userId,
    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_user = opennebula.User("exampleUser",
    password="randomp4ss",
    auth_driver="core",
    primary_group=100,
    groups=[
        101,
        102,
    ],
    tags={
        "environment": "example",
    },
    template_sections=[{
        "name": "example",
        "elements": {
            "key1": "value1",
        },
    }])
example_user_quotas = opennebula.UserQuotas("exampleUserQuotas",
    user_id=example_user.user_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 {
		exampleUser, err := opennebula.NewUser(ctx, "exampleUser", &opennebula.UserArgs{
			Password:     pulumi.String("randomp4ss"),
			AuthDriver:   pulumi.String("core"),
			PrimaryGroup: pulumi.Float64(100),
			Groups: pulumi.Float64Array{
				pulumi.Float64(101),
				pulumi.Float64(102),
			},
			Tags: pulumi.StringMap{
				"environment": pulumi.String("example"),
			},
			TemplateSections: opennebula.UserTemplateSectionArray{
				&opennebula.UserTemplateSectionArgs{
					Name: pulumi.String("example"),
					Elements: pulumi.StringMap{
						"key1": pulumi.String("value1"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = opennebula.NewUserQuotas(ctx, "exampleUserQuotas", &opennebula.UserQuotasArgs{
			UserId: exampleUser.UserId,
			Datastores: opennebula.UserQuotasDatastoreArray{
				&opennebula.UserQuotasDatastoreArgs{
					Id:     pulumi.Float64(1),
					Images: pulumi.Float64(3),
					Size:   pulumi.Float64(10000),
				},
			},
			Vms: opennebula.UserQuotasVmArray{
				&opennebula.UserQuotasVmArgs{
					Cpu:           pulumi.Float64(3),
					RunningCpu:    pulumi.Float64(3),
					Memory:        pulumi.Float64(2048),
					RunningMemory: pulumi.Float64(2048),
				},
			},
			Networks: opennebula.UserQuotasNetworkArray{
				&opennebula.UserQuotasNetworkArgs{
					Id:     pulumi.Float64(10),
					Leases: pulumi.Float64(6),
				},
				&opennebula.UserQuotasNetworkArgs{
					Id:     pulumi.Float64(11),
					Leases: pulumi.Float64(4),
				},
			},
			Images: opennebula.UserQuotasImageArray{
				&opennebula.UserQuotasImageArgs{
					Id:         pulumi.Float64(8),
					RunningVms: pulumi.Float64(1),
				},
				&opennebula.UserQuotasImageArgs{
					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 exampleUser = new Opennebula.User("exampleUser", new()
    {
        Password = "randomp4ss",
        AuthDriver = "core",
        PrimaryGroup = 100,
        Groups = new[]
        {
            101,
            102,
        },
        Tags = 
        {
            { "environment", "example" },
        },
        TemplateSections = new[]
        {
            new Opennebula.Inputs.UserTemplateSectionArgs
            {
                Name = "example",
                Elements = 
                {
                    { "key1", "value1" },
                },
            },
        },
    });

    var exampleUserQuotas = new Opennebula.UserQuotas("exampleUserQuotas", new()
    {
        UserId = exampleUser.UserId,
        Datastores = new[]
        {
            new Opennebula.Inputs.UserQuotasDatastoreArgs
            {
                Id = 1,
                Images = 3,
                Size = 10000,
            },
        },
        Vms = new[]
        {
            new Opennebula.Inputs.UserQuotasVmArgs
            {
                Cpu = 3,
                RunningCpu = 3,
                Memory = 2048,
                RunningMemory = 2048,
            },
        },
        Networks = new[]
        {
            new Opennebula.Inputs.UserQuotasNetworkArgs
            {
                Id = 10,
                Leases = 6,
            },
            new Opennebula.Inputs.UserQuotasNetworkArgs
            {
                Id = 11,
                Leases = 4,
            },
        },
        Images = new[]
        {
            new Opennebula.Inputs.UserQuotasImageArgs
            {
                Id = 8,
                RunningVms = 1,
            },
            new Opennebula.Inputs.UserQuotasImageArgs
            {
                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.User;
import com.pulumi.opennebula.UserArgs;
import com.pulumi.opennebula.inputs.UserTemplateSectionArgs;
import com.pulumi.opennebula.UserQuotas;
import com.pulumi.opennebula.UserQuotasArgs;
import com.pulumi.opennebula.inputs.UserQuotasDatastoreArgs;
import com.pulumi.opennebula.inputs.UserQuotasVmArgs;
import com.pulumi.opennebula.inputs.UserQuotasNetworkArgs;
import com.pulumi.opennebula.inputs.UserQuotasImageArgs;
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 exampleUser = new User("exampleUser", UserArgs.builder()
            .password("randomp4ss")
            .authDriver("core")
            .primaryGroup("100")
            .groups(            
                101,
                102)
            .tags(Map.of("environment", "example"))
            .templateSections(UserTemplateSectionArgs.builder()
                .name("example")
                .elements(Map.of("key1", "value1"))
                .build())
            .build());

        var exampleUserQuotas = new UserQuotas("exampleUserQuotas", UserQuotasArgs.builder()
            .userId(exampleUser.userId())
            .datastores(UserQuotasDatastoreArgs.builder()
                .id(1)
                .images(3)
                .size(10000)
                .build())
            .vms(UserQuotasVmArgs.builder()
                .cpu(3)
                .runningCpu(3)
                .memory(2048)
                .runningMemory(2048)
                .build())
            .networks(            
                UserQuotasNetworkArgs.builder()
                    .id(10)
                    .leases(6)
                    .build(),
                UserQuotasNetworkArgs.builder()
                    .id(11)
                    .leases(4)
                    .build())
            .images(            
                UserQuotasImageArgs.builder()
                    .id(8)
                    .runningVms(1)
                    .build(),
                UserQuotasImageArgs.builder()
                    .id(9)
                    .runningVms(1)
                    .build())
            .build());

    }
}
Copy
resources:
  exampleUser:
    type: opennebula:User
    properties:
      password: randomp4ss
      authDriver: core
      primaryGroup: '100'
      groups:
        - 101
        - 102
      tags:
        environment: example
      templateSections:
        - name: example
          elements:
            key1: value1
  exampleUserQuotas:
    type: opennebula:UserQuotas
    properties:
      userId: ${exampleUser.userId}
      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 User Resource

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

Constructor syntax

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

@overload
def User(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         auth_driver: Optional[str] = None,
         groups: Optional[Sequence[float]] = None,
         name: Optional[str] = None,
         password: Optional[str] = None,
         primary_group: Optional[float] = None,
         quotas: Optional[Sequence[UserQuotaArgs]] = None,
         ssh_public_key: Optional[str] = None,
         tags: Optional[Mapping[str, str]] = None,
         template_sections: Optional[Sequence[UserTemplateSectionArgs]] = None,
         user_id: Optional[str] = None)
func NewUser(ctx *Context, name string, args *UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs? args = null, CustomResourceOptions? opts = null)
public User(String name, UserArgs args)
public User(String name, UserArgs args, CustomResourceOptions options)
type: opennebula:User
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 UserArgs
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 UserArgs
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 UserArgs
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 UserArgs
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. UserArgs
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 userResource = new Opennebula.User("userResource", new()
{
    AuthDriver = "string",
    Groups = new[]
    {
        0,
    },
    Name = "string",
    Password = "string",
    PrimaryGroup = 0,
    SshPublicKey = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TemplateSections = new[]
    {
        new Opennebula.Inputs.UserTemplateSectionArgs
        {
            Name = "string",
            Elements = 
            {
                { "string", "string" },
            },
        },
    },
    UserId = "string",
});
Copy
example, err := opennebula.NewUser(ctx, "userResource", &opennebula.UserArgs{
AuthDriver: pulumi.String("string"),
Groups: pulumi.Float64Array{
pulumi.Float64(0),
},
Name: pulumi.String("string"),
Password: pulumi.String("string"),
PrimaryGroup: pulumi.Float64(0),
SshPublicKey: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemplateSections: .UserTemplateSectionArray{
&.UserTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
UserId: pulumi.String("string"),
})
Copy
var userResource = new User("userResource", UserArgs.builder()
    .authDriver("string")
    .groups(0)
    .name("string")
    .password("string")
    .primaryGroup(0)
    .sshPublicKey("string")
    .tags(Map.of("string", "string"))
    .templateSections(UserTemplateSectionArgs.builder()
        .name("string")
        .elements(Map.of("string", "string"))
        .build())
    .userId("string")
    .build());
Copy
user_resource = opennebula.User("userResource",
    auth_driver="string",
    groups=[0],
    name="string",
    password="string",
    primary_group=0,
    ssh_public_key="string",
    tags={
        "string": "string",
    },
    template_sections=[{
        "name": "string",
        "elements": {
            "string": "string",
        },
    }],
    user_id="string")
Copy
const userResource = new opennebula.User("userResource", {
    authDriver: "string",
    groups: [0],
    name: "string",
    password: "string",
    primaryGroup: 0,
    sshPublicKey: "string",
    tags: {
        string: "string",
    },
    templateSections: [{
        name: "string",
        elements: {
            string: "string",
        },
    }],
    userId: "string",
});
Copy
type: opennebula:User
properties:
    authDriver: string
    groups:
        - 0
    name: string
    password: string
    primaryGroup: 0
    sshPublicKey: string
    tags:
        string: string
    templateSections:
        - elements:
            string: string
          name: string
    userId: string
Copy

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

AuthDriver string
Authentication Driver for User management. DEfaults to 'core'.
Groups List<double>
List of secondary groups ID of the user.
Name string
The name of the user.
Password string
Password of the user. It is required for all auth_driver excepted 'ldap'
PrimaryGroup double
Primary group ID of the User. Defaults to 0 (oneadmin).
Quotas List<UserQuota>
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

SshPublicKey string
SSH public key.
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<UserTemplateSection>
Allow to add a custom vector. See Template section parameters
UserId string
ID of the user.
AuthDriver string
Authentication Driver for User management. DEfaults to 'core'.
Groups []float64
List of secondary groups ID of the user.
Name string
The name of the user.
Password string
Password of the user. It is required for all auth_driver excepted 'ldap'
PrimaryGroup float64
Primary group ID of the User. Defaults to 0 (oneadmin).
Quotas []UserQuotaArgs
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

SshPublicKey string
SSH public key.
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 []UserTemplateSectionArgs
Allow to add a custom vector. See Template section parameters
UserId string
ID of the user.
authDriver String
Authentication Driver for User management. DEfaults to 'core'.
groups List<Double>
List of secondary groups ID of the user.
name String
The name of the user.
password String
Password of the user. It is required for all auth_driver excepted 'ldap'
primaryGroup Double
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas List<UserQuota>
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

sshPublicKey String
SSH public key.
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<UserTemplateSection>
Allow to add a custom vector. See Template section parameters
userId String
ID of the user.
authDriver string
Authentication Driver for User management. DEfaults to 'core'.
groups number[]
List of secondary groups ID of the user.
name string
The name of the user.
password string
Password of the user. It is required for all auth_driver excepted 'ldap'
primaryGroup number
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas UserQuota[]
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

sshPublicKey string
SSH public key.
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 UserTemplateSection[]
Allow to add a custom vector. See Template section parameters
userId string
ID of the user.
auth_driver str
Authentication Driver for User management. DEfaults to 'core'.
groups Sequence[float]
List of secondary groups ID of the user.
name str
The name of the user.
password str
Password of the user. It is required for all auth_driver excepted 'ldap'
primary_group float
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas Sequence[UserQuotaArgs]
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

ssh_public_key str
SSH public key.
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[UserTemplateSectionArgs]
Allow to add a custom vector. See Template section parameters
user_id str
ID of the user.
authDriver String
Authentication Driver for User management. DEfaults to 'core'.
groups List<Number>
List of secondary groups ID of the user.
name String
The name of the user.
password String
Password of the user. It is required for all auth_driver excepted 'ldap'
primaryGroup Number
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas List<Property Map>
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

sshPublicKey String
SSH public key.
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
userId String
ID of the user.

Outputs

All input properties are implicitly available as output properties. Additionally, the User 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 User Resource

Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auth_driver: Optional[str] = None,
        default_tags: Optional[Mapping[str, str]] = None,
        groups: Optional[Sequence[float]] = None,
        name: Optional[str] = None,
        password: Optional[str] = None,
        primary_group: Optional[float] = None,
        quotas: Optional[Sequence[UserQuotaArgs]] = None,
        ssh_public_key: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        template_sections: Optional[Sequence[UserTemplateSectionArgs]] = None,
        user_id: Optional[str] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
resources:  _:    type: opennebula:User    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:
AuthDriver string
Authentication Driver for User management. DEfaults to 'core'.
DefaultTags Dictionary<string, string>
Default tags defined in the provider configuration.
Groups List<double>
List of secondary groups ID of the user.
Name string
The name of the user.
Password string
Password of the user. It is required for all auth_driver excepted 'ldap'
PrimaryGroup double
Primary group ID of the User. Defaults to 0 (oneadmin).
Quotas List<UserQuota>
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

SshPublicKey string
SSH public key.
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<UserTemplateSection>
Allow to add a custom vector. See Template section parameters
UserId string
ID of the user.
AuthDriver string
Authentication Driver for User management. DEfaults to 'core'.
DefaultTags map[string]string
Default tags defined in the provider configuration.
Groups []float64
List of secondary groups ID of the user.
Name string
The name of the user.
Password string
Password of the user. It is required for all auth_driver excepted 'ldap'
PrimaryGroup float64
Primary group ID of the User. Defaults to 0 (oneadmin).
Quotas []UserQuotaArgs
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

SshPublicKey string
SSH public key.
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 []UserTemplateSectionArgs
Allow to add a custom vector. See Template section parameters
UserId string
ID of the user.
authDriver String
Authentication Driver for User management. DEfaults to 'core'.
defaultTags Map<String,String>
Default tags defined in the provider configuration.
groups List<Double>
List of secondary groups ID of the user.
name String
The name of the user.
password String
Password of the user. It is required for all auth_driver excepted 'ldap'
primaryGroup Double
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas List<UserQuota>
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

sshPublicKey String
SSH public key.
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<UserTemplateSection>
Allow to add a custom vector. See Template section parameters
userId String
ID of the user.
authDriver string
Authentication Driver for User management. DEfaults to 'core'.
defaultTags {[key: string]: string}
Default tags defined in the provider configuration.
groups number[]
List of secondary groups ID of the user.
name string
The name of the user.
password string
Password of the user. It is required for all auth_driver excepted 'ldap'
primaryGroup number
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas UserQuota[]
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

sshPublicKey string
SSH public key.
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 UserTemplateSection[]
Allow to add a custom vector. See Template section parameters
userId string
ID of the user.
auth_driver str
Authentication Driver for User management. DEfaults to 'core'.
default_tags Mapping[str, str]
Default tags defined in the provider configuration.
groups Sequence[float]
List of secondary groups ID of the user.
name str
The name of the user.
password str
Password of the user. It is required for all auth_driver excepted 'ldap'
primary_group float
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas Sequence[UserQuotaArgs]
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

ssh_public_key str
SSH public key.
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[UserTemplateSectionArgs]
Allow to add a custom vector. See Template section parameters
user_id str
ID of the user.
authDriver String
Authentication Driver for User management. DEfaults to 'core'.
defaultTags Map<String>
Default tags defined in the provider configuration.
groups List<Number>
List of secondary groups ID of the user.
name String
The name of the user.
password String
Password of the user. It is required for all auth_driver excepted 'ldap'
primaryGroup Number
Primary group ID of the User. Defaults to 0 (oneadmin).
quotas List<Property Map>
See Quotas parameters below for details. Use resource_opennebula_user_quotas instead.

Deprecated: Deprecated

sshPublicKey String
SSH public key.
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
userId String
ID of the user.

Supporting Types

UserQuota
, UserQuotaArgs

DatastoreQuotas List<UserQuotaDatastoreQuota>
List of datastore quotas. See Datastore quotas parameters below for details.
ImageQuotas List<UserQuotaImageQuota>
List of image quotas. See Image quotas parameters below for details
NetworkQuotas List<UserQuotaNetworkQuota>
List of network quotas. See Network quotas parameters below for details.
VmQuotas List<UserQuotaVmQuota>
See Virtual Machine quotas parameters below for details
DatastoreQuotas []UserQuotaDatastoreQuota
List of datastore quotas. See Datastore quotas parameters below for details.
ImageQuotas []UserQuotaImageQuota
List of image quotas. See Image quotas parameters below for details
NetworkQuotas []UserQuotaNetworkQuota
List of network quotas. See Network quotas parameters below for details.
VmQuotas []UserQuotaVmQuota
See Virtual Machine quotas parameters below for details
datastoreQuotas List<UserQuotaDatastoreQuota>
List of datastore quotas. See Datastore quotas parameters below for details.
imageQuotas List<UserQuotaImageQuota>
List of image quotas. See Image quotas parameters below for details
networkQuotas List<UserQuotaNetworkQuota>
List of network quotas. See Network quotas parameters below for details.
vmQuotas List<UserQuotaVmQuota>
See Virtual Machine quotas parameters below for details
datastoreQuotas UserQuotaDatastoreQuota[]
List of datastore quotas. See Datastore quotas parameters below for details.
imageQuotas UserQuotaImageQuota[]
List of image quotas. See Image quotas parameters below for details
networkQuotas UserQuotaNetworkQuota[]
List of network quotas. See Network quotas parameters below for details.
vmQuotas UserQuotaVmQuota[]
See Virtual Machine quotas parameters below for details
datastore_quotas Sequence[UserQuotaDatastoreQuota]
List of datastore quotas. See Datastore quotas parameters below for details.
image_quotas Sequence[UserQuotaImageQuota]
List of image quotas. See Image quotas parameters below for details
network_quotas Sequence[UserQuotaNetworkQuota]
List of network quotas. See Network quotas parameters below for details.
vm_quotas Sequence[UserQuotaVmQuota]
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

UserQuotaDatastoreQuota
, UserQuotaDatastoreQuotaArgs

Id This property is required. double
ID of the user.
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 user.
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 user.
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 user.
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 user.
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 user.
images Number
Maximum number of Images allowed (default: default quota)
size Number
Maximum size in MB allowed on the datastore (default: default quota)

UserQuotaImageQuota
, UserQuotaImageQuotaArgs

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

UserQuotaNetworkQuota
, UserQuotaNetworkQuotaArgs

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

UserQuotaVmQuota
, UserQuotaVmQuotaArgs

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)

UserTemplateSection
, UserTemplateSectionArgs

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

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