To migrate a named disk to another Organization Virtual Datacenter, this can be done by using the Cloud Director API's moveDisk operation against the named disk in question:
VMware Cloud Director API, User Operations, POST /disk/{id}/action/moveDisk
Example steps to move the named disk to another Organization VDC would be as follows:
https://vcloud.example.com/provider/cloud/organizations/urn:vcloud:org:<org-id>/configure/general
https://vcloud.example.com/tenant/<org-name>/vdcs/<dest-org-vdc-id>/vm
https://vcloud.example.com/tenant/<org-name>/vdcs/<org-vdc-id>/storage-policies/<dest-storage-policy-id>/general
POST https://vcloud.example.com/cloudapi/1.0.0/sessions/provider
Accept:application/json;version=38.1
Authorization:Basic (Encoded username@system / password)
GET https://vcloud.example/api/versions
X-VMWARE-VCLOUD-ACCESS-TOKEN
which is our login Bearer token used for further requests.X-VMWARE-VCLOUD-ACCESS-TOKEN:<vcd-access-token>
GET https://vcloud.example.com/api/query?type=disk&format=records&page=1&pageSize=20&filterEncoded=true&filter=name==<named-disk-name>
Accept:application/*+xml;version=38.1
Authorization:Bearer <vcd-access-token>
X-VMWARE-VCLOUD-TENANT-CONTEXT:<org-id>
https://vcloud.example/api/disk/<named-disk-id>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DiskMoveParams xmlns="http://www.vmware.com/vcloud/v1.5">
<Vdc href="https://vcloud.example.com/api/vdc/<dest-org-vdc-id>
" id="urn:vcloud:vdc:<dest-org-vdc-id>
" type="application/vnd.vmware.vcloud.vdc+xml" name="<dest-org-vdc-name>"/>
<StoragePolicy href="https://vcloud.example.com
/api/admin/vdcStorageProfile/<dest-storage-policy-id>
" type="application/vnd.vmware.vcloud.vdcStorageProfile+xml" name="<dest-storage-policy-name>
"/>
</DiskMoveParams>
POST https://vcloud.example/api/disk/<named-disk-id>/action/moveDisk
Accept:application/*+xml;version=38.1
Content-Type:application/*+xml
Authorization:Bearer <vcd-access-token>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DiskMoveParams xmlns="http://www.vmware.com/vcloud/v1.5">
<Vdc href="https://vcloud.example.com/api/vdc/<dest-org-vdc-id>" id="urn:vcloud:vdc:<dest-org-vdc-id>" type="application/vnd.vmware.vcloud.vdc+xml" name="<dest-org-vdc-name>"/>
<StoragePolicy href="https://vcloud.example.com/api/admin/vdcStorageProfile/<dest-storage-policy-id>" type="application/vnd.vmware.vcloud.vdcStorageProfile+xml" name="<dest-storage-policy-name>"/>
</DiskMoveParams>
For more information on connecting to the Cloud Director API see, How to establish an API connection VMware Cloud Director (56948).