NSX-T Data Center REST API
Creates/Updates service configs sent in batch request
Creates/Updates new service configs sent in batch request.This API returns ALL the service configs that are created/updated.
Request:
Method:
POST
URI Path(s):
/api/v1/service-configs/batch
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ServiceConfigList+
Example Request:
POST https://<nsx-mgr>/api/v1/service-config/batch { "service_configs": [ { "display_name":"SC-CPU1", "profiles":[{"profile_type":"FirewallSessionTimerProfile", "target_id":"293d7296-5598-4431-9415-b478903b2b34" } ], "precedence": 1600, "applied_to": [{ "target_id":"479113aa-7398-4b7c-9ce1-0a1c5c615b59", "target_type" :"LogicalPort" }] }, { "display_name":"SC-CPU2", "profiles":[{"profile_type":"FirewallSessionTimerProfile", "target_id":"88445c10-18fa-4c9c-aa7a-2a7770e5736a" } ], "precedence": 1700, "applied_to": [{ "target_id":"479113aa-7398-4b7c-9ce1-0a1c5c615b59", "target_type" :"LogicalPort" }] }] }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
ServiceConfigListResult+