Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_store | POST /resources/stores/kv | Create a KV store. |
delete_store | DELETE /resources/stores/kv/{store_id} | Delete a KV store. |
get_store | GET /resources/stores/kv/{store_id} | Describe a KV store. |
get_stores | GET /resources/stores/kv | List KV stores. |
Create a new KV store.
let cfg = &Configuration::default();
let params = CreateStoreParams {
// parameters
};
create_store(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
location | Option<String> | |||
store | Option<Store> |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
A KV store must be empty before it can be deleted. Deleting a KV store that still contains keys will result in a 409
(Conflict).
let cfg = &Configuration::default();
let params = DeleteStoreParams {
// parameters
};
delete_store(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to README]
Get a KV store by ID.
let cfg = &Configuration::default();
let params = GetStoreParams {
// parameters
};
get_store(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
store_id | String | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Get all stores for a given customer.
let cfg = &Configuration::default();
let params = GetStoresParams {
// parameters
};
get_stores(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
cursor | Option<String> | |||
limit | Option<i32> | [default to 1000] |
crate::models::InlineResponse2003
- Content-Type: Not defined
- Accept: application/json