HTTP 400错误“价值是不可配置的”
Symptom
A PUT or POST request returns response code 400 and the response body contains the following text string:
Value
Cause
The JSON data in the POST or PUT request body contains non-configuration or immutable attributes.
Action
Retry the request with the correct JSON resource model for that PUT or POST method.
To determine the configuration attributes of a resource, you can send a GET request with the
selector=configuration
query parameter to the resource. Using the REST v10.04 API, you can also use the GET method with theselector=writable
parameter to get only the mutable configuration attributes of the resource.You can also use theAOS-CXREST API Reference to verify the JSON model of the PUT or POST method of the resource.
The category an attribute belongs to can depend on whether that instance of the resource is owned by the system or owned by a user. Configuration attributes can become status attributes in resource instances that are owned by the system. Status attributes can not be modified by users.
In addition, some configuration attributes cannot be changed after a resource is created. These immutable attributes cannot be included in a PUT request.