Resource URL: /platform/<<version=3>>/network/rules

    Overview: This resource exposes OneFS network rules.

     Methods: GET

********************************************************************************

Method GET: Get a list of network rules.

       URL: GET /platform/<<version=3>>/network/rules

Query arguments:
    sort=<string> The field that will be used for sorting.
  subnet=<string> Name of the subnet to list rules from.
  resume=<string> Continue returning results from previous call using this
                  token (token should come from the previous call, resume
                  cannot be used with other options).
  limit=<integer> Return no more than this many results at once (see resume).
       dir=<enum> Where <enum> is one of ASC, DESC.  The direction of the sort.
groupnet=<string> Name of the groupnet to list rules from.
    pool=<string> Name of the pool to list rules from.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "rules": {
      "items": {
        "type": "object", 
        "properties": {
          "subnet": {
            "required": true, 
            "type": "string", 
            "description": "Name of the subnet this rule belongs to."
          }, 
          "iface": {
            "required": true, 
            "type": "string", 
            "description": "Interface name the provisioning rule applies to."
          }, 
          "description": {
            "required": true, 
            "type": "string", 
            "description": "Description for the provisioning rule.", 
            "maxLength": 128
          }, 
          "node_type": {
            "enum": [
              "any", 
              "storage", 
              "accelerator", 
              "storage-i", 
              "accelerator-i", 
              "backup-accelerator"
            ], 
            "type": "string", 
            "description": "Node type the provisioning rule applies to.", 
            "required": true
          }, 
          "groupnet": {
            "required": true, 
            "type": "string", 
            "description": "Name of the groupnet this rule belongs to"
          }, 
          "id": {
            "required": true, 
            "type": "string", 
            "description": "Unique rule ID."
          }, 
          "pool": {
            "required": true, 
            "type": "string", 
            "description": "Name of the pool this rule belongs to."
          }, 
          "name": {
            "required": true, 
            "type": "string", 
            "description": "Name of the provisioning rule.", 
            "maxLength": 32
          }
        }
      }, 
      "type": "array"
    }, 
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }, 
    "resume": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
    }
  }
}
