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

Retrieve storage pools for the entire cluster

Contributors

GET /storage/pools

Introduced In: 9.11

Retrieves the collection of storage pools for the entire cluster.

  • storage pool show

Parameters

Name Type In Required Description

capacity.used_allocation_units.count

integer

query

False

Filter by capacity.used_allocation_units.count

capacity.used_allocation_units.aggregate.uuid

string

query

False

Filter by capacity.used_allocation_units.aggregate.uuid

capacity.used_allocation_units.aggregate.name

string

query

False

Filter by capacity.used_allocation_units.aggregate.name

capacity.used_allocation_units.current_usage

integer

query

False

Filter by capacity.used_allocation_units.current_usage

capacity.used_allocation_units.node.uuid

string

query

False

Filter by capacity.used_allocation_units.node.uuid

capacity.used_allocation_units.node.name

string

query

False

Filter by capacity.used_allocation_units.node.name

capacity.total

integer

query

False

Filter by capacity.total

capacity.remaining

integer

query

False

Filter by capacity.remaining

capacity.disks.disk.name

string

query

False

Filter by capacity.disks.disk.name

capacity.disks.total_size

integer

query

False

Filter by capacity.disks.total_size

capacity.disks.usable_size

integer

query

False

Filter by capacity.disks.usable_size

capacity.spare_allocation_units.size

integer

query

False

Filter by capacity.spare_allocation_units.size

capacity.spare_allocation_units.syncmirror_pool

string

query

False

Filter by capacity.spare_allocation_units.syncmirror_pool

capacity.spare_allocation_units.node.uuid

string

query

False

Filter by capacity.spare_allocation_units.node.uuid

capacity.spare_allocation_units.node.name

string

query

False

Filter by capacity.spare_allocation_units.node.name

capacity.spare_allocation_units.count

integer

query

False

Filter by capacity.spare_allocation_units.count

capacity.spare_allocation_units.available_size

integer

query

False

Filter by capacity.spare_allocation_units.available_size

capacity.disk_count

integer

query

False

Filter by capacity.disk_count

nodes.uuid

string

query

False

Filter by nodes.uuid

nodes.name

string

query

False

Filter by nodes.name

storage_type

string

query

False

Filter by storage_type

name

string

query

False

Filter by name

uuid

string

query

False

Filter by uuid

health.unhealthy_reason.arguments.message

string

query

False

Filter by health.unhealthy_reason.arguments.message

health.unhealthy_reason.arguments.code

string

query

False

Filter by health.unhealthy_reason.arguments.code

health.unhealthy_reason.target

string

query

False

Filter by health.unhealthy_reason.target

health.unhealthy_reason.code

string

query

False

Filter by health.unhealthy_reason.code

health.unhealthy_reason.message

string

query

False

Filter by health.unhealthy_reason.message

health.state

string

query

False

Filter by health.state

health.is_healthy

boolean

query

False

Filter by health.is_healthy

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.

  • Default value: 1

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.

  • Default value: 1

  • Max value: 120

  • Min value: 0

order_by

array[string]

query

False

Order results by specified fields and optional [asc

Response

Status: 200, Ok
Name Type Description

_links

_links

error

error

num_records

integer

Number of shared storage pools in the cluster.

records

array[storage_pool]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "error": {
    "arguments": {
      "code": "string",
      "message": "string"
    },
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  },
  "records": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "capacity": {
      "disks": {
        "disk": {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "name": "1.0.1"
        },
        "total_size": 0,
        "usable_size": 0
      },
      "remaining": 0,
      "spare_allocation_units": {
        "available_size": 0,
        "node": {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "name": "node1",
          "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
        },
        "size": 0,
        "syncmirror_pool": "pool0"
      },
      "total": 0,
      "used_allocation_units": {
        "aggregate": {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "name": "aggr1",
          "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
        },
        "current_usage": 0,
        "node": {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "name": "node1",
          "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
        }
      }
    },
    "health": {
      "state": "normal",
      "unhealthy_reason": {
        "arguments": {
          "code": "string",
          "message": "string"
        },
        "code": "4",
        "message": "entry doesn't exist",
        "target": "uuid"
      }
    },
    "nodes": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "name": "node1",
      "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
    },
    "storage_type": "SSD",
    "uuid": "string"
  }
}

Error

Status: Default

ONTAP Error Response Codes

Error Code Description

11206662

There is no storage pool matching the specified UUID or name.

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

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.

Name Type Description

self

href

disk

Reference to the constituent disk object.

Name Type Description

_links

_links

name

string

storage_pool_disk

Name Type Description

disk

disk

Reference to the constituent disk object.

total_size

integer

Raw capacity of the disk, in bytes.

usable_size

integer

Usable capacity of this disk, in bytes.

node

Specifies what node can use this set of allocation units.

Name Type Description

_links

_links

name

string

uuid

string

storage_pool_spare_allocation_unit

Name Type Description

available_size

integer

The usable capacity of this set of allocation units.

count

integer

The number of spare allocation units on this node.

node

node

Specifies what node can use this set of allocation units.

size

integer

Size of each allocation unit.

syncmirror_pool

string

The RAID SyncMirror Pool to which this allocation unit is assigned.

aggregate

The aggregate that is using this cache capacity.

Name Type Description

_links

_links

name

string

uuid

string

node

The node hosting the aggregate using this set of allocation units.

Name Type Description

_links

_links

name

string

uuid

string

storage_pool_used_allocation_unit

Name Type Description

aggregate

aggregate

The aggregate that is using this cache capacity.

count

integer

The number of allocation units used by this aggregate.

current_usage

integer

The amount of cache space used by this aggregate.

node

node

The node hosting the aggregate using this set of allocation units.

capacity

Name Type Description

disk_count

integer

The number of disks in the storage pool.

disks

array[storage_pool_disk]

Properties of each disk used in the shared storage pool.

remaining

integer

Remaining usable capacity in the flash pool, in bytes.

spare_allocation_units

array[storage_pool_spare_allocation_unit]

Properties of spare allocation units.

total

integer

Total size of the flash pool, in bytes.

used_allocation_units

array[storage_pool_used_allocation_unit]

Information about the storage pool allocation units participating in the cache tier of an aggregate.

error

Indicates why the storage pool is unhealthy. This property is not returned for healthy storage pools.

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.

health

Properties that outline shared storage pool health.

Name Type Description

is_healthy

boolean

Indicates whether the storage pool is able to participate in provisioning operations.

state

string

The state of the shared storage pool.

unhealthy_reason

error

Indicates why the storage pool is unhealthy. This property is not returned for healthy storage pools.

node_reference

Name Type Description

_links

_links

name

string

uuid

string

storage_pool

Name Type Description

_links

_links

capacity

capacity

health

health

Properties that outline shared storage pool health.

name

string

Storage pool name.

nodes

array[node_reference]

Nodes that can use this storage pool for their aggregates.

storage_type

string

Storage type for the disks used to create the storage pool.

uuid

string

Storage pool UUID.