NSX-T Data Center REST API
Create service config
Creates a new service config that can group profiles and configsRequest:
Method:
POST
URI Path(s):
/api/v1/service-configs
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceConfig+
Example Request:
POST https://<nsx-mgr>/api/v1/service-config { "display_name":"testServiceConfig", "profiles":[{"profile_type":"FirewallSessionTimerProfile", "target_id":"183e372b-854c-4fcc-a24e-05721ce89a60" } ], "precedence": 10, "applied_to": [{ "target_id":"333e372b-854c-4fcc-a24e-05721ce89b71", "target_type" : "NSGroup" }] }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ServiceConfig+