NSX-T Data Center REST API
Create NSService
Creates a new NSService which allows users to specify characteristics to usefor matching network traffic.
Request:
Method:
              POST
            URI Path(s):
              
              
                  
                  /api/v1/ns-services
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    NSService+
  Example Request:
POST https://<nsx-mgr>/api/v1/ns-services # Ether type NSService { "display_name":"testNSService", "nsservice_element":{"ether_type": 5463, "resource_type": "EtherTypeNSService"} } # IPProtocol NSService { "display_name":"testNSService", "nsservice_element":{"protocol_number": 3, "resource_type": "IPProtocolNSService"} } # IGMP type NSService { "display_name":"testNSService", "nsservice_element":{"resource_type": "IGMPTypeNSService"} } # ICMP type NSService { "display_name":"testNSService", "nsservice_element":{"protocol": "ICMPv4", "icmp_code": 3, "icmp_type": 0, "resource_type": "ICMPTypeNSService"} } # ALG type NSService { "display_name":"testNSService", "nsservice_element":{"alg": "FTP", "destination_ports": [ "21" ], "resource_type": "ALGTypeNSService"} } # L4PortSet NSService { "display_name":"testNSService", "nsservice_element":{"l4_protocol": "TCP", "source_ports": [ "31-34" ], "destination_ports": [ "81-88", "96" ], "resource_type": "L4PortSetNSService"} }Successful Response:
Response Code:
                201 Created
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    NSService+
  