Host Datastore System Update Local Swap Datastore
Choose the localSwapDatastore for this host.
Any change to this setting will affect virtual machines that subsequently power on or resume from a suspended state at this host, or that migrate to this host while powered on; virtual machines that are currently powered on at this host will not yet be affected.
Required privileges: Host.Config.Storage
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 HostDatastoreSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"UpdateLocalSwapDatastoreRequestType Object"
No Content
NotSupported: if the datastore argument is set and the localSwapDatastoreSupported capability is not true for the host.
InaccessibleDatastore: if the datastore argument is set and the host cannot access the indicated datastore.
DatastoreNotWritableOnHost: if the datastore argument is set and the host cannot write to the indicated datastore.
"InvalidDatastore Object"
The name of the datastore that is invalid.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostDatastoreSystem/{moId}/UpdateLocalSwapDatastore