$apiInstance = new Fastly\Api\ConfigStoreApi(
// 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
);| Method | Fastly API endpoint | Description |
|---|---|---|
| createConfigStore() | POST /resources/stores/config | Create a config store |
| deleteConfigStore() | DELETE /resources/stores/config/{config_store_id} | Delete a config store |
| getConfigStore() | GET /resources/stores/config/{config_store_id} | Describe a config store |
| getConfigStoreInfo() | GET /resources/stores/config/{config_store_id}/info | Get config store metadata |
| listConfigStoreServices() | GET /resources/stores/config/{config_store_id}/services | List linked services |
| listConfigStores() | GET /resources/stores/config | List config stores |
| updateConfigStore() | PUT /resources/stores/config/{config_store_id} | Update a config store |
createConfigStore($options): \Fastly\Model\ConfigStoreResponse // Create a config storeCreate a config store.
$options['name'] = 'name_example'; // string | The name of the config store.
try {
$result = $apiInstance->createConfigStore($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->createConfigStore: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | The name of the config store. | [optional] |
\Fastly\Model\ConfigStoreResponse
[Back to top] [Back to API list] [Back to README]
deleteConfigStore($options): \Fastly\Model\InlineResponse200 // Delete a config storeDelete a config store.
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.
try {
$result = $apiInstance->deleteConfigStore($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->deleteConfigStore: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
| Name | Type | Description | Notes |
|---|---|---|---|
| config_store_id | string | An alphanumeric string identifying the config store. |
\Fastly\Model\InlineResponse200
[Back to top] [Back to API list] [Back to README]
getConfigStore($options): \Fastly\Model\ConfigStoreResponse // Describe a config storeDescribe a config store by its identifier.
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.
try {
$result = $apiInstance->getConfigStore($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->getConfigStore: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
| Name | Type | Description | Notes |
|---|---|---|---|
| config_store_id | string | An alphanumeric string identifying the config store. |
\Fastly\Model\ConfigStoreResponse
[Back to top] [Back to API list] [Back to README]
getConfigStoreInfo($options): \Fastly\Model\ConfigStoreInfoResponse // Get config store metadataRetrieve metadata for a single config store.
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.
try {
$result = $apiInstance->getConfigStoreInfo($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->getConfigStoreInfo: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
| Name | Type | Description | Notes |
|---|---|---|---|
| config_store_id | string | An alphanumeric string identifying the config store. |
\Fastly\Model\ConfigStoreInfoResponse
[Back to top] [Back to API list] [Back to README]
listConfigStoreServices($options): object // List linked servicesList services linked to a config store
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.
try {
$result = $apiInstance->listConfigStoreServices($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->listConfigStoreServices: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
| Name | Type | Description | Notes |
|---|---|---|---|
| config_store_id | string | An alphanumeric string identifying the config store. |
object
[Back to top] [Back to API list] [Back to README]
listConfigStores($options): \Fastly\Model\ConfigStoreResponse[] // List config storesList config stores.
try {
$result = $apiInstance->listConfigStores($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->listConfigStores: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
This endpoint does not need any parameters.
\Fastly\Model\ConfigStoreResponse[]
[Back to top] [Back to API list] [Back to README]
updateConfigStore($options): \Fastly\Model\ConfigStoreResponse // Update a config storeUpdate a config store.
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.
$options['name'] = 'name_example'; // string | The name of the config store.
try {
$result = $apiInstance->updateConfigStore($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->updateConfigStore: ', $e->getMessage(), PHP_EOL;
}Note: the input parameter is an associative array with the keys listed below.
| Name | Type | Description | Notes |
|---|---|---|---|
| config_store_id | string | An alphanumeric string identifying the config store. | |
| name | string | The name of the config store. | [optional] |