Load Balancers
Monitors
Monitors endpoint reference.
List
List configured load balancer monitors for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. |
php
$response = $client->loadBalancers()->monitors()->list('ACCOUNT_ID');
Create
Create a new load balancer monitor for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
values | array | No | [] | Values to set on the monitor, e.g. `type`, `method`, `path`, `expected_codes`. |
php
$response = $client->loadBalancers()->monitors()->create('ACCOUNT_ID', []);
Get
Get a single configured load balancer monitor for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
monitorId | string | Yes | Monitor Identifier. |
php
$response = $client->loadBalancers()->monitors()->get('ACCOUNT_ID', 'MONITOR_ID');
Update
Update an existing load balancer monitor for an account, overwriting the full configuration.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
monitorId | string | Yes | Monitor Identifier. | |
values | array | Yes | Values to set on the monitor, e.g. `type`, `method`, `path`, `expected_codes`. |
php
$response = $client->loadBalancers()->monitors()->update('ACCOUNT_ID', 'MONITOR_ID', []);
Edit
Apply changes to an existing monitor, overwriting only the supplied properties.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
monitorId | string | Yes | Monitor Identifier. | |
values | array | Yes | Values to patch on the monitor. |
php
$response = $client->loadBalancers()->monitors()->edit('ACCOUNT_ID', 'MONITOR_ID', []);
Delete
Delete a load balancer monitor for an account.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
monitorId | string | Yes | Monitor Identifier. |
php
$response = $client->loadBalancers()->monitors()->delete('ACCOUNT_ID', 'MONITOR_ID');
Preview
Preview pools associated with a given monitor and show the effective response.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
monitorId | string | Yes | Monitor Identifier. | |
values | array | No | [] | The pools to run the preview on. |
php
$response = $client->loadBalancers()->monitors()->preview('ACCOUNT_ID', 'MONITOR_ID', []);
References
List the load balancers and pools that reference a given monitor.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
accountId | string | Yes | Account Identifier. | |
monitorId | string | Yes | Monitor Identifier. |
php
$response = $client->loadBalancers()->monitors()->references('ACCOUNT_ID', 'MONITOR_ID');

