Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_dictionary | POST /service/{service_id}/version/{version_id}/dictionary | Create an edge dictionary |
delete_dictionary | DELETE /service/{service_id}/version/{version_id}/dictionary/{dictionary_name} | Delete an edge dictionary |
get_dictionary | GET /service/{service_id}/version/{version_id}/dictionary/{dictionary_name} | Get an edge dictionary |
list_dictionaries | GET /service/{service_id}/version/{version_id}/dictionary | List edge dictionaries |
update_dictionary | PUT /service/{service_id}/version/{version_id}/dictionary/{dictionary_name} | Update an edge dictionary |
Create named dictionary for a particular service and version.
let cfg = &Configuration::default();
let params = CreateDictionaryParams {
// parameters
};
create_dictionary(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
name | Option<String> | Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). | ||
write_only | Option<bool> | Determines if items in the dictionary are readable or not. | [default to false] |
crate::models::DictionaryResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Delete named dictionary for a particular service and version.
let cfg = &Configuration::default();
let params = DeleteDictionaryParams {
// parameters
};
delete_dictionary(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
dictionary_name | String | Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). | [required] |
crate::models::InlineResponse200
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Retrieve a single dictionary by name for the version and service.
let cfg = &Configuration::default();
let params = GetDictionaryParams {
// parameters
};
get_dictionary(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
dictionary_name | String | Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). | [required] |
crate::models::DictionaryResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
List all dictionaries for the version of the service.
let cfg = &Configuration::default();
let params = ListDictionariesParams {
// parameters
};
list_dictionaries(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] |
Vec<crate::models::DictionaryResponse>
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Update named dictionary for a particular service and version.
let cfg = &Configuration::default();
let params = UpdateDictionaryParams {
// parameters
};
update_dictionary(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
service_id | String | Alphanumeric string identifying the service. | [required] | |
version_id | i32 | Integer identifying a service version. | [required] | |
dictionary_name | String | Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). | [required] | |
name | Option<String> | Name for the Dictionary (must start with an alphabetic character and can contain only alphanumeric characters, underscores, and whitespace). | ||
write_only | Option<bool> | Determines if items in the dictionary are readable or not. | [default to false] |
crate::models::DictionaryResponse
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json