Resource URL: /platform/<<version=3>>/protocols/swift/accounts

    Overview: A standard collection for Swift Accounts.

     Methods: GET, POST

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

Method GET: List all swift accounts.

       URL: GET /platform/<<version=3>>/protocols/swift/accounts

Query arguments:
zone=<string> Access zone which contains Swift accounts.

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": {
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "accounts": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "This is an account for the Swift protocol.", 
            "properties": {
              "swiftuser": {
                "type": "string", 
                "description": "User with filesystem ownership of this account"
              }, 
              "users": {
                "items": {
                  "type": "string"
                }, 
                "type": "array", 
                "description": "Users who are allowed to access Swift account"
              }, 
              "zone": {
                "type": "string", 
                "description": "Name of access zone for account"
              }, 
              "swiftgroup": {
                "type": "string", 
                "description": "Group with filesystem ownership of this account"
              }, 
              "path": {
                "type": "string", 
                "description": "Path to root of Swift account"
              }, 
              "id": {
                "type": "string", 
                "description": "Unique id of swift account"
              }, 
              "name": {
                "type": "string", 
                "description": "Name of Swift account"
              }
            }
          }, 
          "type": "array", 
          "maxItems": 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)."
        }
      }
    }
  ]
}

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

Method POST: Create a new Swift account

        URL: POST /platform/<<version=3>>/protocols/swift/accounts

Query arguments:
zone=<string> Access zone which contains Swift account.

Required POST request body fields:
name

POST request body schema:
{
  "type": "object", 
  "description": "This is an account for the Swift protocol.", 
  "properties": {
    "swiftuser": {
      "type": "string", 
      "description": "User with filesystem ownership of this account"
    }, 
    "users": {
      "items": {
        "type": "string"
      }, 
      "type": "array", 
      "description": "Users who are allowed to access Swift account"
    }, 
    "zone": {
      "type": "string", 
      "description": "Name of access zone for account"
    }, 
    "swiftgroup": {
      "type": "string", 
      "description": "Group with filesystem ownership of this account"
    }, 
    "id": {
      "type": "string", 
      "description": "Unique id of swift account"
    }, 
    "name": {
      "required": true, 
      "type": "string", 
      "description": "Name of Swift account"
    }
  }
}

POST 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"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "id": {
          "minLength": 0, 
          "required": true, 
          "type": "string", 
          "description": "ID of created item that can be used to refer to item in the collection-item resource path.", 
          "maxLength": 255
        }
      }
    }
  ]
}
