Policy > Security > East West Security > Distributed IDS > Rules

create or update IDS security policy

Update intrusion detection system security policy for a domain. This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/intrusion-service-policies/<policy-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IdsSecurityPolicy+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/domains/default/intrusion-service-policies/policy-test { "resource_type": "IdsSecurityPolicy", "description": "test-ids-security-policy", "display_name": "test-ids-security-policy", "sequence_number": 200, "rules":[ { "action": "DETECT", "ids_profiles": ["/infra/settings/firewall/security/intrusion-services/profiles/DefaultIDSProfile"], "disabled": true, "display_name": "Test-Rule", "logged": true, "direction": "OUT", "sequence_number": 100, "source_groups": ["/infra/domains/default/groups/Empty_Group"], "destination_groups": ["/infra/domains/default/groups/Empty_Group"], "scope": ["/infra/domains/default/groups/Empty_Group"] } ] }

Successful Response:

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

Example Response:

{ "rules": [ { "action": "DETECT", "ids_profiles": [ "/infra/settings/firewall/security/intrusion-services/profiles/DefaultIDSProfile" ], "resource_type": "IdsRule", "id": "Test-Rule", "display_name": "Test-Rule", "path": "/infra/domains/default/intrusion-service-policies/policy-test/rules/Test-Rule", "relative_path": "Test-Rule", "parent_path": "/infra/domains/default/intrusion-service-policies/policy-test", "unique_id": "dcf45f6c-b24c-4059-8f47-6cf3129b72d4", "marked_for_delete": false, "sequence_number": 100, "sources_excluded": false, "destinations_excluded": false, "source_groups": [ "/infra/domains/default/groups/Empty_Group" ], "destination_groups": [ "/infra/domains/default/groups/Empty_Group" ], "logged": true, "scope": [ "/infra/domains/default/groups/Empty_Group" ], "disabled": true, "direction": "IN", "_create_user": "admin", "_create_time": 1563266441847, "_last_modified_user": "admin", "_last_modified_time": 1563266441854, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 4 } ], "resource_type": "IdsSecurityPolicy", "id": "policy-test", "display_name": "test-ids-security-policy", "description": "test-ids-security-policy", "path": "/infra/domains/default/intrusion-service-policies/policy-test", "relative_path": "policy-test", "parent_path": "/infra/domains/default", "unique_id": "b0ee4d46-26c3-4e3d-96b0-bc40213bc82d", "marked_for_delete": false, "sequence_number": 100, "locked": false, "_create_user": "admin", "_create_time": 1563266441856, "_last_modified_user": "admin", "_last_modified_time": 1563266441856, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_dfw_ids_mps

Additional Errors: