const apiInstance = new Fastly.ConfigStoreApi();
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({ , [name] })
Create a config store.
const options = {
name: "name_example",
};
apiInstance.createConfigStore(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
name | String | The name of the config store. | [optional] |
deleteConfigStore({ config_store_id })
Delete a config store.
const options = {
config_store_id: "config_store_id_example", // required
};
apiInstance.deleteConfigStore(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
config_store_id | String | An alphanumeric string identifying the config store. |
getConfigStore({ config_store_id })
Describe a config store by its identifier.
const options = {
config_store_id: "config_store_id_example", // required
};
apiInstance.getConfigStore(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
config_store_id | String | An alphanumeric string identifying the config store. |
getConfigStoreInfo({ config_store_id })
Retrieve metadata for a single config store.
const options = {
config_store_id: "config_store_id_example", // required
};
apiInstance.getConfigStoreInfo(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
config_store_id | String | An alphanumeric string identifying the config store. |
listConfigStoreServices({ config_store_id })
List services linked to a config store
const options = {
config_store_id: "config_store_id_example", // required
};
apiInstance.listConfigStoreServices(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
config_store_id | String | An alphanumeric string identifying the config store. |
Object
listConfigStores({ , [name] })
List config stores.
const options = {
name: "name_example",
};
apiInstance.listConfigStores(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
name | String | Returns a one-element array containing the details for the named config store. | [optional] |
updateConfigStore({ config_store_id, [name] })
Update a config store.
const options = {
config_store_id: "config_store_id_example", // required
name: "name_example",
};
apiInstance.updateConfigStore(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
config_store_id | String | An alphanumeric string identifying the config store. | |
name | String | The name of the config store. | [optional] |