$apiInstance = new Fastly\Api\DirectorBackendApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
createDirectorBackend() | POST /service/{service_id}/version/{version_id}/director/{director_name}/backend/{backend_name} | Create a director-backend relationship |
deleteDirectorBackend() | DELETE /service/{service_id}/version/{version_id}/director/{director_name}/backend/{backend_name} | Delete a director-backend relationship |
getDirectorBackend() | GET /service/{service_id}/version/{version_id}/director/{director_name}/backend/{backend_name} | Get a director-backend relationship |
createDirectorBackend($options): \Fastly\Model\DirectorBackend // Create a director-backend relationship
Establishes a relationship between a Backend and a Director. The Backend is then considered a member of the Director and can be used to balance traffic onto.
$options['director_name'] = 'director_name_example'; // string | Name for the Director.
$options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['version_id'] = 56; // int | Integer identifying a service version.
$options['backend_name'] = 'backend_name_example'; // string | The name of the backend.
try {
$result = $apiInstance->createDirectorBackend($options);
} catch (Exception $e) {
echo 'Exception when calling DirectorBackendApi->createDirectorBackend: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
director_name | string | Name for the Director. | |
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
backend_name | string | The name of the backend. |
[Back to top] [Back to API list] [Back to README]
deleteDirectorBackend($options): \Fastly\Model\InlineResponse200 // Delete a director-backend relationship
Deletes the relationship between a Backend and a Director. The Backend is no longer considered a member of the Director and thus will not have traffic balanced onto it from this Director.
$options['director_name'] = 'director_name_example'; // string | Name for the Director.
$options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['version_id'] = 56; // int | Integer identifying a service version.
$options['backend_name'] = 'backend_name_example'; // string | The name of the backend.
try {
$result = $apiInstance->deleteDirectorBackend($options);
} catch (Exception $e) {
echo 'Exception when calling DirectorBackendApi->deleteDirectorBackend: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
director_name | string | Name for the Director. | |
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
backend_name | string | The name of the backend. |
\Fastly\Model\InlineResponse200
[Back to top] [Back to API list] [Back to README]
getDirectorBackend($options): \Fastly\Model\DirectorBackend // Get a director-backend relationship
Returns the relationship between a Backend and a Director. If the Backend has been associated with the Director, it returns a simple record indicating this. Otherwise, returns a 404.
$options['director_name'] = 'director_name_example'; // string | Name for the Director.
$options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.
$options['version_id'] = 56; // int | Integer identifying a service version.
$options['backend_name'] = 'backend_name_example'; // string | The name of the backend.
try {
$result = $apiInstance->getDirectorBackend($options);
} catch (Exception $e) {
echo 'Exception when calling DirectorBackendApi->getDirectorBackend: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
director_name | string | Name for the Director. | |
service_id | string | Alphanumeric string identifying the service. | |
version_id | int | Integer identifying a service version. | |
backend_name | string | The name of the backend. |