Skip to content

Latest commit

 

History

History
272 lines (170 loc) · 8.3 KB

ConfigStoreItemApi.md

File metadata and controls

272 lines (170 loc) · 8.3 KB

ConfigStoreItemApi

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
bulk_update_config_store_item PATCH /resources/stores/config/{config_store_id}/items Update multiple entries in a config store
create_config_store_item POST /resources/stores/config/{config_store_id}/item Create an entry in a config store
delete_config_store_item DELETE /resources/stores/config/{config_store_id}/item/{config_store_item_key} Delete an item from a config store
get_config_store_item GET /resources/stores/config/{config_store_id}/item/{config_store_item_key} Get an item from a config store
list_config_store_items GET /resources/stores/config/{config_store_id}/items List items in a config store
update_config_store_item PATCH /resources/stores/config/{config_store_id}/item/{config_store_item_key} Update an entry in a config store
upsert_config_store_item PUT /resources/stores/config/{config_store_id}/item/{config_store_item_key} Insert or update an entry in a config store

bulk_update_config_store_item

Add multiple key-value pairs to an individual config store, specified by ID.

let cfg = &Configuration::default();
let params = BulkUpdateConfigStoreItemParams {
    // parameters
};
bulk_update_config_store_item(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]
bulk_update_config_store_list_request Option<BulkUpdateConfigStoreListRequest>

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

create_config_store_item

Add a single key-value pair to an individual config store, specified by ID.

let cfg = &Configuration::default();
let params = CreateConfigStoreItemParams {
    // parameters
};
create_config_store_item(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]
item_key Option<String> Item key, maximum 256 characters.
item_value Option<String> Item value, maximum 8000 characters.

Return type

crate::models::ConfigStoreItemResponse

Authorization

token

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

delete_config_store_item

Delete an entry in a config store given a config store ID, and item key.

let cfg = &Configuration::default();
let params = DeleteConfigStoreItemParams {
    // parameters
};
delete_config_store_item(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]
config_store_item_key String Item key, maximum 256 characters. [required]

Return type

crate::models::InlineResponse200

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

get_config_store_item

Retrieve a config store entry given a config store ID and item key.

let cfg = &Configuration::default();
let params = GetConfigStoreItemParams {
    // parameters
};
get_config_store_item(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]
config_store_item_key String Item key, maximum 256 characters. [required]

Return type

crate::models::ConfigStoreItemResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

list_config_store_items

List the key-value pairs associated with a given config store ID.

let cfg = &Configuration::default();
let params = ListConfigStoreItemsParams {
    // parameters
};
list_config_store_items(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]

Return type

Vec<crate::models::ConfigStoreItemResponse>

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

update_config_store_item

Update an entry in a config store given a config store ID, item key, and item value.

let cfg = &Configuration::default();
let params = UpdateConfigStoreItemParams {
    // parameters
};
update_config_store_item(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]
config_store_item_key String Item key, maximum 256 characters. [required]
item_key Option<String> Item key, maximum 256 characters.
item_value Option<String> Item value, maximum 8000 characters.

Return type

crate::models::ConfigStoreItemResponse

Authorization

token

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

upsert_config_store_item

Insert or update an entry in a config store given a config store ID, item key, and item value.

let cfg = &Configuration::default();
let params = UpsertConfigStoreItemParams {
    // parameters
};
upsert_config_store_item(cfg, params)

Parameters

Name Type Description Required Notes
config_store_id String An alphanumeric string identifying the config store. [required]
config_store_item_key String Item key, maximum 256 characters. [required]
item_key Option<String> Item key, maximum 256 characters.
item_value Option<String> Item value, maximum 8000 characters.

Return type

crate::models::ConfigStoreItemResponse

Authorization

token

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]