Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Get information on a IonosCloud Resource
The resource data source can be used to search for and return any existing IonosCloud resource and optionally their group associations. You can provide a string for the resource type (datacenter,image,snapshot,ipblock) and/or resource id parameters which will be queries against available resources. If a single match is found, it will be returned. If your search results in multiple matches, an error will be generated. When this happens, please refine your search string so that it is specific enough to return only one result.
resource_type
- (Optional) The specific type of resources to retrieve information about.
resource_id
- (Optional) The ID of the specific resource to retrieve information about.
id
- UUID of the Resource
Get Information on a IonosCloud s3 key
The s3 key data source can be used to search for and return an existing s3 key. You can provide a string id which will be compared with provisioned s3 keys. If a single match is found, it will be returned.
The following arguments are supported:
user_id
- (Required)[string] The UUID of the user owning the S3 Key.
id
- (Required) ID of the s3 key you want to search for.
The following attributes are returned by the datasource:
id
- The id of the s3 key
active
- The state of the s3 key
user_id
- The ID of the user that owns the key
Creates and manages user objects.
Manages users and list users and groups associated with that user.
administrator
- (Required)[Boolean] The group has permission to edit privileges on this resource.
email
- (Required)[string] An e-mail address for the user.
first_name
- (Required)[string] A first name for the user.
force_sec_auth
- (Required)[Boolean] Indicates if secure (two-factor) authentication should be enabled for the user (true) or not (false).
last_name
- (Required)[string] A last name for the user.
password
- (Required)[string] A password for the user.
sec_auth_active
- (Computed) Indicates if secure authentication is active for the user or not
s3_canonical_user_id
- (Computed) Canonical (S3) id of the user for a given identity
active
- (Optional)[Boolean] Indicates if the user is active
Resource User can be imported using the resource id
, e.g.
Get information on a Ionos Cloud Users
The users data source can be used to search for and return existing users.
email
- (Optional) Email of an existing user that you want to search for.
id
- (Optional) ID of the user you want to search for.
Either email
or id
must be provided. If none, or both are provided, the datasource will return an error.
The following attributes are returned by the datasource:
id
- The id of the LAN.
administrator
- The group has permission to edit privileges on this resource.
email
- The e-mail address for the user.
first_name
- The first name for the user.
force_sec_auth
- Indicates if secure (two-factor) authentication should be enabled for the user (true) or not (false).
last_name
- The last name for the user.
password
- The password for the user.
sec_auth_active
- Indicates if secure authentication is active for the user or not
s3_canonical_user_id
- Canonical (S3) id of the user for a given identity
active
- Indicates if the user is active
Get Information on share permission objects
The share data source can be used to search for and return an existing share object. You need to provide the group_id and resource_id to get the group resources for the shared resource.
The following arguments are supported:
group_id
- (Required)The ID of the specific group containing the resource to update.
resource_id
- (Required)The ID of the specific resource to update.
id
- (Required)The uuid of the share object
id
, resource_id
and group_id
must be provided. If any of them are missing, the datasource will return an error.
The following attributes are returned by the datasource:
id
- The id of the share resource.
group_id
- The ID of the specific group containing the resource to update.
resource_id
- The ID of the specific resource to update.
edit_privilege
- The flag that specifies if the group has permission to edit privileges on this resource.
share_privilege
- The group has permission to share this resource.
Get information on a Ionos Cloud Groups
The groups data source can be used to search for and return existing groups.
name
- (Optional) Name of an existing group that you want to search for.
id
- (Optional) ID of the group you want to search for.
Either name
or id
must be provided. If none, or both are provided, the datasource will return an error.
The following attributes are returned by the datasource:
id
- The id of the LAN.
name
- A name for the group.
create_datacenter
- The group will be allowed to create virtual data centers.
create_snapshot
- The group will be allowed to create snapshots.
reserve_ip
- The group will be allowed to reserve IP addresses.
access_activity_log
- The group will be allowed to access the activity log.
create_pcc
- The group will be allowed to create pcc privilege.
s3_privilege
- The group will have S3 privilege.
create_backup_unit
- The group will be allowed to create backup unit privilege.
create_internet_access
- The group will be allowed to create internet access privilege.
create_k8s_cluster
- The group will be allowed to create kubernetes cluster privilege.
user_id
- The ID of the specific user to add to the group.
users
- List of users in group.
Creates and manages share objects.
Manages shares and list shares permissions granted to the group members for each shared resource.
edit_privilege
- (Optional)[Boolean] The group has permission to edit privileges on this resource.
group_id
- (Required)[string] The ID of the specific group containing the resource to update.
resource_id
- (Required)[string] The ID of the specific resource to update.
share_privilege
- (Optional)[Boolean] The group has permission to share this resource.
Resource Share can be imported using the resource id
, e.g.
Creates and manages group objects.
Manages groups and group privileges on IonosCloud.
##Argument reference
name
- (Required) [string] A name for the group.
create_datacenter
- (Optional) [Boolean] The group will be allowed to create virtual data centers.
create_snapshot
- (Optional) [Boolean] The group will be allowed to create snapshots.
reserve_ip
- (Optional) [Boolean] The group will be allowed to reserve IP addresses.
access_activity_log
- (Optional) [Boolean] The group will be allowed to access the activity log.
create_pcc
- (Optional) [Boolean] The group will be allowed to create pcc privilege.
s3_privilege
- (Optional) [Boolean] The group will have S3 privilege.
create_backup_unit
- (Optional) [Boolean] The group will be allowed to create backup unit privilege.
create_internet_access
- (Optional) [Boolean] The group will be allowed to create internet access privilege.
create_k8s_cluster
- (Optional) [Boolean] The group will be allowed to create kubernetes cluster privilege.
user_id
- (Optional) [string] The ID of the specific user to add to the group.
users
- (Computed) List of users in group. See user section.
Resource Group can be imported using the resource id
, e.g.
Creates and manages IonosCloud S3 keys.
Manages an S3 Key on IonosCloud.
The following arguments are supported:
user_id
- (Required)[string] The UUID of the user owning the S3 Key.
active
- (Required)[boolean] Whether the S3 is active / enabled or not - Please keep in mind this is only required on create.
secret_key
- (Computed) Whether this key should be active or not
An S3 Unit resource can be imported using its user id as well as its resource id
, e.g.
This can be helpful when you want to import S3 Keys which you have already created manually or using other means, outside of terraform.