![ghanshyam](/assets/img/avatar_default.png)
Nova V2.1 API has strong input validation by making validation through JSON schema. This patch makes create server schema 'additionalProperties' to False as all create server extensions are implemented in V2.1. After this, V2.1 will not allow extra arg for create server. This patch also fix the API sample files which were passing extra arg in create request body. Partially implements blueprint v2-on-v3-api Change-Id: Ib2a4272cbacb3011b800776577233545af3d9d4b
14 lines
405 B
JSON
14 lines
405 B
JSON
{
|
|
"server": {
|
|
"name": "new-server-test",
|
|
"imageRef": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"flavorRef": "http://openstack.example.com/openstack/flavors/1",
|
|
"metadata": {
|
|
"My Server Name": "Apache1"
|
|
},
|
|
"return_reservation_id": "True",
|
|
"min_count": "2",
|
|
"max_count": "3"
|
|
}
|
|
}
|