Networks
Virtual Networks
Virtual Networks endpoint reference.
List
Lists and filters virtual networks in an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
params | array | No | [] | Array containing the necessary params. |
php
$response = $client->zeroTrust()->networks()->virtualNetworks()->list('ACCOUNT_ID', []);
Create
Adds a new virtual network to an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
values | array | Yes | `name` is required. `is_default` makes this the account's default virtual network, and `comment` describes it. |
php
$response = $client->zeroTrust()->networks()->virtualNetworks()->create('ACCOUNT_ID', []);
Get
Get a virtual network.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
virtualNetworkId | string | Yes | UUID of the virtual network. |
php
$response = $client->zeroTrust()->networks()->virtualNetworks()->get('ACCOUNT_ID', 'VIRTUAL_NETWORK_ID');
Edit
Updates an existing virtual network.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
virtualNetworkId | string | Yes | UUID of the virtual network. | |
values | array | No | [] | he fields that are meant to be updated |
php
$response = $client->zeroTrust()->networks()->virtualNetworks()->edit('ACCOUNT_ID', 'VIRTUAL_NETWORK_ID', []);
Delete
Deletes an existing virtual network.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account identifier. | |
virtualNetworkId | string | Yes | UUID of the virtual network. |
php
$response = $client->zeroTrust()->networks()->virtualNetworks()->delete('ACCOUNT_ID', 'VIRTUAL_NETWORK_ID');

