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,
},
],
});
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,
},
])
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
})
}
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,
},
},
});
});
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());
}
}
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
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)
type: opennebula:User
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 UserArgs
- 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 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 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 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 String
- The unique name of the resource.
- args 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",
});
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: opennebula.UserTemplateSectionArray{
&opennebula.UserTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
UserId: pulumi.String("string"),
})
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());
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")
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",
});
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
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:
- Auth
Driver 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' - Primary
Group double - Primary group ID of the User. Defaults to 0 (oneadmin).
- Quotas
List<User
Quota> - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - Ssh
Public stringKey - SSH public key.
- 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<UserTemplate Section> - Allow to add a custom vector. See Template section parameters
- User
Id string - ID of the user.
- Auth
Driver 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' - Primary
Group float64 - Primary group ID of the User. Defaults to 0 (oneadmin).
- Quotas
[]User
Quota Args - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - Ssh
Public stringKey - SSH public key.
- 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 []UserTemplate Section Args - Allow to add a custom vector. See Template section parameters
- User
Id string - ID of the user.
- auth
Driver 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' - primary
Group Double - Primary group ID of the User. Defaults to 0 (oneadmin).
- quotas
List<User
Quota> - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - ssh
Public StringKey - SSH public key.
- 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<UserTemplate Section> - Allow to add a custom vector. See Template section parameters
- user
Id String - ID of the user.
- auth
Driver 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' - primary
Group number - Primary group ID of the User. Defaults to 0 (oneadmin).
- quotas
User
Quota[] - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - ssh
Public stringKey - SSH public key.
- {[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 UserTemplate Section[] - Allow to add a custom vector. See Template section parameters
- user
Id 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[User
Quota Args] - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - ssh_
public_ strkey - SSH public key.
- 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[UserTemplate Section Args] - Allow to add a custom vector. See Template section parameters
- user_
id str - ID of the user.
- auth
Driver 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' - primary
Group 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. - ssh
Public StringKey - SSH public key.
- 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
- user
Id String - ID of the user.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Dictionary<string, string>
- Default tags defined in the provider configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
.
- map[string]string
- Default tags defined in the provider configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Result of the applied
default_tags
and then resourcetags
.
- Map<String,String>
- Default tags defined in the provider configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Result of the applied
default_tags
and then resourcetags
.
- {[key: string]: string}
- Default tags defined in the provider configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
.
- Mapping[str, str]
- Default tags defined in the provider configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
.
- Map<String>
- Default tags defined in the provider configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Result of the applied
default_tags
and then resourcetags
.
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
- 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.
- Auth
Driver string - Authentication Driver for User management. DEfaults to 'core'.
- 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' - Primary
Group double - Primary group ID of the User. Defaults to 0 (oneadmin).
- Quotas
List<User
Quota> - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - Ssh
Public stringKey - SSH public key.
- 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<UserTemplate Section> - Allow to add a custom vector. See Template section parameters
- User
Id string - ID of the user.
- Auth
Driver string - Authentication Driver for User management. DEfaults to 'core'.
- 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' - Primary
Group float64 - Primary group ID of the User. Defaults to 0 (oneadmin).
- Quotas
[]User
Quota Args - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - Ssh
Public stringKey - SSH public key.
- 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 []UserTemplate Section Args - Allow to add a custom vector. See Template section parameters
- User
Id string - ID of the user.
- auth
Driver String - Authentication Driver for User management. DEfaults to 'core'.
- 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' - primary
Group Double - Primary group ID of the User. Defaults to 0 (oneadmin).
- quotas
List<User
Quota> - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - ssh
Public StringKey - SSH public key.
- 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<UserTemplate Section> - Allow to add a custom vector. See Template section parameters
- user
Id String - ID of the user.
- auth
Driver string - Authentication Driver for User management. DEfaults to 'core'.
- {[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' - primary
Group number - Primary group ID of the User. Defaults to 0 (oneadmin).
- quotas
User
Quota[] - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - ssh
Public stringKey - SSH public key.
- {[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 UserTemplate Section[] - Allow to add a custom vector. See Template section parameters
- user
Id string - ID of the user.
- auth_
driver str - Authentication Driver for User management. DEfaults to 'core'.
- 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[User
Quota Args] - See Quotas parameters below for details. Use
resource_opennebula_user_quotas
instead. - ssh_
public_ strkey - SSH public key.
- 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[UserTemplate Section Args] - Allow to add a custom vector. See Template section parameters
- user_
id str - ID of the user.
- auth
Driver String - Authentication Driver for User management. DEfaults to 'core'.
- 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' - primary
Group 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. - ssh
Public StringKey - SSH public key.
- 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
- user
Id String - ID of the user.
Supporting Types
UserQuota, UserQuotaArgs
- Datastore
Quotas List<UserQuota Datastore Quota> - List of datastore quotas. See Datastore quotas parameters below for details.
- Image
Quotas List<UserQuota Image Quota> - List of image quotas. See Image quotas parameters below for details
- Network
Quotas List<UserQuota Network Quota> - List of network quotas. See Network quotas parameters below for details.
- Vm
Quotas List<UserQuota Vm Quota> - See Virtual Machine quotas parameters below for details
- Datastore
Quotas []UserQuota Datastore Quota - List of datastore quotas. See Datastore quotas parameters below for details.
- Image
Quotas []UserQuota Image Quota - List of image quotas. See Image quotas parameters below for details
- Network
Quotas []UserQuota Network Quota - List of network quotas. See Network quotas parameters below for details.
- Vm
Quotas []UserQuota Vm Quota - See Virtual Machine quotas parameters below for details
- datastore
Quotas List<UserQuota Datastore Quota> - List of datastore quotas. See Datastore quotas parameters below for details.
- image
Quotas List<UserQuota Image Quota> - List of image quotas. See Image quotas parameters below for details
- network
Quotas List<UserQuota Network Quota> - List of network quotas. See Network quotas parameters below for details.
- vm
Quotas List<UserQuota Vm Quota> - See Virtual Machine quotas parameters below for details
- datastore
Quotas UserQuota Datastore Quota[] - List of datastore quotas. See Datastore quotas parameters below for details.
- image
Quotas UserQuota Image Quota[] - List of image quotas. See Image quotas parameters below for details
- network
Quotas UserQuota Network Quota[] - List of network quotas. See Network quotas parameters below for details.
- vm
Quotas UserQuota Vm Quota[] - See Virtual Machine quotas parameters below for details
- datastore_
quotas Sequence[UserQuota Datastore Quota] - List of datastore quotas. See Datastore quotas parameters below for details.
- image_
quotas Sequence[UserQuota Image Quota] - List of image quotas. See Image quotas parameters below for details
- network_
quotas Sequence[UserQuota Network Quota] - List of network quotas. See Network quotas parameters below for details.
- vm_
quotas Sequence[UserQuota Vm Quota] - See Virtual Machine quotas parameters below for details
- datastore
Quotas List<Property Map> - List of datastore quotas. See Datastore quotas parameters below for details.
- image
Quotas List<Property Map> - List of image quotas. See Image quotas parameters below for details
- network
Quotas List<Property Map> - List of network quotas. See Network quotas parameters below for details.
- vm
Quotas List<Property Map> - See Virtual Machine quotas parameters below for details
UserQuotaDatastoreQuota, UserQuotaDatastoreQuotaArgs
UserQuotaImageQuota, UserQuotaImageQuotaArgs
- Id double
- ID of the user.
- Running
Vms double - Maximum number of Running VMs allowed for this image (default: default quota)
- Id float64
- ID of the user.
- Running
Vms float64 - Maximum number of Running VMs allowed for this image (default: default quota)
- id Double
- ID of the user.
- running
Vms Double - Maximum number of Running VMs allowed for this image (default: default quota)
- id number
- ID of the user.
- running
Vms number - Maximum number of Running VMs allowed for this image (default: default quota)
- id float
- ID of the user.
- running_
vms float - Maximum number of Running VMs allowed for this image (default: default quota)
- id Number
- ID of the user.
- running
Vms Number - Maximum number of Running VMs allowed for this image (default: default quota)
UserQuotaNetworkQuota, UserQuotaNetworkQuotaArgs
UserQuotaVmQuota, UserQuotaVmQuotaArgs
- Cpu double
- Maximum number of CPU allowed (default: default quota)
- Memory double
- Maximum Memory (MB) allowed (default: default quota)
- Running
Cpu double - Maximum number of 'running' CPUs allowed (default: default quota)
- Running
Memory double - 'Running' Memory (MB) allowed (default: default quota)
- Running
Vms double - Maximum number of Running VMs allowed (default: default quota)
- System
Disk doubleSize - 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)
- Running
Cpu float64 - Maximum number of 'running' CPUs allowed (default: default quota)
- Running
Memory float64 - 'Running' Memory (MB) allowed (default: default quota)
- Running
Vms float64 - Maximum number of Running VMs allowed (default: default quota)
- System
Disk float64Size - 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)
- running
Cpu Double - Maximum number of 'running' CPUs allowed (default: default quota)
- running
Memory Double - 'Running' Memory (MB) allowed (default: default quota)
- running
Vms Double - Maximum number of Running VMs allowed (default: default quota)
- system
Disk DoubleSize - 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)
- running
Cpu number - Maximum number of 'running' CPUs allowed (default: default quota)
- running
Memory number - 'Running' Memory (MB) allowed (default: default quota)
- running
Vms number - Maximum number of Running VMs allowed (default: default quota)
- system
Disk numberSize - 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_ floatsize - 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)
- running
Cpu Number - Maximum number of 'running' CPUs allowed (default: default quota)
- running
Memory Number - 'Running' Memory (MB) allowed (default: default quota)
- running
Vms Number - Maximum number of Running VMs allowed (default: default quota)
- system
Disk NumberSize - Maximum System Disk size (MB) allowed (default: default quota)
- vms Number
- Maximum number of VMs allowed (default: default quota)
UserTemplateSection, UserTemplateSectionArgs
Import
opennebula_user
can be imported using its ID:
$ pulumi import opennebula:index/user:User 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.