Skip to content
Start here

Connectors

resource cloudflare_magic_transit_connector

required Expand Collapse
account_id: String

Account identifier

device: Attributes

Exactly one of id, serial_number, or provision_license must be provided.

id?: String
provision_license?: Bool

When true, create and provision a new licence key for the connector.

serial_number?: String
optional Expand Collapse
provision_license?: Bool

When true, regenerate license key for the connector.

activated?: Bool
interrupt_window_duration_hours?: Float64
interrupt_window_hour_of_day?: Float64
notes?: String
timezone?: String
interrupt_window_days_of_week?: List[String]

Allowed days of the week for upgrades. Default is all days.

interrupt_window_embargo_dates?: List[String]

List of dates (YYYY-MM-DD) when upgrades are blocked.

computed Expand Collapse
id: String
last_heartbeat: String
last_seen_version: String
last_updated: String
license_key: String

cloudflare_magic_transit_connector

resource "cloudflare_magic_transit_connector" "example_magic_transit_connector" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  device = {
    id = "id"
    provision_license = true
    serial_number = "serial_number"
  }
  activated = true
  interrupt_window_days_of_week = ["Sunday"]
  interrupt_window_duration_hours = 1
  interrupt_window_embargo_dates = ["string"]
  interrupt_window_hour_of_day = 0
  notes = "notes"
  timezone = "timezone"
}

data cloudflare_magic_transit_connector

required Expand Collapse
connector_id: String
account_id: String

Account identifier

computed Expand Collapse
id: String
activated: Bool
interrupt_window_duration_hours: Float64
interrupt_window_hour_of_day: Float64
last_heartbeat: String
last_seen_version: String
last_updated: String
license_key: String
notes: String
timezone: String
interrupt_window_days_of_week: List[String]

Allowed days of the week for upgrades. Default is all days.

interrupt_window_embargo_dates: List[String]

List of dates (YYYY-MM-DD) when upgrades are blocked.

device: Attributes
id: String
serial_number: String

cloudflare_magic_transit_connector

data "cloudflare_magic_transit_connector" "example_magic_transit_connector" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  connector_id = "connector_id"
}

data cloudflare_magic_transit_connectors

required Expand Collapse
account_id: String

Account identifier

optional Expand Collapse
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String
activated: Bool
interrupt_window_days_of_week: List[String]

Allowed days of the week for upgrades. Default is all days.

interrupt_window_duration_hours: Float64
interrupt_window_embargo_dates: List[String]

List of dates (YYYY-MM-DD) when upgrades are blocked.

interrupt_window_hour_of_day: Float64
last_updated: String
notes: String
timezone: String
device: Attributes
id: String
serial_number: String
last_heartbeat: String
last_seen_version: String
license_key: String

cloudflare_magic_transit_connectors

data "cloudflare_magic_transit_connectors" "example_magic_transit_connectors" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}