Esx Agent Manager Create Agency
Deprecated as of vSphere 9.0. Please refer to vLCM APIs.
Creates an Agency.
The initial goal state is given to the method by the
second parameter. Throws InvalidArgument
if the
agencyName
is not set in the agencyConfigInfo
.
Requires modify privileges.
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case EsxAgentManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"CreateAgencyRequestType Object"
The configuration that describes how to deploy the agents in the created agency.
Deprecated. No sence to create agency in other state than
enabled
. disabled
is deprecated
whereas uninstalled
is useless.
The initial goal state of the agency. See
EamObjectRuntimeInfoGoalStateEnum.
InvalidAgentConfiguration: Thrown if the agent configuration is empty or if one or more agent configurations are invalid.
InvalidAgencyScope: Thrown if one or more compute resources in the scope cannot be found in vCenter or there is no configured resource pool or folder where the VMs to be deployed.
EamInvalidUrl: Thrown if either the agent virtual machine URL or VIB URL cannot be parsed or if the resource refered to cannot be downloaded.
"EamFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/eam/EsxAgentManager/{moId}/CreateAgency