For the complete documentation index, see llms.txt. This page is also available as Markdown.

Clouds & Branches

This endpoint allows you to fetch data about the Clouds & Branches of your Team.

Fetch All Branches

get

Returns all site-to-site VPN branches of the team. IPSec branches additionally contain credentials, lifetimes and phase 1/2 options. Requires scope branches.read-all.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
Responseobject
get/api/v1/branches
GET /api/v1/branches HTTP/1.1
Host: integration.goodaccess.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "HQ Branch",
    "created_at": "2024-01-15 10:00:00",
    "protocol": "ikev2",
    "is_connected": false,
    "is_enabled": true,
    "subnets": [
      {
        "id": "68196a0c-9248-4fe9-a934-a682002b0ecd",
        "name": "Main LAN",
        "subnet": "10.0.1.0/24",
        "status": "active",
        "systems": [
          {
            "id": "8e4a413c-7f7b-4925-9b9b-e22c3f65f2a0",
            "name": "File Server"
          }
        ],
        "segments": []
      }
    ]
  },
  {
    "id": "660e8400-e29b-41d4-a716-446655440001",
    "name": "Office Branch",
    "created_at": "2024-01-20 09:30:00",
    "protocol": "ipsec",
    "is_connected": true,
    "is_enabled": true,
    "snat": null,
    "tunnel_lifetime": 8,
    "ike_lifetime": 24,
    "dead_peer_detection_delay": 30,
    "public_ip": "203.0.113.1",
    "remote_id": null,
    "shared_secret": "secretvalue",
    "subnets": [
      {
        "id": "fcf7a576-a634-464c-bd4b-269cf9934031",
        "name": "LAN",
        "subnet": "192.168.10.0/24",
        "status": "active",
        "systems": [],
        "segments": []
      }
    ],
    "options": {
      "phase_1": {
        "encryptions": [
          "AES-256"
        ],
        "integrities": [
          "SHA-256"
        ],
        "dh_groups": [
          "MODP-2048"
        ],
        "prfs": []
      },
      "phase_2": {
        "encryptions": [
          "AES-256"
        ],
        "integrities": [
          "SHA-256"
        ],
        "dh_groups": [
          "MODP-2048"
        ]
      }
    }
  }
]

Fetch Branch by its ID

get

Returns a single branch. The IPSec-only fields (snat, tunnel_lifetime, ike_lifetime, dead_peer_detection_delay, public_ip, remote_id, shared_secret, options) are present only when protocol is ipsec. Requires scope branches.read.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
branchIdstringRequired

ID of branch

Responses
200

OK

application/json
Responseobject
get/api/v1/branch/{branchId}
GET /api/v1/branch/{branchId} HTTP/1.1
Host: integration.goodaccess.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "660e8400-e29b-41d4-a716-446655440001",
  "name": "Office Branch",
  "created_at": "2024-01-20 09:30:00",
  "protocol": "ipsec",
  "is_connected": true,
  "is_enabled": true,
  "snat": "203.0.113.50",
  "tunnel_lifetime": 8,
  "ike_lifetime": 24,
  "dead_peer_detection_delay": 30,
  "public_ip": "203.0.113.1",
  "remote_id": "vpn@office.example.com",
  "shared_secret": "supersecret",
  "subnets": [
    {
      "id": "fcf7a576-a634-464c-bd4b-269cf9934031",
      "name": "Office LAN",
      "subnet": "192.168.10.0/24",
      "status": "active",
      "systems": [],
      "segments": []
    }
  ],
  "options": {
    "phase_1": {
      "encryptions": [
        "AES-256"
      ],
      "integrities": [
        "SHA-256"
      ],
      "dh_groups": [
        "MODP-2048"
      ],
      "prfs": []
    },
    "phase_2": {
      "encryptions": [
        "AES-256"
      ],
      "integrities": [
        "SHA-256"
      ],
      "dh_groups": [
        "MODP-2048"
      ]
    }
  }
}

Last updated

Was this helpful?