VMware Cloud Director API - PUT-ChangeDiskOwner
PUT /disk/{id}/owner
- Operation:
- PUT /disk/{id}/owner
- Description:
- Change the owner of a disk.
- Since:
- 5.1
- Input parameters
-
the disk owner of {@link OwnerType}
- Consume media type(s):
-
application/vnd.vmware.vcloud.owner+xml
application/vnd.vmware.vcloud.owner+json
- Input type:
- OwnerType
- Output parameters
-
- Produce media type(s):
- None
- Output type:
- None
- Examples
-
- Request
-
HTTP 1.1
PUT /api/disk/e8b2b752-21ca-4cb9-80f6-a55ef1a81eec/owner
Headers:
Content-Length: 284
Content-Type: application/vnd.vmware.vcloud.owner+xml; charset=ISO-8859-1
x-vcloud-authorization: eVBkZn2wahPAU+IvbURo7ekslpuoHERMB2DZEFlJuHs=
Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:Owner
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
<vcloud:User
href="https://vcloud.example.com/api/admin/user/b81e5f7f-e5a0-4bb8-b0ab-9fdd12409269"
name="orgadmin"
type="application/vnd.vmware.admin.user+xml"/>
</vcloud:Owner>
- Response
-
HTTP/1.1 204 No Content
Headers:
Content-Type: application/*+xml;version=5.5
Vary: Accept-Encoding
Body: