VMware Cloud Community
automationapi
Contributor
Contributor

I want my VM to be on a particular storage profile through vCD REST API client

Hi All,

I want my VM to be on a particular storage profile through vCD REST API client. Please provide me API URL and request body.

Help would be highly appreciated

Thanks,

Reply
0 Kudos
1 Reply
TeKilla79
Enthusiast
Enthusiast

hi i have found a example in the VMware vCloud Director Documentation Center

Request:

PUT https://vcloud.example.com/api/vApp/vm-4 Content-type: application/vnd.vmware.vcloud.vm+xml

...

<?xml version="1.0" encoding="UTF-8"?>

<Vm ...>

...

<StorageProfile type="application/vnd.vmware.vcloud.vdcStorageProfile+xml" name="Gold" href="https://vcloud.example.com/api/vdcStorageProfile/3" />

</Vm>

Response:

202 Accepted Content-Type: application/vnd.vmware.vcloud.task+xml

...

<Task ... operation="Updating Virtual Application Linux FTP server (7)" ...> ... </Task>

Reply
0 Kudos