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

Revise the positioning of IDS rule

This is used to re-order a rule within a security policy.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/intrusion-service-policies/<policy-id>/rules/<rule-id>?action=revise
Request Headers:
n/a
Query Parameters:
RuleInsertParameters+
Request Body:
IdsRule+

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/domains/default/intrusion-service-policies/sp12/rules/Test-Rule12?action=revise&anchor_path=/infra/domains/default/intrusion-service-policies/sp12/rules/sptestRule&operation=insert_after { "action": "DETECT", "ids_profiles": [ "/infra/settings/firewall/security/intrusion-services/profiles/DefaultIDSProfile" ], "resource_type": "IdsRule", "id": "Test-Rule12", "display_name": "Test-Rule12", "path": "/infra/domains/default/intrusion-service-policies/sp12/rules/Test-Rule12", "relative_path": "Test-Rule12", "parent_path": "/infra/domains/default/intrusion-service-policies/sp12", "unique_id": "2024", "marked_for_delete": false, "overridden": false, "rule_id": 2024, "sequence_number": 50, "sources_excluded": false, "destinations_excluded": false, "source_groups": [ "ANY" ], "destination_groups": [ "ANY" ], "services": [ "ANY" ], "logged": true, "scope": [ "ANY" ], "disabled": true, "direction": "IN", "is_default": false, "_system_owned": false, "_create_user": "admin", "_create_time": 1582711476003, "_last_modified_user": "admin", "_last_modified_time": 1582714267564, "_protection": "NOT_PROTECTED", "_revision": 3 }

Successful Response:

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

Example Response:

{ "action": "DETECT", "ids_profiles": [ "/infra/settings/firewall/security/intrusion-services/profiles/DefaultIDSProfile" ], "resource_type": "IdsRule", "id": "Test-Rule12", "display_name": "Test-Rule12", "path": "/infra/domains/default/intrusion-service-policies/sp12/rules/Test-Rule12", "relative_path": "Test-Rule12", "parent_path": "/infra/domains/default/intrusion-service-policies/sp12", "unique_id": "2024", "marked_for_delete": false, "overridden": false, "rule_id": 2024, "sequence_number": 400, "sources_excluded": false, "destinations_excluded": false, "source_groups": [ "ANY" ], "destination_groups": [ "ANY" ], "services": [ "ANY" ], "logged": true, "scope": [ "ANY" ], "disabled": true, "direction": "IN", "is_default": false, "_system_owned": false, "_create_user": "admin", "_create_time": 1582711476003, "_last_modified_user": "admin", "_last_modified_time": 1582714321618, "_protection": "NOT_PROTECTED", "_revision": 4 }

Required Permissions:

crud

Feature:

policy_dfw_ids_mps

Additional Errors: