Resource URL: /platform/<<version=3>>/hardware/tapes

    Overview: This resource applies to list tape/changer devices

     Methods: GET

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

Method GET: Get list Tape and Changer devices

       URL: GET /platform/<<version=3>>/hardware/tapes

Query arguments:
      node=<string> List only devices on the specified node.
    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).
   devname=<string> List only the named device.
    limit=<integer> Return no more than this many results at once (see resume).
activepath=<string> List devices with only active paths.
      type=<string> Restrict to list on tape or mc device.

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"
        }
      }
    }, 
    {
      "type": "object", 
      "description": "Get list Tape and Changer devices", 
      "properties": {
        "total": {
          "type": "integer", 
          "description": "The number of devices"
        }, 
        "devices": {
          "media_changers": {
            "type": "array", 
            "properties": {
              "paths": {
                "type": "array", 
                "description": "Accessible paths of the device", 
                "properties": {
                  "portid": {
                    "type": "string", 
                    "description": "Port ID on the path"
                  }, 
                  "devname": {
                    "type": "string", 
                    "description": "Device driver file name"
                  }, 
                  "passname": {
                    "type": "string", 
                    "description": "Pass through device driver file name"
                  }, 
                  "state": {
                    "enum": [
                      "active", 
                      "inactive"
                    ], 
                    "type": "string", 
                    "description": "path state"
                  }, 
                  "opencount": {
                    "type": "integer", 
                    "description": "Number of open"
                  }, 
                  "wwpn": {
                    "type": "string", 
                    "description": "World wide port name"
                  }, 
                  "path": {
                    "type": "string", 
                    "description": "Path of the device"
                  }, 
                  "LUN": {
                    "type": "integer", 
                    "description": "Logic unit number of the device on the path"
                  }
                }
              }, 
              "product": {
                "type": "string", 
                "description": "Product information string including vendor, model, and revision"
              }, 
              "opencount": {
                "type": "integer", 
                "description": "Number of open"
              }, 
              "name": {
                "type": "string", 
                "description": "Name of the device"
              }, 
              "wwnn": {
                "type": "string", 
                "description": "World wide node name of the port"
              }, 
              "state": {
                "enum": [
                  "read/write", 
                  "write only", 
                  "read only", 
                  "raw", 
                  "closed"
                ], 
                "type": "string", 
                "description": "Device state"
              }, 
              "serial": {
                "type": "string", 
                "description": "Serial number of the device"
              }, 
              "id": {
                "type": "string", 
                "description": "The unique display id."
              }
            }
          }, 
          "tapes": {
            "type": "array", 
            "properties": {
              "paths": {
                "type": "array", 
                "description": "Accessible paths of the device", 
                "properties": {
                  "portid": {
                    "type": "string", 
                    "description": "Port ID on the path"
                  }, 
                  "devname": {
                    "type": "string", 
                    "description": "Device driver file name"
                  }, 
                  "passname": {
                    "type": "string", 
                    "description": "Pass through device driver file name"
                  }, 
                  "state": {
                    "enum": [
                      "active", 
                      "inactive"
                    ], 
                    "type": "string", 
                    "description": "path state"
                  }, 
                  "opencount": {
                    "type": "integer", 
                    "description": "Number of open"
                  }, 
                  "wwpn": {
                    "type": "string", 
                    "description": "World wide port name"
                  }, 
                  "path": {
                    "type": "string", 
                    "description": "Path of the device"
                  }, 
                  "LUN": {
                    "type": "integer", 
                    "description": "Logic unit number of the device on the path"
                  }
                }
              }, 
              "product": {
                "type": "string", 
                "description": "Product information string including vendor, model, and revision"
              }, 
              "opencount": {
                "type": "integer", 
                "description": "Number of open"
              }, 
              "name": {
                "type": "string", 
                "description": "Name of the device"
              }, 
              "wwnn": {
                "type": "string", 
                "description": "World wide node name of the port"
              }, 
              "state": {
                "enum": [
                  "read/write", 
                  "write only", 
                  "read only", 
                  "raw", 
                  "closed"
                ], 
                "type": "string", 
                "description": "Device state"
              }, 
              "serial": {
                "type": "string", 
                "description": "Serial number of the device"
              }, 
              "id": {
                "type": "string", 
                "description": "The unique display id."
              }
            }
          }
        }, 
        "resume": {
          "type": "string", 
          "description": "Resume string returned by previous query."
        }
      }
    }
  ]
}
