System Administration > Configuration > Fabric > Profiles > Hostswitch Profiles

Create a Hostswitch Profile (Deprecated)

Creates a hostswitch profile. The resource_type is required. For uplink
profiles, the teaming and policy parameters are required. By default, the
mtu is 1600 and the transport_vlan is 0. The supported MTU range is 1280
through (uplink_mtu_threshold). (uplink_mtu_threshold) is 9000 by default.
Range can be extended by modifying (uplink_mtu_threshold) in
SwitchingGlobalConfig to the required upper threshold.
Deprecated: This api is now deprecated. Please use new api - PUT policy/api/v1/infra/host-switch-profiles/uplinkProfile1

Request:

Method:
POST
URI Path(s):
/api/v1/host-switch-profiles
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ExtraConfigHostSwitchProfile+
LldpHostSwitchProfile+
NiocProfile+
UplinkHostSwitchProfile+

Example Request:

POST https://<nsx-mgr>/api/v1/host-switch-profiles { "resource_type": "UplinkHostSwitchProfile", "display_name": "uplinkProfile2", "mtu": 1600, "teaming": { "standby_list": [], "active_list": [ { "uplink_name": "uplink3", "uplink_type": "PNIC" } ], "policy": "FAILOVER_ORDER" }, "transport_vlan": 0 }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ExtraConfigHostSwitchProfile+
LldpHostSwitchProfile+
NiocProfile+
UplinkHostSwitchProfile+

Example Response:

{ "resource_type": "UplinkHostSwitchProfile", "id": "fe3e8766-383c-42fc-bfa9-aa7d193c89d9", "display_name": "uplinkProfile2", "mtu": 1600, "teaming": { "standby_list": [], "active_list": [ { "uplink_name": "uplink1", "uplink_type": "PNIC" } ], "policy": "FAILOVER_ORDER" }, "transport_vlan": 0, "_last_modified_user": "admin", "_last_modified_time": 1433452542652, "_create_time": 1433452542652, "_create_user": "admin", "_revision": 0 }

Required Permissions:

crud

Feature:

profiles_host_switch_profiles

Additional Errors: