Note
All URIs are relative to https://api.fastly.com
| Method | HTTP request | Description |
|---|---|---|
| bulk_update_dictionary_item | PATCH /service/{service_id}/dictionary/{dictionary_id}/items | Update multiple entries in a dictionary |
| create_dictionary_item | POST /service/{service_id}/dictionary/{dictionary_id}/item | Create an entry in a dictionary |
| delete_dictionary_item | DELETE /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Delete an item from a dictionary |
| get_dictionary_item | GET /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Get an item from a dictionary |
| list_dictionary_items | GET /service/{service_id}/dictionary/{dictionary_id}/items | List items in a dictionary |
| update_dictionary_item | PATCH /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Update an entry in a dictionary |
| upsert_dictionary_item | PUT /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Insert or update an entry in a dictionary |
Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. Contact support to discuss raising this limit.
let cfg = &Configuration::default();
let params = BulkUpdateDictionaryItemParams {
// parameters
};
bulk_update_dictionary_item(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| bulk_update_dictionary_list_request | Option<BulkUpdateDictionaryListRequest> |
crate::models::InlineResponse200
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Create DictionaryItem given service, dictionary ID, item key, and item value.
let cfg = &Configuration::default();
let params = CreateDictionaryItemParams {
// parameters
};
create_dictionary_item(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| item_key | Option<String> | Item key, maximum 256 characters. | ||
| item_value | Option<String> | Item value, maximum 8000 characters. |
crate::models::DictionaryItemResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete DictionaryItem given service, dictionary ID, and item key.
let cfg = &Configuration::default();
let params = DeleteDictionaryItemParams {
// parameters
};
delete_dictionary_item(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| dictionary_item_key | String | Item key, maximum 256 characters. | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Retrieve a single DictionaryItem given service, dictionary ID and item key.
let cfg = &Configuration::default();
let params = GetDictionaryItemParams {
// parameters
};
get_dictionary_item(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| dictionary_item_key | String | Item key, maximum 256 characters. | [required] |
crate::models::DictionaryItemResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List of DictionaryItems given service and dictionary ID.
let cfg = &Configuration::default();
let params = ListDictionaryItemsParams {
// parameters
};
list_dictionary_items(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| page | Option<i32> | Current page. | ||
| per_page | Option<i32> | Number of records per page. | [default to 100] | |
| sort | Option<String> | Field on which to sort. | [default to created] | |
| direction | Option<String> | Direction in which to sort results. | [default to ascend] |
Vec<crate::models::DictionaryItemResponse>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update DictionaryItem given service, dictionary ID, item key, and item value.
let cfg = &Configuration::default();
let params = UpdateDictionaryItemParams {
// parameters
};
update_dictionary_item(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| dictionary_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. |
crate::models::DictionaryItemResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Upsert DictionaryItem given service, dictionary ID, item key, and item value.
let cfg = &Configuration::default();
let params = UpsertDictionaryItemParams {
// parameters
};
upsert_dictionary_item(cfg, params)| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| service_id | String | Alphanumeric string identifying the service. | [required] | |
| dictionary_id | String | Alphanumeric string identifying a Dictionary. | [required] | |
| dictionary_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. |
crate::models::DictionaryItemResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json