Management Plane API > Security > Service Configuration

Create service config

Creates a new service config that can group profiles and configs

Request:

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+

Example Response:

{ "id": "183e372b-854c-4fcc-a24e-05721ce89a60", "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" }] "_create_user": "system", "_last_modified_user": "system", "_last_modified_time": 1414057732203, "_create_time": 1414057732203 }

Required Permissions:

crud

Feature:

service_config

Additional Errors: