# Deep Security Manager REST API

## Path: / rest / rulesets

Retrieve a list of rulesets.

Resources
Name | Description
--- | ---
{rulesetID} | Gets the contents of one ruleset.

Method Summary
Resource | Description
--- | ---
`POST /rest/rulesets` | Create a new ruleset.
`GET /rest/rulesets?rulesetID=…&rulesetIDOp=…&maxItems=…` | Retrieve a list of rulesets.

Method Detail
Create a new ruleset. Input: `CreateRulesetRequest` - a `CreateRulesetRequest` object describing the ruleset. Output: `CreateRulesetResponse` - a `CreateRulesetResponse` containing the ID of the created ruleset. Cookie parameters: sID - a session ID returned by the Authentication API. Produces: application/json Consumes: application/json
Retrieve a list of rulesets. Output: `ListRulesetsResponse` - a list of rulesets. Query parameters: rulesetID - (optional) used to define the starting point for the query. Combine with `rulesetIDOp` to page through results. rulesetIDOp - (optional, required if `rulesetID` is specified) Currently supported operations include gt(greater than), ge(greater than or equal to), eq(eqaul to), lt(less than), and le(less than or equal to). maxItems - (optional) the number of items to retrieve. The maximum value for this parameter is controlled by the "Maximum number of items to retrieve from database" setting on the administrator account, which defaults to 5000. Cookie parameters: sID - a session ID returned by the Authentication API. Produces: application/json Consumes: application/json

Copyright © 2017 Trend Micro Inc. All Rights Reserved.