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": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "rules": {
          "minItems": 0, 
          "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", 
          "maxItems": 4294967295
        }, 
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "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)."
        }
      }
    }
  ]
}
