Networks

Listing networks

GET /networks?team_id={team_id}

The Authorization header is required, with the value set to Bearer {access_token}.

Request example

curl --request GET "https://api.crunchybridge.com/networks?team_id=frlfu3x2pndnllsvjadviwga54"\
    --header "Accept: application/json"\
    --header "Authorization: Bearer 22rpvk7jjdqfci6rjbrl24x5m"
{
  "networks": [
    {
      "cidr4": "",
      "id": "",
      "name": "",
      "provider_id": "",
      "region_id": "",
      "team_id": ""
    }
  ]
}

Get details for network

GET /networks/{network_id}

The Authorization header is required, with the value set to Bearer {access_token}.

Request example

curl --request GET "https://api.crunchybridge.com/networks/frlfu3x2pndnllsvjadviwga54"\
    --header "Accept: application/json"\
    --header "Authorization: Bearer 22rpvk7jjdqfci6rjbrl24x5m"
Response item Type Description
cidr4 string A subnet block specifying the network’s location and possible addresses in CIDR4 (IPv4) notation.
id string Unique ID of the network.
name string Human readable name for the network
provider_id string ID of the provider on which the network is located.
region_id string ID of the region where the network is located.
team_id string ID of the team which the network belongs to.

Update a network

PATCH /networks/{network_id}

The only attribute that can be changed is the name

Patch example

curl -X  PATCH "https://api.crunchybridge.com/networks/frlfu3x2pndnllsvjadviwga54"\
    --header "Accept: application/json"\
    --header "Authorization: Bearer 22rpvk7jjdqfci6rjbrl24x5m"\
    -d '{"name":"new name"}'