HTTP 400 error "Invalid Operation"

Symptom

A REST request returns response code 400 and the response body contains the following text string:

Invalid operation

Cause

The method used for this REST request is not supported for the specified resource. For example, the Invalid operation response is returned if you attempt a DELETE request on the system resource.

Action
Use a method supported by the resource.

The ArubaOS-CX REST API Reference displays the methods supported by each resource.