Skip to main content

AgencyConfigInfo

Struct AgencyConfigInfo 

Source
pub struct AgencyConfigInfo {
Show 17 fields pub agent_config: Option<Vec<AgentConfigInfo>>, pub scope: Option<Box<dyn AgencyScopeTrait>>, pub manually_mark_agent_vm_available_after_provisioning: Option<bool>, pub manually_mark_agent_vm_available_after_power_on: Option<bool>, pub optimized_deployment_enabled: Option<bool>, pub agent_name: Option<String>, pub agency_name: Option<String>, pub use_uuid_vm_name: Option<bool>, pub manually_provisioned: Option<bool>, pub manually_monitored: Option<bool>, pub bypass_vum_enabled: Option<bool>, pub agent_vm_network: Option<Vec<ManagedObjectReference>>, pub agent_vm_datastore: Option<Vec<ManagedObjectReference>>, pub prefer_host_configuration: Option<bool>, pub ip_pool: Option<IpPool>, pub resource_pools: Option<Vec<AgencyVmResourcePool>>, pub folders: Option<Vec<AgencyVmFolder>>,
}
Expand description

Deprecated as of vSphere 9.0. Please refer to vLCM APIs.

This is the configuration of an Agency.

It determines on which compute resources to deploy the agents, which VIB to install, which OVF package to install, and how to configure these items by setting the OVF environment properties.

This structure may be used only with operations rendered under /eam.

§How to access

  • Agency::config
  • Agency::query_config()
  • Agency::update(config)
  • EsxAgentManager::create_agency(agency_config_info)

Fields§

§agent_config: Option<Vec<AgentConfigInfo>>

A list of AgentConfigInfos for hosts covered by this Agency.

When provisioning a new agent to a host, vSphere ESX Agent Manager tries to find, from left to right in the array, a match for an AgentConfigInfo and stops searching at the first one that it finds. If AgencyConfigInfoEx.vmPlacementPolicy is set, the array needs to contain only a single agent config. In that case the agent config is not bound to a specific host, but to the whole cluster.

§scope: Option<Box<dyn AgencyScopeTrait>>

The scope of the Agency.

§manually_mark_agent_vm_available_after_provisioning: Option<bool>

If set to true, the client of this agency must manually mark the agent as ready after the agent virtual machine has been provisioned.

This is useful if the client of this solution performs some extra reconfiguration of the agent virtual machine before it is powered on.

See also Agent.MarkAsAvailable.

§manually_mark_agent_vm_available_after_power_on: Option<bool>

If set to true, the client of this agency must manually mark the agent as ready after the agent virtual machine has been powered on.

In this case, DRS will not regard the agent virtual machine as ready until the client has marked the agent as ready.

See also Agent.MarkAsAvailable.

§optimized_deployment_enabled: Option<bool>

If set to true, ESX Agent Manager will use vSphere Linked Clones to speed up the deployment of agent virtual machines.

Using linked clones implies that the agent virtual machines cannot use Storage vMotion to move to another vSphere datastore. If set to false, ESX Agent Manager will use Full VM Cloning. If unset default is true.

§agent_name: Option<String>

An optional name to use when naming agent virtual machines.

For example, if set to “example-agent”, each agent virtual machine will be named “example-agent (1)”, “example-agent (2)”, and so on. The maximum length of agentName is 70 characters.

§agency_name: Option<String>

Name of the agency.

Must be set when creating the agency.

§use_uuid_vm_name: Option<bool>

Property agentName is required if this property is set to true.

If set to true, ESX Agent Manager will name virtual machines with UUID suffix. For example, “example-agent-UUID”. In this case, the maximum length of agentName is 43 characters.

If not set or is set to false, virtual machines will not contain UUID in their name.

§manually_provisioned: Option<bool>

Deprecated use automatically provisioned VMs and register hooks to have control post provisioning and power on.

Set to true if agent VMs are manually provisioned.

If unset, defaults to false.

§manually_monitored: Option<bool>

Deprecated use automatically provisioned VMs and register hooks to have control post provisioning and power on.

Set to true if agent VMs are manually monitored.

If unset, defaults to false. This can only be set to true if AgencyConfigInfo.manuallyProvisioned is set to true.

§bypass_vum_enabled: Option<bool>

Deprecated vUM is no more consulted so this property has no sense anymore.

Set to true will install VIBs directly on the hosts even if VMware Update Manager is installed.

If unset, defaults to false.

§agent_vm_network: Option<Vec<ManagedObjectReference>>

Specifies the networks which to be configured on the agent VMs.

This property is only applicable for pinned to host VMs - i.e. (AgencyConfigInfoEx.vmPlacementPolicy) is not set.

If not set or AgencyConfigInfo.preferHostConfiguration is set to true, the default host agent VM network (configured through vim.host.EsxAgentHostManager) is used, otherwise the first network from the array that is present on the host is used.

At most one of AgencyConfigInfo.agentVmNetwork and AgencyConfigInfoEx.vmNetworkMapping needs to be set.

Refers instances of Network.

§agent_vm_datastore: Option<Vec<ManagedObjectReference>>

The datastores used to configure the storage on the agent VMs.

This property is required if AgencyConfigInfoEx.vmPlacementPolicy is set and AgencyConfigInfoEx.datastoreSelectionPolicy is not set. In that case the first element from the list is used.

If not set or AgencyConfigInfo.preferHostConfiguration is set to true and AgencyConfigInfoEx.vmPlacementPolicy is not set, the default host agent VM datastore (configured through vim.host.EsxAgentHostManager) is used, otherwise the first datastore from the array that is present on the host is used.

If AgencyConfigInfoEx.vmPlacementPolicy is set at most one of AgencyConfigInfo.agentVmDatastore and AgencyConfigInfoEx.datastoreSelectionPolicy needs to be set. If AgencyConfigInfoEx.vmPlacementPolicy is not set AgencyConfigInfoEx.datastoreSelectionPolicy takes precedence over AgencyConfigInfo.agentVmDatastore .

Refers instances of Datastore.

§prefer_host_configuration: Option<bool>

If set to true the default agent VM datastore and network will take precedence over AgencyConfigInfo.agentVmNetwork and AgencyConfigInfo.agentVmDatastore when configuring the agent VMs.

This property is not used if AgencyConfigInfoEx.vmPlacementPolicy is set.

§ip_pool: Option<IpPool>

Deprecated that is a custom configuration that should be setup by the agency owner. One way is to use AgencyConfigInfo.manuallyMarkAgentVmAvailableAfterPowerOn or AgencyConfigInfo.manuallyMarkAgentVmAvailableAfterProvisioning hooks.

If set, a property with id “ip” and value an IP from the pool is added to the vApp configuration of the deployed VMs.

§resource_pools: Option<Vec<AgencyVmResourcePool>>

Defines the resource pools where VMs to be deployed.

If specified, the VMs for every compute resouce in the scope will be deployed to its corresponding resource pool. If not specified, the agent VMs for each compute resource will be deployed under top level nested resource pool created for the agent VMs. If unable to create a nested resource pool, the root resource pool of the compute resource will be used.

§folders: Option<Vec<AgencyVmFolder>>

Defines the folders where VMs to be deployed.

If specified, the VMs for every compute resouce in the scope will be deployed to its corresponding folder. The link is made between the compute resource parent and the datacenter the folder belongs to AgencyVMFolder.datacenterId. If not specified, the agent VMs for each compute resource will be deployed in top level folder created in each datacenter for the agent VMs.

Trait Implementations§

Source§

impl Debug for AgencyConfigInfo

Source§

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

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

impl Deserialize for AgencyConfigInfo

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl Serialize for AgencyConfigInfo

Source§

fn begin(&self) -> Fragment<'_>

Source§

impl VimObjectTrait for AgencyConfigInfo

Source§

impl DataObjectTrait for AgencyConfigInfo

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> AsAny for T
where T: 'static,

Source§

fn as_any_ref<'a>(&'a self) -> &'a (dyn Any + 'static)

Cast a reference to Any trait.

Source§

fn as_any_box(self: Box<T>) -> Box<dyn Any>

Cast to a boxed reference to Any trait.

Source§

fn type_id(&self) -> TypeId

Get the underlying type identifier.
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<To, T> CastInto<To> for T
where To: CastFrom<T> + ?Sized, T: 'static + ?Sized,

Source§

fn into_ref<'a>(&'a self) -> Option<&'a To>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn into_box(self: Box<T>) -> Result<Box<To>, Box<dyn Any>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,