Host Specification Manager Retrieve Host Specification
Retrieve the host specification.
When the parameter fromHost
is true
, the host specification is retrieved from the host;
otherwise, it is from the host specification "database" for this manager.
When retrieved from host, the copy in host specification "database" will
be updated. On success, it will fire a
HostSpecificationChangedEvent
.
Required privileges: System.View
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 HostSpecificationManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"RetrieveHostSpecificationRequestType Object"
Whether retrieve from the host.
The host specification of the specified host.
"HostSpecification Object"
Time at which the host specification was created.
Time at which the host specification was last modified.
If it isn't set,
it is the same as createdTime
.
The collection of the host sub specifications.
It is optional.
The change ID for querying the host specification data updated in a time period.
It has a format of timestamp:change_number, where timestamp is the decimal string of a start time, and change_number is the decimal string of an auto incremented variable counting from the start time.
HostSpecificationOperationFailed: If the method fails when retrieve from host.
"HostSpecificationOperationFailed Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostSpecificationManager/{moId}/RetrieveHostSpecification