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

Retrieve QoS workloads

Contributors

GET /storage/qos/workloads

Introduced In: 9.10

Retrieves a collection of QoS workloads.

Parameters

Name Type In Required Description

volume

string

query

False

Filter by volume

lun

string

query

False

Filter by lun

file

string

query

False

Filter by file

uuid

string

query

False

Filter by uuid

name

string

query

False

Filter by name

workload_class

string

query

False

Filter by workload_class

policy.uuid

string

query

False

Filter by policy.uuid

policy.name

string

query

False

Filter by policy.name

wid

integer

query

False

Filter by wid

svm.uuid

string

query

False

Filter by svm.uuid

svm.name

string

query

False

Filter by svm.name

qtree

string

query

False

Filter by qtree

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 records

records

array[qos_workload]

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"
  },
  "num_records": 1,
  "records": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "file": "string",
    "lun": "string",
    "name": "volume1-wid123",
    "policy": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "name": "performance",
      "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
    },
    "qtree": "string",
    "svm": {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "name": "svm1",
      "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
    },
    "uuid": "1cd8a442-86d1-11e0-ae1c-123478563412",
    "volume": "volume1",
    "wid": 123,
    "workload_class": "autovolume"
  }
}

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

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

policy

QoS policy group reference.

Name Type Description

_links

_links

name

string

The QoS policy group name. This is mutually exclusive with UUID and other QoS attributes during POST and PATCH.

uuid

string

The QoS policy group UUID. This is mutually exclusive with name and other QoS attributes during POST and PATCH.

svm

Name Type Description

_links

_links

name

string

The name of the SVM.

uuid

string

The unique identifier of the SVM.

qos_workload

Name Type Description

_links

_links

file

string

Name of the file.

lun

string

Name of the LUN. The name of the LUN will be displayed as "(unknown)" if the name cannot be retrieved.

name

string

Name of the QoS workload.

policy

policy

QoS policy group reference.

qtree

string

Name of the Qtree.

svm

svm

uuid

string

volume

string

Name of the volume. The name of the volume will be displayed as "(unknown)" if the name cannot be retrieved.

wid

integer

Workload ID of the QoS workload.

workload_class

string

Class of the QoS workload.