You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a server by knife profitbricks server create you may specify option --boot-volume VOLUME_ID to attach an already created volume to the new server.
In fact, his will lead to an error: ERROR: Excon::Error::BadRequest: [{"errorCode"=>"304", "message"=>"Failed to parse request body. [line: 1, column: 108] Can not instantiate value of type [simple type, class com.profitbricks.api.rest.v1.model.pojo.Volume] from String value ('c309e8cb-45ec-4a27-9165-a4678701b5ae'); no single-String constructor/factory method"}]
At a first glance, the sent JSON data seems right. But actually the Cloud API v3 does not expect a simple string value for the boot volume ID in the properties section.
Instead, the API expects a structure like this
When creating a server by
knife profitbricks server create
you may specify option--boot-volume VOLUME_ID
to attach an already created volume to the new server.In fact, his will lead to an error:
ERROR: Excon::Error::BadRequest: [{"errorCode"=>"304", "message"=>"Failed to parse request body. [line: 1, column: 108] Can not instantiate value of type [simple type, class com.profitbricks.api.rest.v1.model.pojo.Volume] from String value ('c309e8cb-45ec-4a27-9165-a4678701b5ae'); no single-String constructor/factory method"}]
How to reproduce
create volume
gives
create server
gives (with debug == true)
At a first glance, the sent JSON data seems right. But actually the Cloud API v3 does not expect a simple string value for the boot volume ID in the properties section.
Instead, the API expects a structure like this
The text was updated successfully, but these errors were encountered: