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

Retrieve a LUN attribute

Contributors

GET /storage/luns/{lun.uuid}/attributes/{name}

Introduced In: 9.10

Retrieves a LUN attribute.

Parameters

Name Type In Required Description

fields

array[string]

query

False

Specify the fields to return.

Response

Status: 200, Ok
Name Type Description

_links

_links

lun

lun

The LUN for which the attribute is set.

name

string

The attribute name. Required in POST.

value

string

The attribute value. Required in POST; valid in PATCH.

Example response
{
  "_links": {
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "lun": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "uuid": "4ea7a442-86d1-11e0-ae1c-123478563412"
  },
  "name": "name1",
  "value": "value1"
}

Error

Status: Default

ONTAP Error Response Codes

Error Code Description

5374875

The specified LUN was not found.

5374931

The specified attribute was not found.

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

self

href

lun

The LUN for which the attribute is set.

Name Type Description

_links

_links

uuid

string

The unique identifier of the LUN.

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.