freebox_remote_file
(Resource)
This resource downloads a file from a URL and stores it on the Freebox.
Example
resource "freebox_remote_file" "example" {
source_url = "https://example.com/file.txt"
destination_path = "/Freebox/VMs/file.txt"
checksum = "sha256:0a0a9f2a6772942557ab5347d9b0e6b8"
}
output "task_id" {
value = resource.freebox_remote_file.example.task_id
}
Schema
Required
destination_path
(String) Path to the file on the Freeboxsource_url
(String) The URL of the file to download
Optional
authentication
(Attributes) Authentication credentials to use for the operation (see below for nested schema)checksum
(String) Checksum to verify the hash of the downloaded filepolling
(Attributes) Polling configuration (see below for nested schema)
Nested Schema for authentication
Optional:
basic_auth
(Attributes) Basic authentication credentials (see below for nested schema)
Nested Schema for authentication.basic_auth
Optional:
password
(String, Sensitive) Passwordusername
(String) Username
Nested Schema for polling
Optional:
checksum_compute
(Attributes) Checksum compute polling configuration (see below for nested schema)create
(Attributes) Creation polling configuration (see below for nested schema)delete
(Attributes) Deletion polling configuration (see below for nested schema)move
(Attributes) Move polling configuration (see below for nested schema)
Nested Schema for polling.checksum_compute
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Nested Schema for polling.create
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Nested Schema for polling.delete
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Nested Schema for polling.move
Optional:
interval
(String) The interval at which to poll.timeout
(String) The timeout for the operation.
Import
# -------------------------------------------- 👇 is the ID of the task
terraform import "freebox_remote_file.example" 42
# -------------------------------------------- 👇 is the path on the freebox disk
terraform import "freebox_remote_file.example" the-disk/path/to/the/file.txt