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

Retrieves the list of litigations under an svm

learn more

  • [doc /storage/snaplock/litigations](#docs-snaplock-storage_snaplock_litigations)

GET /storage/snaplock/litigations

Retrieves the list of litigations under an SVM.

  • snaplock legal-hold show

Parameters

Name Type In Required Description

fields

array[string]

query

False

Specify the fields to return.

max_records

integer

query

False

Limit the number of records returned.

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.

return_records

boolean

query

False

The default is true for GET calls. When set to false, only the number of records is returned.

order_by

array[string]

query

False

Order results by specified fields and optional [asc

Response

Status: 200, Ok
Name Type Description

_links

_links

num_records

integer

Number of Records

records

array[snaplock_litigation]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "records": [
    {
      "_links": {
        "self": {
          "href": "/api/resourcelink"
        }
      },
      "id": "string",
      "name": "lit1",
      "operation": [
        {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "id": 16842759,
          "num_files_failed": 0,
          "num_files_processed": 30,
          "num_files_skipped": 10,
          "num_inodes_ignored": 10,
          "path": "/dir1",
          "state": "completed",
          "type": "begin"
        }
      ],
      "svm": {
        "_links": {
          "self": {
            "href": "/api/resourcelink"
          }
        },
        "name": "svm1",
        "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
      },
      "volume": {
        "_links": {
          "self": {
            "href": "/api/resourcelink"
          }
        },
        "name": "volume1",
        "uuid": "028baa66-41bd-11e9-81d5-00a0986138f7"
      }
    }
  ]
}

Error

Status: Default

ONTAP Error Response codes

Error code Description

14090346

Internal Error. Wait a few minutes, then try the command again

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

Name Type Description

self

href

Name Type Description

_links

_links

id

integer

Operation ID.

num_files_failed

string

Specifies the number of files on which legal-hold operation failed.

num_files_processed

string

Specifies the number of files on which legal-hold operation was successful.

num_files_skipped

string

Specifies the number of files on which legal-hold begin operation was skipped. The legal-hold begin operation is skipped on a file if it is already under hold for a given litigation.

num_inodes_ignored

string

Specifies the number of inodes on which the legal-hold operation was not attempted because they were not regular files.

path

string

Specifies the path on which legal-hold operation is applied.

state

string

Specifies the status of legal-hold operation.

type

string

Specifies the type of legal-hold operation.

svm

Name Type Description

_links

_links

name

string

The name of the SVM.

uuid

string

The unique identifier of the SVM.

volume

Name Type Description

_links

_links

name

string

The name of the volume.

uuid

string

Unique identifier for the volume. This corresponds to the instance-uuid that is exposed in the CLI and ONTAPI. It does not change due to a volume move.

  • example: 028baa66-41bd-11e9-81d5-00a0986138f7

snaplock_litigation

Name Type Description

_links

_links

id

string

Specifies the litigation ID.

name

string

Specifies the legal-hold litigation name.

operation

array[snaplock_legal_hold_operation]

svm

svm

volume

volume

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.

Close
Try it out

Sign in with your NetApp Cloud Central credentials.

Try this API

Parameters

Headers

Body

Code

Response