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-collectionsGET https://<NSX-Manager-IP/FQDN>/api/v1/fabric/compute-collections
"compute_collection_id": "####-####-####-####-####:domain-####" , Cluster name: <Cluster Name>compute_collection_id from above API output.
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/<precheck-id>
GET https://<NSX-Manager-IP>/api/v1/nvds-urt/topology/<precheck-ID>
Out Put Reference:
{
"topology": [
{
"nvds_id": "<NVDS ID>",
"nvds_name": "<NVDS Name>",
"compute_manager_topology": [
{
"compute_manager_id": "########-####-####-####-############",
"dvswitch": [
{
"data_center_id": "<DataCenter-ID>",
"cluster_id": "########-####-####-####-############:domain-c#######",
"vds_name": "CVDS-######-####-###-datacenter-#####-#########",
"vmknic": [],
"transport_node_id": [
"<TN 1-UUID>",
"<TN 2-UUID>",
"<TN 3-UUID>"
],
"id": "#####-####-####-####-###########",
"_protection": "NOT_PROTECTED"
}
]
}
],
"id": "#####-####-####-####-##########",
"_protection": "NOT_PROTECTED"
}
]
}
POST https://<NSX-Manager-IP/FQDN>/api/v1/nvds-urt/topology?action=apply
GET https://<NSX-Manager-IP/FQDN>/api/v1/nvds-urt/status-summary/<precheck-ID>
Out Put Reference:
{
"precheck_id": "<Precheck-ID>",
"precheck_status": "READY",
"migration_state": [
{
"host": "<TN 1-UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP address>",
"_protection": "NOT_PROTECTED"
},
{
"host": "<TN 2-UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP address>",
"_protection": "NOT_PROTECTED"
},
{
"host": "<TN 3-UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP address>",
"_protection": "NOT_PROTECTED"
}
]
}
Post https://<NSX -Manager-IP/FQDN>/api/v1/transport-nodes/<TN ID>?action=migrate_to_vds
https://<NSX-Manager-IP>/api/v1/nvds-urt/status-summary/Precheck-ID
Output: (UPGRADE_IN_PROGRESS)
-----------------------------------------
{
"precheck_id": "<Precheck-ID>",
"precheck_status": "READY",
"migration_state": [
{
"host": "<TN 1 -UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP>",
"_protection": "NOT_PROTECTED"
},
{
"host": "<TN 2 -UUID>",
"overall_state": "UPGRADE_IN_PROGRESS",
"ip_address": "<TN IP>",
"upgrade_stage": "TN_RECONFIG_HOST",
"_protection": "NOT_PROTECTED"
},
{
"host": "<TN 3 -UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP>",
"_protection": "NOT_PROTECTED"
}
]
}
Same API call Output 2 upon completion: (SUCCESS)
-----------------------------------------
{
"precheck_id": "<Precheck-ID>",
"precheck_status": "READY",
"migration_state": [
{
"host": "<TN 1 -UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP>",
"_protection": "NOT_PROTECTED"
},
{
"host": "<TN 2 -UUID>",
"overall_state": "SUCCESS",
"ip_address": "<TN IP>",
"upgrade_stage": "TN_MIGRATION_COMPLETED",
"_protection": "NOT_PROTECTED"
},
{
"host": "<TN 3 -UUID>",
"overall_state": "UPGRADE_READY",
"ip_address": "<TN IP>",
"_protection": "NOT_PROTECTED"
}
]
}