oca.user

class oca.User(xml, client)

Bases: oca.pool.PoolElement

static allocate(client, user, password)

allocates a new user in OpenNebula

user
username for the new user
password
password for the new user
change_passwd(new_password)

Changes the password for the given user.

new_password
The new password
chgrp(gid)

Changes the main group

gid
New group id. Set to -1 to leave the current one
delete()

Deletes current object from the pool

info(*args)
classmethod new_with_id(client, element_id)

Retrives object which id equals `id`.

Arguments

`client`
oca.Client object.
`element_id
object id.
class oca.UserPool(client)

Bases: oca.pool.Pool

Previous topic

oca.virtualnetwork

Next topic

oca.group

This Page