You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,64 +129,63 @@ The following code snippet creates a `ConfigurationSetting` object with `key` an
130
129
This method will throw an exception if you try to add a configuration setting that already exists in your store. If you want to avoid this exception, the [set_configuration_setting](#update-a-configuration-setting) method can be used instead.
The following code snippet retrieves a list of configuration settings. The `key_filter` and `label_filter` arguments can be provided to filter key-values based on `key` and `label` respectively. For more information on filtering, see how to [query configuration settings](./concept-key-value.md#query-key-values).
print("\nRetrieved list of configuration settings:")
148
+
for item in filtered_settings_list:
149
+
print("Key: "+ item.key +", Value: "+ item.value)
151
150
```
152
151
153
152
### Lock a configuration setting
154
153
155
154
The lock status of a key-value in App Configuration is denoted by the `read_only` attribute of the `ConfigurationSetting` object. If `read_only` is `True`, the setting is locked. The `set_read_only` method can be invoked with `read_only=True` argument to lock the configuration setting.
print("\nRead-only status for "+ locked_config_setting.key +": "+str(locked_config_setting.read_only))
160
159
```
161
160
162
161
### Unlock a configuration setting
163
162
164
163
If the `read_only` attribute of a `ConfigurationSetting` is `False`, the setting is unlocked. The `set_read_only` method can be invoked with `read_only=False` argument to unlock the configuration setting.
print("\nRead-only status for "+ unlocked_config_setting.key +": "+str(unlocked_config_setting.read_only))
169
168
```
170
169
171
170
### Update a configuration setting
172
171
173
172
The `set_configuration_setting` method can be used to update an existing setting or create a new setting. The following code snippet changes the value of an existing configuration setting.
174
173
175
174
```python
176
-
added_config_setting.value ="Value has been updated!"
0 commit comments