5 Replies Latest reply on May 22, 2019 9:40 AM by daphnissov

    NSX-T 2.4 API https://nsxtmgr/api/v1/transport-zones?included_fields=transport_type is not returning response with the fields given in the included_fields but returning all the fields

    rajala Lurker

      Hi

       

      The response returned by nsx-t mgr for API request "https://nsxtmgr/api/v1/transport-zones?included_fields=transport_type " is below, but the expected response is the result with only the transport_type field. I'm doing anything wrong in the API request. Any help regarding this would be of great help.

       

      {

          "results": [

              {

                  "transport_type": "VLAN",

                  "host_switch_name": "T0UplinkTZ",

                  "host_switch_id": "79892d16-3d8e-4870-9053-f102b6437ced",

                  "transport_zone_profile_ids": [

                      {

                          "resource_type": "BfdHealthMonitoringProfile",

                          "profile_id": "52035bb3-ab02-4a08-9884-18631312e50a"

                      }

                  ],

                  "host_switch_mode": "STANDARD",

                  "nested_nsx": false,

                  "is_default": false,

                  "resource_type": "TransportZone",

                  "id": "480be7ab-143b-477a-9622-07b76da235dc",

                  "display_name": "T0UplinkTZ",

                  "_create_user": "admin",

                  "_create_time": 1558149399089,

                  "_last_modified_user": "admin",

                  "_last_modified_time": 1558149399089,

                  "_system_owned": false,

                  "_protection": "NOT_PROTECTED",

                  "_revision": 0,

                  "_schema": "/v1/schema/TransportZone"

              },

              {

                  "transport_type": "VLAN",

                  "host_switch_name": "buildservers",

                  "host_switch_id": "df3a3520-de9f-4d6c-b32c-3860b7eae525",

                  "transport_zone_profile_ids": [

                      {

                          "resource_type": "BfdHealthMonitoringProfile",

                          "profile_id": "52035bb3-ab02-4a08-9884-18631312e50a"

                      }

                  ],

                  "host_switch_mode": "STANDARD",

                  "nested_nsx": false,

                  "is_default": false,

                  "resource_type": "TransportZone",

                  "id": "88457d0c-02b8-46b4-8435-aec52fc490de",

                  "display_name": "VLANTZ",

                  "_create_user": "admin",

                  "_create_time": 1557533712561,

                  "_last_modified_user": "admin",

                  "_last_modified_time": 1557533712561,

                  "_system_owned": false,

                  "_protection": "NOT_PROTECTED",

                  "_revision": 0,

                  "_schema": "/v1/schema/TransportZone"

              },

              {

                  "transport_type": "OVERLAY",

                  "host_switch_name": "buildservers",

                  "host_switch_id": "df3a3520-de9f-4d6c-b32c-3860b7eae525",

                  "transport_zone_profile_ids": [

                      {

                          "resource_type": "BfdHealthMonitoringProfile",

                          "profile_id": "52035bb3-ab02-4a08-9884-18631312e50a"

                      }

                  ],

                  "host_switch_mode": "STANDARD",

                  "nested_nsx": false,

                  "is_default": false,

                  "resource_type": "TransportZone",

                  "id": "d9cec7ce-7f4e-448a-b445-f3b3244e9822",

                  "display_name": "buildservers",

                  "_create_user": "admin",

                  "_create_time": 1557361221147,

                  "_last_modified_user": "admin",

                  "_last_modified_time": 1557361221147,

                  "_system_owned": false,

                  "_protection": "NOT_PROTECTED",

                  "_revision": 0,

                  "_schema": "/v1/schema/TransportZone"

              }

          ],

          "result_count": 3,

          "sort_by": "display_name",

          "sort_ascending": true

      }

       

      Thanks

      Mahi