Management Plane API > Networking > Logical Switching > Logical Switch Ports

Create a Switching Profile

Creates a new, custom qos, port-mirroring, spoof-guard or port-security
switching profile. You can override their default switching profile assignments
by creating a new switching profile and assigning it to one or more logical
switches. You cannot override the default ipfix or ip_discovery switching profiles.

Request:

Method:
POST
URI Path(s):
/api/v1/switching-profiles
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IpDiscoverySwitchingProfile+
MacManagementSwitchingProfile+
PortMirroringSwitchingProfile+
QosSwitchingProfile+
SpoofGuardSwitchingProfile+
SwitchSecuritySwitchingProfile+

Example Request:

POST https://<nsx-mgr>/api/v1/switching-profiles { "resource_type": "SpoofGuardSwitchingProfile", "display_name": "spoof-guard-lswitch-bindings", "white_list_providers": ["LSWITCH_BINDINGS"] }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
IpDiscoverySwitchingProfile+
MacManagementSwitchingProfile+
PortMirroringSwitchingProfile+
QosSwitchingProfile+
SpoofGuardSwitchingProfile+
SwitchSecuritySwitchingProfile+

Example Response:

{ "resource_type": "SpoofGuardSwitchingProfile", "id": "11a97fd4-b668-4f1c-932d-b3bd087550ea", "display_name": "spoof-guard-lswitch-bindings", "white_list_providers": [ "LSWITCH_BINDINGS" ], "_last_modified_user": "admin", "_last_modified_time": 1435288074327, "_create_time": 1435288074327, "_create_user": "admin", "_revision": 0 }

Required Permissions:

crud

Feature:

switching_switching_profiles

Additional Errors: