VMware Cloud Director API - PUT-ChangeVAppOwner
PUT /vApp/{id}/owner
- Operation:
- PUT /vApp/{id}/owner
- Description:
- Change the owner of a vApp.
- Since:
- 1.5
- Input parameters
-
the {@link OwnerType} represents the new owner of this VApp
- 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/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/owner
Headers:
Content-Length: 654
Content-Type: application/vnd.vmware.vcloud.owner+xml; charset=ISO-8859-1
x-vcloud-authorization: uJ13vBx80VGzZ0KcClBqxHNDJr3QI0K5KaQ0YKn2YZ0=
Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:Owner
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
type="application/vnd.vmware.vcloud.owner+xml">
<vcloud:Link
href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f"
rel="up"
type="application/vnd.vmware.vcloud.vApp+xml"/>
<vcloud:Link
href="https://vcloud.example.com/api/vApp/vapp-bba47763-0ce1-45b9-8470-ea29ba58c52f/owner"
rel="edit"
type="application/vnd.vmware.vcloud.owner+xml"/>
<vcloud:User
href="https://vcloud.example.com/api/admin/user/51e86769-9e2d-4edc-af4e-5d3606494cbf"
name="system"
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: