Files
terraform-provider-unifi/docs/resources/portal_file.md
Mateusz Filipowicz b9284f7758 docs: improve documentation for 1.0.0 release (#75)
* docs: add examples and recreate TF documentation

* update readme

* add information about experimental support of firewall zones
2025-03-22 19:13:16 +01:00

1.7 KiB

page_title, subcategory, description
page_title subcategory description
unifi_portal_file Resource - terraform-provider-unifi The unifi_portal_file resource manages files uploaded to the UniFi guest portal. This resource allows you to upload images that can be used in customizing the UniFi guest portal interface. Note: This resource uploads files to the UniFi controller. The file must exist on the local filesystem where Terraform is executed.

unifi_portal_file (Resource)

The unifi_portal_file resource manages files uploaded to the UniFi guest portal. This resource allows you to upload images that can be used in customizing the UniFi guest portal interface.

Note: This resource uploads files to the UniFi controller. The file must exist on the local filesystem where Terraform is executed.

Example Usage

resource "unifi_portal_file" "file" {
    file_path = "/Users/username/Downloads/portal.png"
}

Schema

Required

  • file_path (String) Path to the file on the local filesystem to upload to the UniFi controller. The file must exist and be readable.

Optional

  • site (String) The name of the UniFi site where this resource should be applied. If not specified, the default site will be used.

Read-Only

  • content_type (String) MIME type of the file.
  • file_size (Number) Size of the file in bytes.
  • filename (String) Name of the file as stored in the UniFi controller.
  • id (String) The unique identifier of this resource.
  • last_modified (Number) Timestamp when the file was last modified.
  • md5 (String) MD5 hash of the file content.
  • url (String) URL where the file can be accessed on the UniFi controller.