Skip to main content
A newer release of this product is available.

Retrieve a collection of disks

Contributors

GET /storage/disks

Retrieves a collection of disks.

  • storage disk show

Learn more

Parameters

Name Type In Required Description

bay

integer

query

False

Filter by bay

model

string

query

False

Filter by model

self_encrypting

boolean

query

False

Filter by self_encrypting

home_node.uuid

string

query

False

Filter by home_node.uuid

home_node.name

string

query

False

Filter by home_node.name

key_id.fips

string

query

False

Filter by key_id.fips

key_id.data

string

query

False

Filter by key_id.data

rated_life_used_percent

integer

query

False

Filter by rated_life_used_percent

shelf.uid

string

query

False

Filter by shelf.uid

rpm

integer

query

False

Filter by rpm

state

string

query

False

Filter by state

firmware_version

string

query

False

Filter by firmware_version

vendor

string

query

False

Filter by vendor

name

string

query

False

Filter by name

class

string

query

False

Filter by class

protection_mode

string

query

False

Filter by protection_mode

node.uuid

string

query

False

Filter by node.uuid

node.name

string

query

False

Filter by node.name

uid

string

query

False

Filter by uid

type

string

query

False

Filter by type

serial_number

string

query

False

Filter by serial_number

container_type

string

query

False

Filter by container_type

usable_size

integer

query

False

Filter by usable_size

fips_certified

boolean

query

False

Filter by fips_certified

aggregates.name

string

query

False

Filter by aggregates.name

aggregates.uuid

string

query

False

Filter by aggregates.uuid

pool

string

query

False

Filter by pool

drawer.id

integer

query

False

Filter by drawer.id

drawer.slot

integer

query

False

Filter by drawer.slot

dr_node.uuid

string

query

False

Filter by dr_node.uuid

dr_node.name

string

query

False

Filter by dr_node.name

fields

array[string]

query

False

Specify the fields to return.

max_records

integer

query

False

Limit the number of records returned.

return_records

boolean

query

False

The default is true for GET calls. When set to false, only the number of records is returned.

return_timeout

integer

query

False

The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.

order_by

array[string]

query

False

Order results by specified fields and optional [asc

Response

Status: 200, Ok
Name Type Description

_links

_links

num_records

integer

Number of records

records

array[disk]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "records": {
    "aggregates": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "name": "aggr1",
      "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
    },
    "bay": 1,
    "class": "solid_state",
    "container_type": "spare",
    "dr_node": {
      "name": "node1",
      "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
    },
    "firmware_version": "NA51",
    "home_node": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "name": "node1",
      "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
    },
    "model": "X421_HCOBE450A10",
    "name": "1.0.1",
    "node": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "name": "node1",
      "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
    },
    "pool": "pool0",
    "protection_mode": "open",
    "rated_life_used_percent": 10,
    "rpm": 15000,
    "serial_number": "KHG2VX8R",
    "shelf": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "uid": 7777841915827391056
    },
    "state": "present",
    "type": "ssd",
    "uid": "002538E5:71B00B2F:00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000",
    "usable_size": 959934889984,
    "vendor": "NETAPP"
  }
}

Error

Status: Default, Error
Name Type Description

error

error

Example error
{
  "error": {
    "arguments": {
      "code": "string",
      "message": "string"
    },
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  }
}

Definitions

See Definitions

href

Name Type Description

href

string

Name Type Description

next

href

self

href

Name Type Description

self

href

aggregates

Aggregate

Name Type Description

_links

_links

name

string

uuid

string

dr_node

Name Type Description

name

string

uuid

string

drawer

Name Type Description

id

integer

slot

integer

home_node

Name Type Description

_links

_links

name

string

uuid

string

key_id

Name Type Description

data

string

Key ID of the data authentication key

fips

string

Key ID of the FIPS authentication key

node

Name Type Description

_links

_links

name

string

uuid

string

shelf_reference

Shelf

Name Type Description

_links

_links

uid

string

disk

Name Type Description

aggregates

array[aggregates]

List of aggregates sharing this disk

bay

integer

Disk shelf bay

class

string

Disk class

container_type

string

Type of overlying disk container

dr_node

dr_node

drawer

drawer

encryption_operation

string

Encryption operation to apply to the drives. Possible values are:

  • rekey_data_default

  • rekey_data_auto_id

fips_certified

boolean

firmware_version

string

home_node

home_node

key_id

key_id

model

string

name

string

Cluster-wide disk name

node

node

pool

string

Pool to which disk is assigned

protection_mode

string

Mode of drive data protection and FIPS compliance. Possible values are:

  • open - Disk is unprotected

  • data - Data protection only without FIPS compliance

  • part - Partial protection with FIPS compliance only

  • full - Full data and FIPS compliance protection

rated_life_used_percent

integer

Percentage of rated life used

rpm

integer

Revolutions per minute

self_encrypting

boolean

serial_number

string

shelf

shelf_reference

Shelf

state

string

State

type

string

Disk interface type

uid

string

The unique identifier for a disk

usable_size

integer

vendor

string

error_arguments

Name Type Description

code

string

Argument code

message

string

Message argument

error

Name Type Description

arguments

array[error_arguments]

Message arguments

code

string

Error code

message

string

Error message

target

string

The target parameter that caused the error.