pub struct PutParams {
pub comment: Option<String>,
pub delete: Option<String>,
pub digest: Option<String>,
pub group: Option<String>,
pub max_relocate: Option<u64>,
pub max_restart: Option<u64>,
pub state: Option<State>,
pub additional_properties: HashMap<String, Value>,
}
Fields§
§comment: Option<String>
Description.
delete: Option<String>
A list of settings you want to delete.
digest: Option<String>
Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
group: Option<String>
The HA group identifier.
max_relocate: Option<u64>
Maximal number of service relocate tries when a service failes to start.
max_restart: Option<u64>
Maximal number of tries to restart the service on a node after its start failed.
state: Option<State>
Requested resource state.
Requested resource state. The CRM reads this state and acts accordingly.
Please note that enabled
is just an alias for started
.
started
;;
The CRM tries to start the resource. Service state is
set to started
after successful start. On node failures, or when start
fails, it tries to recover the resource. If everything fails, service
state it set to error
.
stopped
;;
The CRM tries to keep the resource in stopped
state, but it
still tries to relocate the resources on node failures.
disabled
;;
The CRM tries to put the resource in stopped
state, but does not try
to relocate the resources on node failures. The main purpose of this
state is error recovery, because it is the only way to move a resource out
of the error
state.
ignored
;;
The resource gets removed from the manager status and so the CRM and the LRM do not touch the resource anymore. All {pve} API calls affecting this resource will be executed, directly bypassing the HA stack. CRM commands will be thrown away while there source is in this state. The resource will not get relocated on node failures.
additional_properties: HashMap<String, Value>