User
user
This module allows you to create, update or remove a user.
Example Syntax
Returned object
For more examples please check out the tests here.
state: present
Available parameters for state present:
firstname str
True
The first name of the user.
lastname str
True
The last name of the user.
email str
True
The email address of the user.
user_password str
True
A password for the user.
administrator bool
False
Indicates if the user has admin rights.
force_sec_auth bool
False
Indicates if secure authentication should be forced on the user.
groups list
False
A list of group IDs or names where the user (non-administrator) is to be added. Set to empty list ([]) to remove the user from all groups.
sec_auth_active bool
False
Indicates if secure authentication is active for the user.
ignored_properties list
False
A list of field to ignore changes to when evaluating whether to make changes to the ionos resource. These fields will still be used when creating or recreating the resource, but will not cause the operation themselves Default:
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update']
state: absent
Available parameters for state absent:
user str
True
The ID or name of the user.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update']
state: update
Available parameters for state update:
firstname str
False
The first name of the user.
lastname str
False
The last name of the user.
email str
False
The email address of the user.
user str
True
The ID or name of the user.
user_password str
False
A password for the user.
administrator bool
False
Indicates if the user has admin rights.
force_sec_auth bool
False
Indicates if secure authentication should be forced on the user.
groups list
False
A list of group IDs or names where the user (non-administrator) is to be added. Set to empty list ([]) to remove the user from all groups.
sec_auth_active bool
False
Indicates if secure authentication is active for the user.
ignored_properties list
False
A list of field to ignore changes to when evaluating whether to make changes to the ionos resource. These fields will still be used when creating or recreating the resource, but will not cause the operation themselves Default:
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['present', 'absent', 'update']
Last updated