# Get all Mainframe Dataset rulesets Endpoint: GET /mainframe-dataset-rulesets Version: 5.1.41 Security: api_key ## Query parameters: - `environment_id` (integer) The ID of the environment to get all Mainframe Dataset rulesets from - `page_number` (integer) The page number for which to get Mainframe Dataset rulesets. This will default to the first page if excluded - `page_size` (integer) The maximum number of objects to return. This will default to the DefaultApiPageSize setting if not provided ## Response default fields (application/json): - `_pageInfo` (object) - `_pageInfo.numberOnPage` (integer) The number of items on this page. This should always match the page size unless it is the last page. - `_pageInfo.total` (integer) The total number of items - `responseList` (array) Example: [{"rulesetName":"Rule123","mainframeDatasetConnectorId":1}] - `responseList.mainframeDatasetRulesetId` (integer) The ID of the Mainframe Dataset ruleset. This field is set by the Masking Engine. - `responseList.rulesetName` (string, required) The name of the ruleset. This must be unique within an environment. Example: "Rule123" - `responseList.mainframeDatasetConnectorId` (integer, required) The ID of the Mainframe Dataset Connector that this ruleset corresponds to. Note that the ruleset will be created on the same environment as its connector. Example: 1