Hi,
I want from PRISM API to modify the subnet and Mac Address of a VM.
Is it possible to do that by PRISM API ?
I tried something like this by this URL [https://PRISM_URL:9440/api/nutanix/v3/vms/c7956715-db3d-48ef-b9df-f2ffcd433a1c]
{
"spec":{
"name":"T0-SRV1"
},
"resources":{
"nic_list":[
{
"uuid":"d7684227-25a9-485b-a064-1789276617c3",
"mac_address":"50:6b:8d:ab:0e:dd",
"subnet_reference":{
"kind":"subnet",
"name":"TEST0-SUB",
"uuid":"c8c4ee2b-a39f-466b-9cc4-2ccce4ebea79"
}
}
]
},
"metadata":{
}
}
But i get this message :
{
"api_version": "3.1",
"code": 422,
"message_list": [
{
"details": {
"": [
"Additional properties are not allowed (u'resources' was unexpected)"
],
"metadata": [
"'kind' is a required property"
],
"spec": [
"'resources' is a required property"
]
},
"message": "Request could not be processed.",
"reason": "INVALID_REQUEST"
}
],
"state": "ERROR"
}
Thanks for your help,
Matt