Resource URL: /platform/<<version=1>>/protocols/hdfs/racks

    Overview: This resource applies the collection of HDFS racks.

     Methods: GET, POST

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

Method GET: List all racks.

       URL: GET /platform/<<version=1>>/protocols/hdfs/racks

Query arguments:

GET response body schema:
{
  "type": "object", 
  "properties": {
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }, 
    "racks": {
      "items": {
        "type": "object", 
        "description": "This is schema that contains HDFS rack properties.", 
        "properties": {
          "ip_pools": {
            "items": {
              "type": "string"
            }, 
            "type": "array", 
            "description": "Array of IP pool names to use for serving clients from client_ip_ranges."
          }, 
          "client_ip_ranges": {
            "items": {
              "type": "string"
            }, 
            "type": "array", 
            "description": "Array of IP ranges. Clients from one of these IP ranges are served by corresponding nodes from ip_pools array."
          }, 
          "id": {
            "type": "string", 
            "description": "The ID of the rack."
          }, 
          "name": {
            "type": "string", 
            "description": "Name of the rack"
          }
        }
      }, 
      "type": "array"
    }, 
    "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)."
    }
  }
}

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

Method POST: Create a new HDFS rack.

        URL: POST /platform/<<version=1>>/protocols/hdfs/racks

There are no query arguments for this method.

Required POST request body fields:
name

POST request body schema:
{
  "type": "object", 
  "description": "This is schema that contains HDFS rack properties.", 
  "properties": {
    "ip_pools": {
      "items": {
        "type": "string"
      }, 
      "type": "array", 
      "description": "Array of IP pool names to use for serving clients from client_ip_ranges."
    }, 
    "client_ip_ranges": {
      "items": {
        "type": "string"
      }, 
      "type": "array", 
      "description": "Array of IP ranges. Clients from one of these IP ranges are served by corresponding nodes from ip_pools array."
    }, 
    "name": {
      "required": true, 
      "type": "string", 
      "description": "Name of the rack"
    }
  }
}

POST response body schema:
{
  "type": "object", 
  "properties": {
    "id": {
      "required": true, 
      "type": "string", 
      "description": "ID of created item that can be used to refer to item in the collection-item resource path."
    }
  }
}
