This issue is resolved in VMware NSX-T Data Center 3.2.x and above, available at Support Documents and Downloads (broadcom.com).
Workaround:
NSX 3.2.x or above
If the Edge cluster was created prior to upgrading NSX-T to 3.2.x, it won't have populated the display_name by default.
An update of the Edge cluster without changing any configuration will result in display_name being populated.
1. Collect the response of the GET API call
GET https://NSX-IP/api/v1/edge-clusters/<edge-cluster-id>
2. Use the GET response as the body for the the PUT API call
PUT https://NSX-IP/api/v1/edge-clusters/<edge-cluster-id>
NSX-T versions prior to 3.2.x
You can update the "display_name" by following the below steps:
1. Execute the below GET API call to get display name of the edge nodes:
GET https://NSX-IP/policy/api/v1/transport-nodes
"resource_type": "TransportNode",
"id": "6######a-###0-1###-af84-00######8fcf",
"display_name": "edge02", -->> This is the display_name needed for step 3
2. Execute the below GET API call to to get the current realized configuration for edge clusters:
GET https://NSX-IP/policy/api/v1/edge-clusters
{
"results": [
{
"deployment_type": "VIRTUAL_MACHINE",
"members": [
{
"member_index": 0,
"transport_node_id": "<node id>",
},
{
"member_index": 1,
"transport_node_id": "<node id>",
}
],
"cluster_profile_bindings": [
{
"resource_type": "EdgeHighAvailabilityProfile",
"profile_id": "<node id>",
}
],
"member_node_type": "EDGE_NODE",
...
"resource_type": "EdgeCluster",
"id": "28b080ae-04cf-####-####-########178", -->> This is the <edge-cluster-id> used for the next PUT API call.
3. Edit the response received on step 2 to add the "display_name" for the edge cluster member that's gathered from step 1, note the "display_name" field is missing and will be added in the PUT API, then run the below PUT API, using the cluster ID for each cluster which needs to be updated:
PUT https://NSX-IP/policy/api/v1/edge-clusters/<edge-cluster-id>
...
"transport_node_id": "5326e8f0-4a90-####-####-########a6e",
"display_name": "edge02" -->> new field added
...
"resource_type": "EdgeCluster",
"id": "28b080ae-04cf-####-####-########178",
"member_index": 0,
...