ionoscloud.User
Explore with Pulumi AI
Import
Resource User can be imported using the resource id
, e.g.
$ pulumi import ionoscloud:index/user:User myuser user uuid
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: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
active: Optional[bool] = None,
administrator: Optional[bool] = None,
force_sec_auth: Optional[bool] = None,
group_ids: Optional[Sequence[str]] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[float] = None,
timeouts: Optional[UserTimeoutsArgs] = None,
user_id: Optional[str] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: ionoscloud: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 Ionoscloud.User("userResource", new()
{
Email = "string",
FirstName = "string",
LastName = "string",
Active = false,
Administrator = false,
ForceSecAuth = false,
GroupIds = new[]
{
"string",
},
Password = "string",
PasswordWo = "string",
PasswordWoVersion = 0,
Timeouts = new Ionoscloud.Inputs.UserTimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
UserId = "string",
});
example, err := ionoscloud.NewUser(ctx, "userResource", &ionoscloud.UserArgs{
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
Active: pulumi.Bool(false),
Administrator: pulumi.Bool(false),
ForceSecAuth: pulumi.Bool(false),
GroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Password: pulumi.String("string"),
PasswordWo: pulumi.String("string"),
PasswordWoVersion: pulumi.Float64(0),
Timeouts: &ionoscloud.UserTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserId: pulumi.String("string"),
})
var userResource = new User("userResource", UserArgs.builder()
.email("string")
.firstName("string")
.lastName("string")
.active(false)
.administrator(false)
.forceSecAuth(false)
.groupIds("string")
.password("string")
.passwordWo("string")
.passwordWoVersion(0.0)
.timeouts(UserTimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.userId("string")
.build());
user_resource = ionoscloud.User("userResource",
email="string",
first_name="string",
last_name="string",
active=False,
administrator=False,
force_sec_auth=False,
group_ids=["string"],
password="string",
password_wo="string",
password_wo_version=0,
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
},
user_id="string")
const userResource = new ionoscloud.User("userResource", {
email: "string",
firstName: "string",
lastName: "string",
active: false,
administrator: false,
forceSecAuth: false,
groupIds: ["string"],
password: "string",
passwordWo: "string",
passwordWoVersion: 0,
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
userId: "string",
});
type: ionoscloud:User
properties:
active: false
administrator: false
email: string
firstName: string
forceSecAuth: false
groupIds:
- string
lastName: string
password: string
passwordWo: string
passwordWoVersion: 0
timeouts:
create: string
default: string
delete: string
update: 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:
- Email string
- [string] An e-mail address for the user.
- First
Name string - [string] A first name for the user.
- Last
Name string - [string] A last name for the user.
- Active bool
- [Boolean] Indicates if the user is active
- Administrator bool
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- Force
Sec boolAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- Group
Ids List<string> - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - Password string
- Password
Wo string - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- Password
Wo doubleVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - Timeouts
User
Timeouts - User
Id string
- Email string
- [string] An e-mail address for the user.
- First
Name string - [string] A first name for the user.
- Last
Name string - [string] A last name for the user.
- Active bool
- [Boolean] Indicates if the user is active
- Administrator bool
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- Force
Sec boolAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- Group
Ids []string - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - Password string
- Password
Wo string - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- Password
Wo float64Version - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - Timeouts
User
Timeouts Args - User
Id string
- email String
- [string] An e-mail address for the user.
- first
Name String - [string] A first name for the user.
- last
Name String - [string] A last name for the user.
- active Boolean
- [Boolean] Indicates if the user is active
- administrator Boolean
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- force
Sec BooleanAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group
Ids List<String> - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - password String
- password
Wo String - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password
Wo DoubleVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - timeouts
User
Timeouts - user
Id String
- email string
- [string] An e-mail address for the user.
- first
Name string - [string] A first name for the user.
- last
Name string - [string] A last name for the user.
- active boolean
- [Boolean] Indicates if the user is active
- administrator boolean
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- force
Sec booleanAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group
Ids string[] - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - password string
- password
Wo string - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password
Wo numberVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - timeouts
User
Timeouts - user
Id string
- email str
- [string] An e-mail address for the user.
- first_
name str - [string] A first name for the user.
- last_
name str - [string] A last name for the user.
- active bool
- [Boolean] Indicates if the user is active
- administrator bool
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- force_
sec_ boolauth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group_
ids Sequence[str] - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - password str
- password_
wo str - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password_
wo_ floatversion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - timeouts
User
Timeouts Args - user_
id str
- email String
- [string] An e-mail address for the user.
- first
Name String - [string] A first name for the user.
- last
Name String - [string] A last name for the user.
- active Boolean
- [Boolean] Indicates if the user is active
- administrator Boolean
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- force
Sec BooleanAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group
Ids List<String> - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - password String
- password
Wo String - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password
Wo NumberVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - timeouts Property Map
- user
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- S3Canonical
User stringId - Canonical (IONOS Object Storage) id of the user for a given identity
- Sec
Auth boolActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- Id string
- The provider-assigned unique ID for this managed resource.
- S3Canonical
User stringId - Canonical (IONOS Object Storage) id of the user for a given identity
- Sec
Auth boolActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- id String
- The provider-assigned unique ID for this managed resource.
- s3Canonical
User StringId - Canonical (IONOS Object Storage) id of the user for a given identity
- sec
Auth BooleanActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- id string
- The provider-assigned unique ID for this managed resource.
- s3Canonical
User stringId - Canonical (IONOS Object Storage) id of the user for a given identity
- sec
Auth booleanActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- id str
- The provider-assigned unique ID for this managed resource.
- s3_
canonical_ struser_ id - Canonical (IONOS Object Storage) id of the user for a given identity
- sec_
auth_ boolactive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- id String
- The provider-assigned unique ID for this managed resource.
- s3Canonical
User StringId - Canonical (IONOS Object Storage) id of the user for a given identity
- sec
Auth BooleanActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
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,
active: Optional[bool] = None,
administrator: Optional[bool] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
force_sec_auth: Optional[bool] = None,
group_ids: Optional[Sequence[str]] = None,
last_name: Optional[str] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[float] = None,
s3_canonical_user_id: Optional[str] = None,
sec_auth_active: Optional[bool] = None,
timeouts: Optional[UserTimeoutsArgs] = 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: ionoscloud: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.
- Active bool
- [Boolean] Indicates if the user is active
- Administrator bool
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- Email string
- [string] An e-mail address for the user.
- First
Name string - [string] A first name for the user.
- Force
Sec boolAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- Group
Ids List<string> - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - Last
Name string - [string] A last name for the user.
- Password string
- Password
Wo string - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- Password
Wo doubleVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - S3Canonical
User stringId - Canonical (IONOS Object Storage) id of the user for a given identity
- Sec
Auth boolActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- Timeouts
User
Timeouts - User
Id string
- Active bool
- [Boolean] Indicates if the user is active
- Administrator bool
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- Email string
- [string] An e-mail address for the user.
- First
Name string - [string] A first name for the user.
- Force
Sec boolAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- Group
Ids []string - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - Last
Name string - [string] A last name for the user.
- Password string
- Password
Wo string - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- Password
Wo float64Version - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - S3Canonical
User stringId - Canonical (IONOS Object Storage) id of the user for a given identity
- Sec
Auth boolActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- Timeouts
User
Timeouts Args - User
Id string
- active Boolean
- [Boolean] Indicates if the user is active
- administrator Boolean
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- email String
- [string] An e-mail address for the user.
- first
Name String - [string] A first name for the user.
- force
Sec BooleanAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group
Ids List<String> - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - last
Name String - [string] A last name for the user.
- password String
- password
Wo String - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password
Wo DoubleVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - s3Canonical
User StringId - Canonical (IONOS Object Storage) id of the user for a given identity
- sec
Auth BooleanActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- timeouts
User
Timeouts - user
Id String
- active boolean
- [Boolean] Indicates if the user is active
- administrator boolean
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- email string
- [string] An e-mail address for the user.
- first
Name string - [string] A first name for the user.
- force
Sec booleanAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group
Ids string[] - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - last
Name string - [string] A last name for the user.
- password string
- password
Wo string - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password
Wo numberVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - s3Canonical
User stringId - Canonical (IONOS Object Storage) id of the user for a given identity
- sec
Auth booleanActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- timeouts
User
Timeouts - user
Id string
- active bool
- [Boolean] Indicates if the user is active
- administrator bool
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- email str
- [string] An e-mail address for the user.
- first_
name str - [string] A first name for the user.
- force_
sec_ boolauth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group_
ids Sequence[str] - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - last_
name str - [string] A last name for the user.
- password str
- password_
wo str - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password_
wo_ floatversion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - s3_
canonical_ struser_ id - Canonical (IONOS Object Storage) id of the user for a given identity
- sec_
auth_ boolactive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- timeouts
User
Timeouts Args - user_
id str
- active Boolean
- [Boolean] Indicates if the user is active
- administrator Boolean
- [Boolean] Indicates if the user has administrative rights. Administrators do not need to be managed in groups, as they automatically have access to all resources associated with the contract.
- email String
- [string] An e-mail address for the user.
- first
Name String - [string] A first name for the user.
- force
Sec BooleanAuth - [Boolean] Indicates if secure (two-factor) authentication should be forced for the user (true) or not (false).
- group
Ids List<String> - [Set] The groups that this user will be a member of
NOTE: Group_ids field cannot be used at the same time with user_ids field in group resource. Trying to add the same user to the same group in both ways in the same plan will result in a cyclic dependency error.
NOTE:
password_wo
requires Teraform 1.11 or higher. - last
Name String - [string] A last name for the user.
- password String
- password
Wo String - Write-only attribute. Password for the user. To modify, must change the password_wo_version attribute.
- password
Wo NumberVersion - Used together with
password_wo
to trigger an update. Increment this value when an update to thepassword_wo
is required. - s3Canonical
User StringId - Canonical (IONOS Object Storage) id of the user for a given identity
- sec
Auth BooleanActive - [Boolean] Indicates if secure authentication is active for the user or not. it can not be used in create requests - can be used in update
- timeouts Property Map
- user
Id String
Supporting Types
UserTimeouts, UserTimeoutsArgs
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.