![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
12 lines
382 B
JSON
12 lines
382 B
JSON
{
|
|
"server" : {
|
|
"accessIPv4": "1.2.3.4",
|
|
"accessIPv6": "fe80::",
|
|
"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"
|
|
}
|
|
}
|
|
} |