Management Plane API > Security > Service Configuration

List service configs

List of all service configs.

Request:

Method:
GET
URI Path(s):
/api/v1/service-configs
Request Headers:
n/a
Query Parameters:
ServiceConfigListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/service-configs

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ServiceConfigListResult+

Example Response:

{ "sort_ascending": true, "sort_by": "display_name", "result_count": 2, "results": [ { "_revision": 1, "id": "183e372b-854c-4fcc-a24e-05721ce89a60", "display_name":"testServiceConfig1", "resource_type": "ServiceConfig", "profiles":[{"profile_type":"FirewallSessionTimerProfile", "target_id":"183e372b-854c-4fcc-a24e-05721ce89a45", "is_valid":true }], “precedence”: 10, “applied_to”: [{"target_id":"333e372b-854c-4fcc-a24e-05721ce89b71", "target_type": "NSGroup", "is_valid":true }] "_create_user": "system", "_last_modified_user": "system", "_last_modified_time": 1414057732203, "_create_time": 1414057732203 }, { "_revision": 1, "id": "333e372b-854c-4fcc-a24e-05721ce89b71", "display_name":"testServiceConfig2", "resource_type": "ServiceConfig", "profiles":[{"profile_type":"DFWCPUProfile", target_id":"183e372b-854c-4fcc-a24e-05721ce89a45", "is_valid":true }], “precedence”: 10, “applied_to”: [{"target_id":"333e372b-854c-4fcc-a24e-05721ce89b71", "target_type": "NSGroup", "is_valid":false } ] "_create_user": "system", "_last_modified_user": "system", "_last_modified_time": 1430382085537, "_create_time": 1430382085537 } ] }

Required Permissions:

read

Feature:

service_config

Additional Errors: