Host Datastore System Resolve Nfs Server Host Name
Resolves hostname of the NFS server.
For NFSv3, if volume name is given, then only the IP address of this volume is updated. Otherwise, IP addresses of all the volumes mounted with the hostname are updated. For NFSv4, irrespective of volume name, IP addresses of all the volumes which are mounted with this hostname are updated.
Since: vSphere API Release 9.1.0.0
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 9.1.0.0 APIs.
Show optional properties
{
"hostName": "string"
}
{
"hostName": "string",
"volumeName": "string",
"force": false,
"isNFS41": false
}
Host name of the NFS server.
Volume name of the NFS file system.
Flag for forced resolution of the host name of the NFS server, even if the volumes are not in APD state. If unset, force flag will be treated as false.
Indicates whether host name is resolved for NFSv41 file system. If unset, host name is resolved for NFSv3 file system.
No Content
PlatformConfigFault: if remote host name resolution fails for the NFS server.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
],
"text": "string"
}
Platform specific text string describing this error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"hostName":"string"}' https://{api_host}/sdk/vim25/{release}/HostDatastoreSystem/{moId}/ResolveNfsServerHostName