VMware Cloud Director API - PUT-Memory-vApp
PUT /vApp/{id}/virtualHardwareSection/memory
- Operation:
- PUT /vApp/{id}/virtualHardwareSection/memory
- Description:
- Update the RASD item that specifies memory properties of a VM.
- Since:
- 0.9
- Input parameters
-
ovf:RASD_Type
- Consume media type(s):
-
application/vnd.vmware.vcloud.rasdItem+xml
application/vnd.vmware.vcloud.rasdItem+json
- Input type:
- RASD_Type
- Output parameters
-
TaskType
This operation is asynchronous and returns a task that you can monitor to track the progress of the request.
- Produce media type(s):
-
application/vnd.vmware.vcloud.task+xml
application/vnd.vmware.vcloud.task+json
- Output type:
- TaskType
- Examples
-
- Request
-
HTTP 1.1
PUT /api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4/virtualHardwareSection/memory
Headers:
Content-Length: 1025
Content-Type: application/vnd.vmware.vcloud.rasdItem+xml; charset=ISO-8859-1
x-vcloud-authorization: uJ13vBx80VGzZ0KcClBqxHNDJr3QI0K5KaQ0YKn2YZ0=
Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:Item
xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
vcloud:href="https://vcloud.example.com/api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4/virtualHardwareSection/memory"
vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>4096 MB of memory</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>4096</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<vcloud:Link
href="https://vcloud.example.com/api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4/virtualHardwareSection/memory"
rel="edit"
type="application/vnd.vmware.vcloud.rasdItem+xml"/>
</vcloud:Item>
- Response
-
HTTP/1.1 202 Accepted
Headers:
Content-Length: 1338
Content-Type: application/vnd.vmware.vcloud.task+xml;version=5.5
Location: https://vcloud.example.com/api/task/3b2decd2-0488-4c86-b3e9-86b4db168aef
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><Task
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
cancelRequested="false"
expiryTime="2013-05-15T13:18:16.881+03:00"
href="https://vcloud.example.com/api/task/3b2decd2-0488-4c86-b3e9-86b4db168aef"
id="urn:vcloud:task:3b2decd2-0488-4c86-b3e9-86b4db168aef"
name="task"
operation="Updating Virtual Machine importedVapp(89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4)"
operationName="vappUpdateVm"
serviceNamespace="com.vmware.vcloud"
startTime="2013-02-14T13:18:16.881+02:00"
status="running"
type="application/vnd.vmware.vcloud.task+xml"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
href="https://vcloud.example.com/api/task/3b2decd2-0488-4c86-b3e9-86b4db168aef/action/cancel"
rel="task:cancel"/>
<Owner
href="https://vcloud.example.com/api/vApp/vm-89c84bd6-c6f2-4e4c-8a7d-c44a3489e2e4"
name="importedVapp"
type="application/vnd.vmware.vcloud.vm+xml"/>
<User
href="https://vcloud.example.com/api/admin/user/1260efee-6915-494c-8afa-84e7e6d8a310"
name="system"
type="application/vnd.vmware.admin.user+xml"/>
<Organization
href="https://vcloud.example.com/api/org/7b832bc5-3d65-45a2-8d35-da28388ab80a"
name="Default"
type="application/vnd.vmware.vcloud.org+xml"/>
<Details/>
</Task>