Policy > Security > North South Security > Distributed IDS > Rules

Update IDS gateway policy (Experimental)

Update the IDS gateway policy for a domain.

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/domains/vmc-domain/intrusion-service-gateway-policies/default { "category": "SharedPreRules", "rules": [ { "resource_type": "Rule", "description": "entry1", "id": "entry1", "display_name": "entry1", "path": "/infra/domains/vmc-domain/intrusion-service-gateway-policies/default/rules/entry1", "parent_path": "/infra/domains/vmc-domain/intrusion-service-gateway-policies/default", "relative_path": "entry1", "sequence_number": 0, "source_groups": [ "/infra/tier-1s/vmc/groups/source" ], "logged": false, "destination_groups": [ "/infra/domains/vmc-domain/groups/destination" ], "scope": [ "/infra/tier-1s/vmc" ], "action": "ALLOW", "services": [ "/infra/services/HTTP" ], "_revision": 3 } ], "_revision": 4 }

Successful Response:

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

Example Response:

{ "resource_type": "IdsGatewayPolicy", "id": "default", "display_name": "/infra/domains/vmc-domain/intrusion-service-gateway-policies/default", "path": "/infra/domains/vmc-domain/intrusion-service-gateway-policies/default", "parent_path": "/infra/domains/vmc-domain", "relative_path": "default", "category": "SharedPreRules", "rules": [ { "resource_type": "Rule", "description": "entry1", "id": "entry1", "display_name": "entry1", "path": "/infra/domains/vmc-domain/intrusion-service-gateway-policies/default/rules/entry1", "parent_path": "/infra/domains/vmc-domain/intrusion-service-gateway-policies/default", "relative_path": "entry1", "sequence_number": 0, "source_groups": [ "/infra/tier-1s/vmc/groups/source" ], "logged": false, "destination_groups": [ "/infra/domains/vmc-domain/groups/destination" ], "scope": [ "/infra/tier-1s/vmc" ], "action": "ALLOW", "services": [ "/infra/services/HTTP" ], "_create_user": "admin", "_create_time": 1516386404233, "_last_modified_user": "admin", "_last_modified_time": 1516431370604, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 3 } ], "sequence_number": 0, "internal_sequence_number": 20000, "_create_user": "admin", "_create_time": 1516295469775, "_last_modified_user": "admin", "_last_modified_time": 1516432061797, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 5 }

Required Permissions:

crud

Feature:

policy_gfw_ids_mps

Additional Errors: