Hi everyone
I use vcenter 7u3
I am going to create a virtual machine with a template through api.
I can see the correct output when I use the following command.
https://{api_host}/api/vcenter/vm-template/library-items/{template_library_item}
But when I want to deploy the vm with the following command, I get an error.
https://{api_host}/api/vcenter/vm-template/library-items/{template_library_item}?action=deploy
I don't know exactly what concepts I should put in BODY
{
"name": "string",
"placement": {
"folder": "string"
}
}
For NAME, I put a desired name, and for FOLDER, I created a folder in the VM AND TEMPLATE section, but I still have the following error in the output.
{
"error_type": "INVALID_REQUEST",
"messages": [
{
"args": [],
"default_message": "Unsupported media type.",
"id": "com.vmware.vapi.rest.unsupportedMediaType"
}
]
}
What points should be paid attention to for these options?
What is the correct string for name & palcement?
what am i doing wrong
thanks