Managing Settings
Administrators can create and manage settings, in particular, to toggle actions available to users, both in the web panel and the API.
Settings can be created and managed with the vzapi setting commands. Settings cannot be duplicated, however. Trying to create a setting that already exists will result in the HTTP status code 409 (conflict). You can either update the setting or delete it and create it anew.
Listing Settings
To list settings, use the vzapi setting list command.
vzapi <cmd> with vzapi --os-cloud local-credential <cmd>. For more details, see Managing Multi-Factor Authentication.For example:
| |
Creating Settings
To create a setting, specify a user action to toggle and the value of which 0 disables and 1 enables the setting. You can also narrow the setting down to affect only VMs or containers and only the web panel or API.
For a list of the currently supported user actions and other parameters, see Creating Settings.
To create settings, use the vzapi setting create command.
vzapi <cmd> with vzapi --os-cloud local-credential <cmd>. For more details, see Managing Multi-Factor Authentication.For example, to completely disable the change password action, run
| |
To disable the reinstall action only in the web panel (i.e. hide the button), run
| |
The action is only available for containers, so even though instance_type is set to all by default, only containers will be affected.
Showing Setting Details
To show the details of a setting, use the vzapi setting show command.
vzapi <cmd> with vzapi --os-cloud local-credential <cmd>. For more details, see Managing Multi-Factor Authentication.For example:
| |
Updating Settings
To update a setting, use the vzapi setting update command.
vzapi <cmd> with vzapi --os-cloud local-credential <cmd>. For more details, see Managing Multi-Factor Authentication.For example:
| |
The next time you request this setting’s details, the updated_at field will contain the timestamp of the update.
Deleting Settings
To delete a setting, use the vzapi setting delete command.
vzapi <cmd> with vzapi --os-cloud local-credential <cmd>. For more details, see Managing Multi-Factor Authentication.For example:
| |