ArcGIS Server Admin API - Register Web Adaptor Does Not Work

Discussion created by shaun_weston-eagle-co-nz-esridist on Feb 3, 2014
I've noticed that the register web adaptor through the REST API doesn't seem to be working e.g. Go to this url - http://server:port/arcgis/admin/system/webadaptors/register to register the web adaptor, fill in these settings:

url - http://servername/arcgis
servername - servername
machine IP -
HTTP port - 80
Admin enabled - true

Click submit and it registers, but when I go to http://servername/arcgis/rest/services it shows "no server nodes", but when I register through the web adaptor ui it works fine (http://servername/arcgis/webadaptor). Also noticed that the fields required in the REST API are different to what is documented here -