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, theInvalid operationresponse is returned if you attempt a DELETE request on thesystemresource.

行动

Use a method supported by the resource.

TheAOS-CXREST API Reference displays the methods supported by each resource.