Esx Agent Manager Api APIs
Provides managed object types for the vSphere ESX Agent Manager server and data classes related to these object types.
Related Documentation
See the vSphere ESX Agent Manager SDK for overviews, tutorials, examples, guides, and tool documentation.
An Agency handles the deployment of a single type of agent
virtual machine and any associated VIB bundle, on a set of compute resources.
For a solution to deploy multiple types of agents, it must create multiple
agencies by using createAgency on EsxAgentManager (see
CreateAgency).
Creating an agency is a long-running process. vSphere ESX Agent Manager must install VIBs, configure hosts, install agent virtual machines and do many more things. Each of these steps can take a considerable amount of time. vSphere ESX Agent Manager can also encounter problems when creating the agency. In this case, the solution must remediate the problem. See Issue for a description of the kinds of issue that vSphere ESX Agent Manager will raise. Similarly, removing an agency from vSphere ESX Agent Manager is also a long-running process that involves many steps. Removing an agency can also raise issues.
Use the goalState and status properties to show the
progress of creating or removing an Agency. The goalState and
status properties are found in the runtime information of an
Agency (see status in
runtime):
goalState. The goal state describes the overall goal of anAgency. The goal state can beenabledoruninstalled:enabled. TheAgencycontinuously deploys VIBs and agent virtual machines, powers on agent virtual machines, and monitors agents for issues.uninstalled. TheAgencyuninstalls any installed VIBs and powers off and deletes any deployed agent virtual machines.
status. The status of theAgencyregarding the given goal state. Status can be either red, yellow or green:red. An issue is preventing theAgencyfrom reaching its desired goal state. See issue in runtime for the types of issues that can block thisAgency.yellow. TheAgencyis actively working to reach the desired goal state. For theenabledgoal state, this means that thisAgencyis currently installing VIBs, deploying agent virtual machines, and powering them on.green. TheAgencyhas reached the desired goal state. TheAgencyis no longer actively scheduling new tasks but is monitoring the vCenter Server for changes that might conflict with thisAgency's goal state.
The following image shows in general terms how the status changes in the
life-cycle of an Agency.
"Agency degraded" means that something has happened in the vCenter Server
that causes this Agency to actively schedule new tasks to reach
the goal state. For example, adding a host to a cluster covered by the scope
of the Agency, which causes ESX Agent Manager to install a VIB
and deploy an agent virtual machine on the new host.
A solution should monitor the list of issues associated with this
Agency.
The solution can poll runtime.
An Agent is the vSphere ESX Agent Manager managed object
responsible for deploying an Agency on a single host.
The
Agent maintains the state of the current deployment in its
runtime information (see runtime).
An Agent has the same goalState and
status properties as an Agency, that are used in
the same way:
goalState. The goal state describes the overall goal of thisAgent. It can beenabledoruninstalled:enabled. TheAgentdeploys its VIB, its agent virtual machine, and powers on the agent virtual machine. TheAgentmonitors in vCenter the status of the installation of the VIB (in case it is uninstalled outside of vSphere ESX Agent Manager) and of the agent virtual machine (in case an operation is performed on it outside of vSphere ESX Agent Manager).uninstalled. TheAgentuninstalls any installed VIB and power off and delete the deployed agent virtual machine.
status. The status of theAgentregarding the given goal state. Status can be either red, yellow or green:red. An issue is preventing theAgentfrom reaching its desired goal state. See issue in runtime for the types of issues that can block thisAgent.yellow. TheAgentis actively working to reach the desired goal state. For theenabledgoal state, this means that thisAgentis installing its VIB, deploying the agent virtual machine, and powering it on.green. TheAgenthas reached the desired goal state. TheAgentis no longer actively scheduling new tasks but is monitoring vCenter for changes that might conflict with thisAgent's goal state.
The EsxAgentManager is the main entry point for a solution to
create agencies in the vSphere ESX Agent Manager server.
In vCenter 6.0, a solution is either a vCenter extension or a regular user.
The vSphere ESX Agent Manager VMODL API distinguishes between two types of users: VC extensions and regular vCenter users. These users have different privileges in the vSphere ESX Agent Manager VMODL API:
- VC extensions have the privileges to call anything in the vSphere ESX Agent Manager VMODL API.
- Regular vCenter users have restrictions on what methods they can call.
The methods that a vCenter user that is not an extension can call are
annotated with two types of privileges,
Eam.ViewandEam.Modify:Eam.View. If a method has theEam.Viewprivilege, a user can call that method if they have theEAM.Viewprivilege in vCenter.Eam.Modify. Similarly toEam.View, if a method has theEam.Modifyprivilege, a user can call that method if they have theEAM.Modifyprivilege in vCenter. If a user has theEAM.Modifyprivilege, they automatically haveEAM.View.
In vCenter 6.5 every solution, which is making VMODL API calls to
EsxAgentManager, should be aware of the posibility, that the data from
vCenter database might not be fully loaded. In all such cases the clients
will receive an ESX Agent Manager runtime fault:
EamServiceNotInitialized.
NOTE: No issues are associated with EsxAgentManager any longer.