Struct PutParams

Source
pub struct PutParams {
Show 23 fields pub bwlimit: Option<String>, pub console: Option<Console>, pub crs: Option<String>, pub delete: Option<String>, pub description: Option<String>, pub email_from: Option<String>, pub fencing: Option<Fencing>, pub ha: Option<String>, pub http_proxy: Option<String>, pub keyboard: Option<Keyboard>, pub language: Option<Language>, pub mac_prefix: Option<String>, pub max_workers: Option<u64>, pub migration: Option<String>, pub migration_unsecure: Option<bool>, pub next_id: Option<String>, pub notify: Option<String>, pub registered_tags: Option<String>, pub tag_style: Option<String>, pub u2f: Option<String>, pub user_tag_access: Option<String>, pub webauthn: Option<String>, pub additional_properties: HashMap<String, Value>,
}

Fields§

§bwlimit: Option<String>

Set I/O bandwidth limit for various operations (in KiB/s).

§console: Option<Console>

Select the default Console viewer. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer comtatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.

§crs: Option<String>

Cluster resource scheduling settings.

§delete: Option<String>

A list of settings you want to delete.

§description: Option<String>

Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.

§email_from: Option<String>

Specify email address to send notification from (default is root@$hostname)

§fencing: Option<Fencing>

Set the fencing mode of the HA cluster. Hardware mode needs a valid configuration of fence devices in /etc/pve/ha/fence.cfg. With both all two modes are used.

WARNING: ‘hardware’ and ‘both’ are EXPERIMENTAL & WIP

§ha: Option<String>

Cluster wide HA settings.

§http_proxy: Option<String>

Specify external http proxy which is used for downloads (example: ‘http://username:password@host:port/’)

§keyboard: Option<Keyboard>

Default keybord layout for vnc server.

§language: Option<Language>

Default GUI language.

§mac_prefix: Option<String>

Prefix for the auto-generated MAC addresses of virtual guests. The default ‘BC:24:11’ is the OUI assigned by the IEEE to Proxmox Server Solutions GmbH for a 24-bit large MAC block. You’re allowed to use this in local networks, i.e., those not directly reachable by the public (e.g., in a LAN or behind NAT). Prefix for the auto-generated MAC addresses of virtual guests. The default BC:24:11 is the Organizationally Unique Identifier (OUI) assigned by the IEEE to Proxmox Server Solutions GmbH for a MAC Address Block Large (MA-L). You’re allowed to use this in local networks, i.e., those not directly reachable by the public (e.g., in a LAN or NAT/Masquerading).

Note that when you run multiple cluster that (partially) share the networks of their virtual guests, it’s highly recommended that you extend the default MAC prefix, or generate a custom (valid) one, to reduce the chance of MAC collisions. For example, add a separate extra hexadecimal to the Proxmox OUI for each cluster, like BC:24:11:0 for the first, BC:24:11:1 for the second, and so on. Alternatively, you can also separate the networks of the guests logically, e.g., by using VLANs.

For publicly accessible guests it’s recommended that you get your own https://standards.ieee.org/products-programs/regauth/[OUI from the IEEE] registered or coordinate with your, or your hosting providers, network admins.

§max_workers: Option<u64>

Defines how many workers (per node) are maximal started on actions like ‘stopall VMs’ or task from the ha-manager.

§migration: Option<String>

For cluster wide migration settings.

§migration_unsecure: Option<bool>

Migration is secure using SSH tunnel by default. For secure private networks you can disable it to speed up migration. Deprecated, use the ‘migration’ property instead!

§next_id: Option<String>

Control the range for the free VMID auto-selection pool.

§notify: Option<String>

Cluster-wide notification settings.

§registered_tags: Option<String>

A list of tags that require a Sys.Modify on ‘/’ to set and delete. Tags set here that are also in ‘user-tag-access’ also require Sys.Modify.

§tag_style: Option<String>

Tag style options.

§u2f: Option<String>

u2f

§user_tag_access: Option<String>

Privilege options for user-settable tags

§webauthn: Option<String>

webauthn configuration

§additional_properties: HashMap<String, Value>

Trait Implementations§

Source§

impl Clone for PutParams

Source§

fn clone(&self) -> PutParams

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PutParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PutParams

Source§

fn default() -> PutParams

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PutParams

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PutParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,