Get Hosts Policies Apply
Returns the configured policy that has been set for the ESXi host. if you do not have all of the privileges described as follows: - Operation execution requires VcIntegrity.lifecycleSettings.Read. - The resource HostSystem referenced by the parameter host requires VcIntegrity.lifecycleSettings.Read.
Request
URLURL
Path Parameters
Path Parameters
The host identifier. The parameter must be an identifier for the resource type: HostSystem.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Authentication
Response
Response BodyResponse Body
The configured policies that impact the apply operation
{
"enable_quick_boot": false,
"failure_action": {
"action": "FAIL",
"retry_count": 0,
"retry_delay": 0
},
"pre_remediation_power_action": "POWER_OFF_VMS"
}
Enable Quick Boot during remediation of the host. If unset, configured value would be unset.
What action is to be taken if entering maintenance mode fails on an ESXi host. If unset, configured value would be unset.
The Apply.ConfiguredPolicySpec.PreRemediationPowerAction enumerated type defines the possible actions to take, before entering maintenance mode.
POWER_OFF_VMS : Power off VMs before entering maintenance mode.
SUSPEND_VMS : Suspend VMs before entering maintenance mode
DO_NOT_CHANGE_VMS_POWER_STATE : Do not change the VM power state
SUSPEND_VMS_TO_MEMORY : Suspend VMs to Memory before entering maintenance mode
Possible values are: POWER_OFF_VMS , SUSPEND_VMS , DO_NOT_CHANGE_VMS_POWER_STATE , SUSPEND_VMS_TO_MEMORY
Errors
com.vmware.vapi.std.errors.unsupported : If the host is not a vLCM managed standlone host.
com.vmware.vapi.std.errors.not_found : If there is no host associated with host in the system.
com.vmware.vapi.std.errors.error : If there is an unknown internal error. The accompanying error message will give more details about the failure.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: get