Cancel the ongoing legal-hold operation
Cancels an ongoing legal-hold operation to stop the process before it completes. This is useful when you need to halt the operation without rolling back changes, helping you manage legal holds effectively.
HTTP method and endpoint
DELETE /storage/snaplock/litigations/{litigation.id}/operations/{id}
Introduced in
ONTAP 9.7
Usage notes
Aborts the ongoing legal-hold operation. An abort does not rollback any changes already made. You must re-run begin or end for cleanup.
Related ONTAP commands
-
snaplock legal-hold abort
Example
DELETE "/api/storage/snaplock/litigations/f8a67b60-4461-11e9-b327-0050568ebef5:l1/operations/16908292"
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
litigation.id |
string |
path |
True |
Litigation ID |
id |
string |
path |
True |
Operation ID. |
Response
Status: 200, Ok
Error
Status: Default
ONTAP Error Response codes
| Error code | Description |
|---|---|
14090346 |
Internal Error. Wait a few minutes, then try the command again |
14090541 |
A completed or failed operation cannot be aborted |
| 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. |