CLOUDIFY-1660 - Updated to match new rest client.