跳至内容

equinix_network_file(资源)

资源 equinix_network_file 允许创建和管理 Equinix 网络边缘文件。

用法示例

variable "filepath" { default = "fileFolder/fileName.txt" }

resource "equinix_network_file" "test-file" {
file_name = "fileName.txt"
content = file("${path.module}/${var.filepath}")
metro_code = "SV"
device_type_code = "AVIATRIX_EDGE_10"
process_type = "CLOUD_INIT"
self_managed = true
byol = true
}

论证参考

以下论点得到支持:

  • file_name - (必填)文件名。
  • content - (必填)上传的文件内容,应为 UTF-8 编码的字符串。
  • metro_code - (必填)文件上传位置的都市区代码。它应该与设备位置的都市区代码一致。
  • type_code - (必填)设备类型代码。
  • process_type - (必需)文件处理类型(LICENSE 或 CLOUD_INIT)。
  • self_managed - (必需)布尔值,用于确定设备管理模式,即 self-managedEquinix-managed
  • byol - (必需)布尔值,用于确定设备许可模式,即 bring your own licensesubscription

属性参考

除了上述所有参数外,还会导出以下属性:

  • uuid - 文件资源的唯一标识符。
  • status - 文件上传状态。

进口

可以使用现有 ID 导入此资源:

terraform import equinix_network_file.example {existing_id}

无法导入 contentself_managedbyol 字段。

此页面有帮助吗?