$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
);
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | 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 store
Create 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 store
Delete 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 store
Describe 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 metadata
Retrieve 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 services
List 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 stores
List config stores.
$options['name'] = 'name_example'; // string | Returns a one-element array containing the details for the named config store.
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.
Name | Type | Description | Notes |
---|---|---|---|
name | string | Returns a one-element array containing the details for the named config store. | [optional] |
\Fastly\Model\ConfigStoreResponse[]
[Back to top] [Back to API list] [Back to README]
updateConfigStore($options): \Fastly\Model\ConfigStoreResponse // Update a config store
Update 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] |