> This page is for Harmonic.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://mediakind.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://mediakind.ferndocs.com/_mcp/server.

# Get all network(s) assigned to the platform

GET https://device.example.com:443/cluster1/vos-api/mux/v1/networks

Reference: https://mediakind.ferndocs.com/harmonic/api/vos/mux-app-configure/get-all-network

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Response

### 200

successful operation

- `list of com.harmonicinc.vos.mux.model.common.Network`

## Errors

### 401 Unauthorized Error

Unauthorized

- `any`

### 403 Forbidden Error

Forbidden

- `any`

### 404 Not Found Error

Not found

- `any`

## Types

### com.harmonicinc.vos.mux.model.common.Network

- `networkId` (integer, required) — Mpeg Network ID (0-65535)
- `id` (string, optional) — Unique identifier of a network in UUID format
- `networkDescriptors` (list of com.harmonicinc.vos.mux.model.common.Descriptor, optional) — network descriptors in hex TLV format
- `networkName` (string, optional) — Network Name (0-255 characters). Network name descriptor (0x64) will be created when name is not empty
- `transports` (list of com.harmonicinc.vos.mux.model.common.Transport, optional) — network transports

### com.harmonicinc.vos.mux.model.common.Descriptor

- `hexaValue` (string, required) — the buffer content of the descriptor in hexa value

### com.harmonicinc.vos.mux.model.common.Transport

- `originalNetworkId` (integer, required) — MPEG Original Network ID (0-65535)
- `tsMpegId` (integer, required) — MPEG TS ID (0-65535)
- `tsDescriptors` (list of com.harmonicinc.vos.mux.model.common.Descriptor, optional) — transport descriptors in hex TLV format

## Examples

**Response**

```json
[
  {
    "networkId": 4,
    "id": "2677bf96-ef19-11ed-a05b-0242ac120003",
    "networkDescriptors": [
      {
        "hexaValue": "string"
      }
    ],
    "networkName": "string",
    "transports": [
      {
        "originalNetworkId": 1,
        "tsMpegId": 1,
        "tsDescriptors": [
          {
            "hexaValue": "string"
          }
        ]
      }
    ]
  }
]
```

**SDK Code**

```python
import requests

url = "https://device.example.com/cluster1/vos-api/mux/v1/networks"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://device.example.com/cluster1/vos-api/mux/v1/networks';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://device.example.com/cluster1/vos-api/mux/v1/networks"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://device.example.com/cluster1/vos-api/mux/v1/networks")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://device.example.com/cluster1/vos-api/mux/v1/networks")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://device.example.com/cluster1/vos-api/mux/v1/networks', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://device.example.com/cluster1/vos-api/mux/v1/networks");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://device.example.com/cluster1/vos-api/mux/v1/networks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```