Apply Clusters Configuration Task
Request
URLURL
Path Parameters
Path Parameters
The parameter must be an identifier for the resource type: ClusterComputeResource.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
The Configuration.ApplySpec structure contains fields that describe the specification to be used for applying the desired configuration to a cluster. Warning: This structure is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments.
{
"apply_policy_spec": {
"disable_dpm": false,
"disable_hac": false,
"enable_quick_boot": false,
"enforce_hcl_validation": false,
"evacuate_offline_vms": false,
"failure_action": {
"action": "FAIL",
"retry_count": 0,
"retry_delay": 0
},
"parallel_remediation_action": {
"enabled": false,
"max_hosts": 0
},
"pre_remediation_power_action": "POWER_OFF_VMS"
},
"commit": "string",
"hosts": [
"string"
]
}
The parameter can be used to override the default remediation policies for the task. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. if unset the default cluster remediation policies are used.
The minimum commit identifier of the desired configuration to be used during the Configuration.apply operation. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. if unset or empty the apply operation will use the latest commit to fetch the desired configuration. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.esx.settings.commit. When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.esx.settings.commit.
The specific hosts within the cluster to be considered during the Configuration.apply operation. Warning: This attribute is available as Technology Preview. These are early access APIs provided to test, automate and provide feedback on the feature. Since this can change based on feedback, VMware does not guarantee backwards compatibility and recommends against using them in production environments. Some Technology Preview APIs might only be applicable to specific environments. if unset or empty the Configuration.apply operation will remediate all hosts within the cluster. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: HostSystem. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: HostSystem.
Authentication
Response
Response BodyResponse Body
An identifier for the task created by this API invocation will be returned. If the non-async version of the operation returns a value, this id can be used with the CIS Get Task operation to fetch that value. The normal description of this operation’s return value will follow if one exists.
Errors
com.vmware.vapi.std.errors.already_in_desired_state : The request cannot be fulfilled due to bad syntax. | com.vmware.vapi.std.errors.invalid_argument : The request cannot be fulfilled due to bad syntax.
com.vmware.vapi.std.errors.not_found : The requested resource could not be found but may be available again in the future.
com.vmware.vapi.std.errors.error : The server encountered an unexpected condition which prevented it from fulfilling the request. | com.vmware.vapi.std.errors.timed_out : The server encountered an unexpected condition which prevented it from fulfilling the request.
com.vmware.vapi.std.errors.service_unavailable : The server is currently unavailable (because it is overloaded or down for maintenance).
‘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: apply_task