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

    Overview: This resource applies the pattern of collections to HDFS
              proxyusers.

     Methods: GET, POST

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

Method GET: List all proxyusers.

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

Query arguments:

GET response body schema:
{
  "type": "object", 
  "properties": {
    "proxyusers": {
      "items": {
        "type": "object", 
        "description": "This is hdfs impersonation information of a proxyuser", 
        "properties": {
          "id": {
            "required": true, 
            "type": "string", 
            "description": "The ID of the role."
          }, 
          "members": {
            "items": {
              "type": "object", 
              "description": "Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'.", 
              "properties": {
                "type": {
                  "enum": [
                    "user", 
                    "group", 
                    "wellknown"
                  ], 
                  "type": "string", 
                  "description": "Specifies the type of persona, which must be combined with a name."
                }, 
                "id": {
                  "type": "string", 
                  "description": "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'."
                }, 
                "name": {
                  "type": "string", 
                  "description": "Specifies the persona name, which must be combined with a type."
                }
              }
            }, 
            "required": true, 
            "type": "array", 
            "description": "Users or groups impersonated by proxyuser."
          }, 
          "name": {
            "required": true, 
            "type": "string", 
            "description": "The name of the proxyuser."
          }
        }
      }, 
      "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)."
    }
  }
}

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

Method POST: Create a new HDFS proxyuser.

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

There are no query arguments for this method.

Required POST request body fields:
name

POST request body schema:
{
  "type": "object", 
  "description": "This is hdfs impersonation information of a proxyuser", 
  "properties": {
    "id": {
      "type": "string", 
      "description": "The ID of the role."
    }, 
    "members": {
      "items": {
        "type": "object", 
        "description": "Specifies properties for a persona, which consists of either a 'type' and a 'name' or an 'ID'.", 
        "properties": {
          "type": {
            "enum": [
              "user", 
              "group", 
              "wellknown"
            ], 
            "type": "string", 
            "description": "Specifies the type of persona, which must be combined with a name."
          }, 
          "id": {
            "type": "string", 
            "description": "Specifies the serialized form of a persona, which can be 'UID:0', 'USER:name', 'GID:0', 'GROUP:wheel', or 'SID:S-1-1'."
          }, 
          "name": {
            "type": "string", 
            "description": "Specifies the persona name, which must be combined with a type."
          }
        }
      }, 
      "type": "array", 
      "description": "Users or groups impersonated by proxyuser."
    }, 
    "name": {
      "required": true, 
      "type": "string", 
      "description": "The name of the proxyuser."
    }
  }
}

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."
    }
  }
}
