Update Networking
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Enable or Disable ipv6 on all interfaces
Request
URLURL
https://{api_host}/rest/appliance/networking
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
NetworkingUpdateRequestBody of type application/json (required){
"spec": {
"ipv6_enabled": false
}
}
cURL Command
curl -X PATCH -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"spec":{"ipv6_enabled":false}}' https://{api_host}/rest/appliance/networking