Delete a LUN map
Removes a LUN map from the system. You use this when you need to disassociate LUNs from host initiators, often as part of storage reconfiguration or cleanup tasks.
HTTP method and endpoint
DELETE /protocols/san/lun-maps/{lun.uuid}/{igroup.uuid}
Introduced in
ONTAP 9.6
Usage notes
Deletes a LUN map.
Related ONTAP commands
-
lun mapping delete
Learn more
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
lun.uuid |
string |
path |
True |
|
igroup.uuid |
string |
path |
True |
Response
Status: 200, Ok
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
5374875 |
The specified LUN does not exist or is not accessible to the caller. |
5374878 |
The specified initiator group does not exist, is not accessible to the caller, or is not in the same SVM as the specified LUN. |
5374922 |
The specified LUN map does not exist. |
| Name | Type | Description |
|---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
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. |