Enable Rules

Enable Rules for Zone.

URL: /rest-api/rules/zone/{zoneId}/enable.do

Method: GET

Response format: application/json

Error codes:

  • 401 Unauthorized – authentication error.
  • 403 – permission violation.
  • 404 – no Zone with such ID.

Response sample:
200 OK

Parameters:

  • hash – an MD5 digest of a concatenated username's MD5 password and a given timestamp.
  • timestamp – UNIX timestamp in milliseconds used for hash generation.
  • username – a given username.
  • zoneId – Zone identifier.

Disable Rules

Disable Rules for Zone.

URL: /rest-api/rules/zone/{zoneId}/disable.do

Method: GET

Response format: application/json

Error codes:

  • 401 Unauthorized – authentication error.
  • 403 – permission violation.
  • 404 – no Zone with such ID.

Response sample:
200 OK

Parameters:

  • hash – an MD5 digest of a concatenated username's MD5 password and a given timestamp.
  • timestamp – UNIX timestamp in milliseconds used for hash generation.
  • username – a given username.
  • zoneId – Zone identifier.

Add Rule group

Add new Rule group for Zone.

URL: /rest-api/rules/zone/{zoneId}/add.do

Method: GET

Response format: application/json

Error codes:

  • 400 Bad Request – empty ruleIds parameter.
  • 401 Unauthorized – authentication error.
  • 403 – permission violation.
  • 404 – no Zone with such ID.

Response sample:
200 OK

Parameters:

  • hash – an MD5 digest of a concatenated username's MD5 password and a given timestamp.
  • timestamp – UNIX timestamp in milliseconds used for hash generation.
  • username – a given username.
  • zoneId – Zone identifier.
  • ruleIds – array of Rule identifier.
  • include – true if Rule should be included; false if Rule should be excluded.
  • operator – AND/OR operator

Delete Rule group

Remove Rule group for Zone.

URL: /rest-api/rules/zone/{zoneId}/remove.do

Method: GET

Response format: application/json

Error codes:

  • 400 Bad Request – empty ruleIds parameter.
  • 401 Unauthorized – authentication error.
  • 403 – permission violation.
  • 404 – no Zone with such ID.

Response sample:
200 OK

Parameters:

  • hash – an MD5 digest of a concatenated username's MD5 password and a given timestamp.
  • timestamp – UNIX timestamp in milliseconds used for hash generation.
  • username – a given username.
  • zoneId – Zone identifier.
  • ruleGroupId – identifier of Rule group.

Get all Rule groups

Return all Rule groups for Zone.

URL: /rest-api/rules/zone/{zoneId}/get.do

Method: GET

Response format: application/json

Error codes:

  • 401 Unauthorized – authentication error.
  • 403 – permission violation.
  • 404 – no Zone with such ID.

Response sample:
200 OK

Parameters:

  • hash – an MD5 digest of a concatenated username's MD5 password and a given timestamp.
  • timestamp – UNIX timestamp in milliseconds used for hash generation.
  • username – a given username.
  • zoneId – Zone identifier.

Need more help?

Should you require any additional help with our solutions, do not hesitate to contact Epom technical support at support@epom.com. Our support managers are dedicated to resolving any issues and providing you with solutions and support if you face difficulties or have questions.