Note
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| kv_store_create | POST /resources/stores/kv | Create a KV store. |
| kv_store_delete | DELETE /resources/stores/kv/{store_id} | Delete a KV store. |
| kv_store_get | GET /resources/stores/kv/{store_id} | Describe a KV store. |
| kv_store_list | GET /resources/stores/kv | List all KV stores. |
| kv_store_put | PUT /resources/stores/kv/{store_id} | Update a KV store. |
Create a KV store.
let cfg = &Configuration::default();
let params = KvStoreCreateParams {
// parameters
};
kv_store_create(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| location | Option<String> | |||
| kv_store_request_create_or_update | Option<KvStoreRequestCreateOrUpdate> |
- 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. Attempting to delete a KV store that contains items will result in a response with a 409 status code.
let cfg = &Configuration::default();
let params = KvStoreDeleteParams {
// parameters
};
kv_store_delete(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 details of a KV store.
let cfg = &Configuration::default();
let params = KvStoreGetParams {
// parameters
};
kv_store_get(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]
List all KV stores.
let cfg = &Configuration::default();
let params = KvStoreListParams {
// parameters
};
kv_store_list(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| cursor | Option<String> | |||
| limit | Option<i32> | [default to 1000] | ||
| name | Option<String> | Returns a one-element array containing the details for the named KV store. |
crate::models::InlineResponse20010
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update the name of a KV store.
let cfg = &Configuration::default();
let params = KvStorePutParams {
// parameters
};
kv_store_put(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| store_id | String | [required] | ||
| kv_store_request_create_or_update | Option<KvStoreRequestCreateOrUpdate> |
(empty response body)
- Content-Type: application/json
- Accept: Not defined