Creates and manages IonosCloud Backup Units.
Manages a Backup Unit on IonosCloud.
The following arguments are supported:
name
- (Required)[string] The name of the Backup Unit. This argument is immutable.
password
- (Required)[string] The desired password for the Backup Unit
email
- (Required)[string] The email address assigned to the backup unit
login
- (Computed) The login associated with the backup unit. Derived from the contract number
A Backup Unit resource can be imported using its resource id
, e.g.
This can be helpful when you want to import backup units which you have already created manually or using other means, outside of terraform. Please note that you need to manually specify the password when first declaring the resource in terraform, as there is no way to retrieve the password from the Cloud API.
Please note that at the moment, Backup Units cannot be renamed
Please note that the password attribute is write-only, and it cannot be retrieved from the API when importing a ionoscloud_backup_unit. The only way to keep track of it in Terraform is to specify it on the resource to be imported, thus, making it a required attribute.
Get Information on a IonosCloud Backup Unit
The backup unit data source can be used to search for and return an existing Backup Unit. You can provide a string for either id or name parameters which will be compared with provisioned Backup Units. 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.
The following arguments are supported:
name
- (Optional) Name of an existing backup unit that you want to search for.
id
- (Optional) ID of the backup unit 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 Backup Unit.
name
- The name of the Backup Unit.
email
- The e-mail address you want assigned to the backup unit.
login
- The login associated with the backup unit. Derived from the contract number.