---
title: Get Connector
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Magic Transit](https://developers.cloudflare.com/api/go/resources/magic_transit)

[Connectors](https://developers.cloudflare.com/api/go/resources/magic_transit/subresources/connectors)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get Connector

client.MagicTransit.Connectors.Get(ctx, connectorID, query) (\*[ConnectorGetResponse](<https://developers.cloudflare.com/api/go/resources/magic_transit#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/magic/connectors/{connector\_id}

Gets a Magic WAN Connector.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Magic WAN Write``Magic WAN Read`

##### ParametersExpand Collapse

connectorID string

[Link to this property](<#(resource)%20magic_transit.connectors%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20connector_id%20%3E%20(schema)>)

<details>

<summary>

query ConnectorGetParams

</summary>

AccountID param.Field\[string]

maxLength32

<a href="#(resource)%20magic_transit.connectors%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.connectors%20%3E%20(method)%20get%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type ConnectorGetResponse struct{…}

</summary>

ID string

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Activated bool

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20activated">Link to this property</a>

<details>

<summary>

InterruptWindowDaysOfWeek \[]ConnectorGetResponseInterruptWindowDaysOfWeek

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

</summary>

One of the following:

const ConnectorGetResponseInterruptWindowDaysOfWeekSunday ConnectorGetResponseInterruptWindowDaysOfWeek = "Sunday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const ConnectorGetResponseInterruptWindowDaysOfWeekMonday ConnectorGetResponseInterruptWindowDaysOfWeek = "Monday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const ConnectorGetResponseInterruptWindowDaysOfWeekTuesday ConnectorGetResponseInterruptWindowDaysOfWeek = "Tuesday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const ConnectorGetResponseInterruptWindowDaysOfWeekWednesday ConnectorGetResponseInterruptWindowDaysOfWeek = "Wednesday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const ConnectorGetResponseInterruptWindowDaysOfWeekThursday ConnectorGetResponseInterruptWindowDaysOfWeek = "Thursday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

const ConnectorGetResponseInterruptWindowDaysOfWeekFriday ConnectorGetResponseInterruptWindowDaysOfWeek = "Friday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

const ConnectorGetResponseInterruptWindowDaysOfWeekSaturday ConnectorGetResponseInterruptWindowDaysOfWeek = "Saturday"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_days_of_week">Link to this property</a>

InterruptWindowDurationHours float64

maximum24

minimum1

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_duration_hours">Link to this property</a>

InterruptWindowEmbargoDates \[]string

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

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_embargo_dates">Link to this property</a>

InterruptWindowHourOfDay float64

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20interrupt_window_hour_of_day">Link to this property</a>

LastUpdated string

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20last_updated">Link to this property</a>

Notes string

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20notes">Link to this property</a>

Timezone string

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20timezone">Link to this property</a>

<details>

<summary>

Device ConnectorGetResponseDeviceOptional

</summary>

ID string

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20device%20%3E%20(property)%20id">Link to this property</a>

SerialNumber stringOptional

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20device%20%3E%20(property)%20serial_number">Link to this property</a>

<details>

<summary>

Type ConnectorGetResponseDeviceTypeOptional

</summary>

One of the following:

const ConnectorGetResponseDeviceTypeManaged ConnectorGetResponseDeviceType = "MANAGED"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20device%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const ConnectorGetResponseDeviceTypeLicensed ConnectorGetResponseDeviceType = "LICENSED"

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20device%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20device%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20device">Link to this property</a>

LastHeartbeat stringOptional

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20last_heartbeat">Link to this property</a>

LastSeenVersion stringOptional

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20last_seen_version">Link to this property</a>

LicenseKey stringOptional

<a href="#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)%20%3E%20(property)%20license_key">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.connectors%20%3E%20(model)%20ConnectorGetResponse%20%3E%20(schema)>)

### Get Connector

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/magic_transit"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  connector, err := client.MagicTransit.Connectors.Get(
    context.TODO(),
    "connector_id",
    magic_transit.ConnectorGetParams{
      AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", connector.ID)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "id": "id",
    "activated": true,
    "interrupt_window_days_of_week": [
      "Sunday"
    ],
    "interrupt_window_duration_hours": 1,
    "interrupt_window_embargo_dates": [
      "string"
    ],
    "interrupt_window_hour_of_day": 0,
    "last_updated": "last_updated",
    "notes": "notes",
    "timezone": "timezone",
    "device": {
      "id": "id",
      "serial_number": "serial_number",
      "type": "MANAGED"
    },
    "last_heartbeat": "last_heartbeat",
    "last_seen_version": "last_seen_version",
    "license_key": "license_key"
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "id": "id",
    "activated": true,
    "interrupt_window_days_of_week": [
      "Sunday"
    ],
    "interrupt_window_duration_hours": 1,
    "interrupt_window_embargo_dates": [
      "string"
    ],
    "interrupt_window_hour_of_day": 0,
    "last_updated": "last_updated",
    "notes": "notes",
    "timezone": "timezone",
    "device": {
      "id": "id",
      "serial_number": "serial_number",
      "type": "MANAGED"
    },
    "last_heartbeat": "last_heartbeat",
    "last_seen_version": "last_seen_version",
    "license_key": "license_key"
  },
  "success": true
}
```