I am trying to create an lxc container via curl on proxmox 4.2 but am getting error 400, I am setting the required vmid' vm id & 'ostemplate' but i am getting 'property is missing' .... errors . what am I doing wrong?
curl -k -b "PVEAuthCookie=PVE:root@pam:57318DC2::mPRd4bxDmUwTSGO6yBAS9r7OGVHAbbF5auHKuvcUryyNvCc1a9y3WBT4j8ndpL7kv2FqWiNKH7dNqCNN/QE/SMMHQPSVFX/3V3SBH7UZXou1KpLnbyb2qdh8nhE2osqPjkBn0VJy8FV0Kjf1x2FPhHJiQvCuRsT04mhwz5QHs4id1TUmY+IRL4JT1gzk3GYRLWD4QgaYcusvFa3uGqLM0dOZBV+mV+AclXkk/ICifCuef/j62FxkllNVhNVUTG45f18wehh+e6Yq22RQLz3RQKr33E+fPb+M7AQqfV4tKftJT1GmZ/xhw==" -XPOST -H "CSRFPreventionToken: 57318DC2:et0OAM/BBZzWrC3+EYG2rz3vPM4" -H "Accept: application/json" -d "{'json':{'vmid':'199','ostemplate':'proxnfs:vztmpl/ubuntu-16.04-standard_16.04-1_amd64.tar.gz','node':'proxa3'}}" -vvv https://proxa3.mydomain.org:8006/api2/json/nodes/proxa3/lxc
> POST /api2/json/nodes/proxa3/lxc HTTP/1.1
> User-Agent: curl/7.35.0
> Host: proxa3.mydomain.org:8006
> Cookie: PVEAuthCookie=PVE:root@pam:57318DC2::mPRd4bxDmUwTSGO6yBAS9r7OGVHAbbF5auHKuvcUryyNvCc1a9y6fc8L0/kcyQ8gPwfxR+5N0nc0IcyeQ+jH3WBT4j8ndpL7kv2FqWiNKH7dNqCNN/QE/SMMHQPSVFX/3V3SBH7UZXou1KpLnbyb2qdh8nhE2osqPjkBn0VJy8FV0Kjf1x2FPhHJiQvCuRsT04mhwz5QHs4id1TUmY+IRL4JT1gzk3GYRLWD4QgaYcusvFa3uGqLM0dOZBV+mV+AclXkk/ICifCuef/j62FxkllNVhNVUTG45f18wehh+e6Yq22RQLz3RQKr33E+fPb+M7AQqfV4tKftJT1GmZ/xhw==
> CSRFPreventionToken: 57318DC2:et0OAM/BBZzWrC3+EYG2rz3vPM4
> Accept: application/json
> Content-Length: 112
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 112 out of 112 bytes
< HTTP/1.1 400 Parameter verification failed.
< Cache-Control: max-age=0
< Connection: close
< Date: Tue, 10 May 2016 08:09:31 GMT
< Pragma: no-cache
* Server pve-api-daemon/3.0 is not blacklisted
< Server: pve-api-daemon/3.0
< Content-Length: 337
< Content-Type: application/json;charset=UTF-8
< Expires: Tue, 10 May 2016 08:09:31 GMT
<
* Closing connection 0
* SSLv3, TLS alert, Client hello (1):
{"errors":{"vmid":"property is missing and it is not optional","{'json':{'vmid':'199','ostemplate':'proxnfs:vztmpl/ubuntu-16.04-standard_16.04-1_amd64.tar.gz','node':'proxa3'}}":"property is not defined in schema and the schema does not allow additional properties","ostemplate":"property is missing and it is not optional"},"data":null}
curl -k -b "PVEAuthCookie=PVE:root@pam:57318DC2::mPRd4bxDmUwTSGO6yBAS9r7OGVHAbbF5auHKuvcUryyNvCc1a9y3WBT4j8ndpL7kv2FqWiNKH7dNqCNN/QE/SMMHQPSVFX/3V3SBH7UZXou1KpLnbyb2qdh8nhE2osqPjkBn0VJy8FV0Kjf1x2FPhHJiQvCuRsT04mhwz5QHs4id1TUmY+IRL4JT1gzk3GYRLWD4QgaYcusvFa3uGqLM0dOZBV+mV+AclXkk/ICifCuef/j62FxkllNVhNVUTG45f18wehh+e6Yq22RQLz3RQKr33E+fPb+M7AQqfV4tKftJT1GmZ/xhw==" -XPOST -H "CSRFPreventionToken: 57318DC2:et0OAM/BBZzWrC3+EYG2rz3vPM4" -H "Accept: application/json" -d "{'json':{'vmid':'199','ostemplate':'proxnfs:vztmpl/ubuntu-16.04-standard_16.04-1_amd64.tar.gz','node':'proxa3'}}" -vvv https://proxa3.mydomain.org:8006/api2/json/nodes/proxa3/lxc
> POST /api2/json/nodes/proxa3/lxc HTTP/1.1
> User-Agent: curl/7.35.0
> Host: proxa3.mydomain.org:8006
> Cookie: PVEAuthCookie=PVE:root@pam:57318DC2::mPRd4bxDmUwTSGO6yBAS9r7OGVHAbbF5auHKuvcUryyNvCc1a9y6fc8L0/kcyQ8gPwfxR+5N0nc0IcyeQ+jH3WBT4j8ndpL7kv2FqWiNKH7dNqCNN/QE/SMMHQPSVFX/3V3SBH7UZXou1KpLnbyb2qdh8nhE2osqPjkBn0VJy8FV0Kjf1x2FPhHJiQvCuRsT04mhwz5QHs4id1TUmY+IRL4JT1gzk3GYRLWD4QgaYcusvFa3uGqLM0dOZBV+mV+AclXkk/ICifCuef/j62FxkllNVhNVUTG45f18wehh+e6Yq22RQLz3RQKr33E+fPb+M7AQqfV4tKftJT1GmZ/xhw==
> CSRFPreventionToken: 57318DC2:et0OAM/BBZzWrC3+EYG2rz3vPM4
> Accept: application/json
> Content-Length: 112
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 112 out of 112 bytes
< HTTP/1.1 400 Parameter verification failed.
< Cache-Control: max-age=0
< Connection: close
< Date: Tue, 10 May 2016 08:09:31 GMT
< Pragma: no-cache
* Server pve-api-daemon/3.0 is not blacklisted
< Server: pve-api-daemon/3.0
< Content-Length: 337
< Content-Type: application/json;charset=UTF-8
< Expires: Tue, 10 May 2016 08:09:31 GMT
<
* Closing connection 0
* SSLv3, TLS alert, Client hello (1):
{"errors":{"vmid":"property is missing and it is not optional","{'json':{'vmid':'199','ostemplate':'proxnfs:vztmpl/ubuntu-16.04-standard_16.04-1_amd64.tar.gz','node':'proxa3'}}":"property is not defined in schema and the schema does not allow additional properties","ostemplate":"property is missing and it is not optional"},"data":null}