These API calls will allow the user to individually migrate clusters from NVDS to VDS by cluster instead of the entire environment at once.
VMware NSX-T Data Center
VMware NSX
GET https://<nsx-manager-ip>/policy/api/v1/infra/sites/<site-id>/enforcement-points/<enforcementpoint-id>/transport-node-collections
Record the output so you can select which clusters you want to migrate. Note compute collection ID.
"compute_collection_id": "####-####-####-####-####:domain-####"
compute_collection_id
from above API.POST https://<nsx-manager-ip>/api/v1/nvds-urt/precheck-by-cluster/<cluster_id>
GET https://<nsx-manager-ip>/api/v1/nvds-urt/status-summary-by-cluster/<precheck-id>
GET https://<nsx-manager-ip>/api/v1/nvds-urt/status
POST https://<nsx-manager-ip>/api/v1/nvds-urt/topology?action=apply
{
"topology": [
{
"nvds_id": "c8ff4053-####-####-8a38-4413c2a2d52f",
"nvds_name": "nsxvswitch",
"compute_manager_topology": [
{
"compute_manager_id": "fa1421d9-####-####-9e18-7d0ff0d2f771",
"dvswitch": [
{
"data_center_id": "datacenter-#",
"vds_name": "test-##",
"transport_node_id": [
"65592db5-####-####-8502-1ab548c63c6d",
"e57234ee-####-####-b6dd-7dbc5f6e6527",
"70f55855-####-####-bd40-d8b60ae45b82"
]
}
]
}
]
}
]
}
POST https://<nsx-manager-ip>/api/v1/transport-nodes/<tn-id>?action=migrate_to_vds
GET https://<nsx-manager-ip>/api/v1/nvds-urt/status-summary/<precheck-id>
{
"precheck_id": "c306e279-####-####-919c-6c40030fb3d0",
"precheck_status": "READY",
"migration_state": [
{
"host": "65592db5-####-####-8502-1ab548c63c6d",
"overall_state": "UPGRADE_READY"
},
{
"host": "e57234ee-####-####-b6dd-7dbc5f6e6527",
"overall_state": "UPGRADE_READY"
},
{
"host": "70f55855-####-####-bd40-d8b60ae45b82",
"overall_state": "SUCCESS"
}
]
}