Skip to main content
DELETE
Remove destinations from a Devin Connect gateway
Removes the destinations in the request body from a Devin Connect gateway. Destinations are sent in the body rather than the path because an IPv4 CIDR contains /.

Permissions

Requires a service user or personal access token with the ManageEnterpriseSettings permission at the enterprise level. Devin Connect must be enabled for the enterprise, otherwise the endpoint returns 403.

Behavior

  • Destinations use the same format as Add gateway destinations and are normalized the same way before matching.
  • Destinations the gateway doesn’t route are ignored, so repeating a removal is safe.
  • To remove every destination, use Replace gateway destinations with an empty list.
  • Removing a destination from the gateway doesn’t change any security profile. Remove the host from the profile’s net_policy.allow separately if it should no longer be allowed.
  • Changes are recorded in the audit log as update_gateway_hostnames.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

gateway_id
string
required

Body

application/json

Removes destinations from one gateway.

destinations
DevinConnectDestination · object[]
required

Destinations to remove. Ones the gateway does not carry are ignored, so repeating a removal is safe.

Response

Successful Response

A Devin Connect gateway and the destinations routed through it.

destinations
DevinConnectDestination · object[]
required

Destinations routed through this gateway

gateway_id
string
required

Gateway id

kind
enum<string>
required

tunnel: the customer gateway dials in; direct: Devin dials the gateway (e.g. over AWS PrivateLink)

Available options:
tunnel,
direct
name
string
required

Gateway name

connected
boolean | null

Whether a tunnel gateway is connected now; null for direct

last_connected_at
integer | null

When a tunnel gateway last reported in