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

    Overview: This resource exposes OneFS network subnets.

     Methods: GET

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

Method GET: Get a list of subnets.

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

Query arguments:
    sort=<string> The field that will be used for sorting.
groupnet=<string> If specified, only subnets for this groupnet will be returned.
  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.
  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).

GET response body schema:
{
  "type": "object", 
  "properties": {
    "subnets": {
      "items": {
        "type": "object", 
        "properties": {
          "prefixlen": {
            "minimum": 1, 
            "type": "integer", 
            "description": "Subnet Prefix Length.", 
            "maximum": 128
          }, 
          "mtu": {
            "minimum": 576, 
            "type": "integer", 
            "description": "MTU of the subnet.", 
            "maximum": 9000
          }, 
          "description": {
            "type": "string", 
            "description": "A description of the subnet.", 
            "maxLength": 128
          }, 
          "base_addr": {
            "type": "string", 
            "description": "The base IP address."
          }, 
          "gateway_priority": {
            "minimum": 1, 
            "type": "integer", 
            "description": "Gateway priority.", 
            "maximum": 2147483647
          }, 
          "vlan_enabled": {
            "type": "boolean", 
            "description": "VLAN tagging enabled or disabled."
          }, 
          "dsr_addrs": {
            "items": {
              "type": "string"
            }, 
            "type": "array", 
            "description": "List of Direct Server Return addresses."
          }, 
          "pools": {
            "items": {
              "type": "string"
            }, 
            "type": "array", 
            "description": "Name of the pools in the subnet."
          }, 
          "sc_service_addr": {
            "type": "string", 
            "description": "The address that SmartConnect listens for DNS requests."
          }, 
          "id": {
            "type": "string", 
            "description": "Unique Subnet ID."
          }, 
          "groupnet": {
            "type": "string", 
            "description": "Name of the groupnet this subnet belongs to."
          }, 
          "addr_family": {
            "enum": [
              "ipv4", 
              "ipv6"
            ], 
            "type": "string", 
            "description": "IP address format."
          }, 
          "gateway": {
            "type": "string", 
            "description": "Gateway IP address."
          }, 
          "vlan_id": {
            "minimum": 2, 
            "type": "integer", 
            "description": "VLAN ID for all interfaces in the subnet.", 
            "maximum": 4094
          }, 
          "name": {
            "type": "string", 
            "description": "The name of the subnet.", 
            "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)."
    }
  }
}
