List

URL:
https://<root>/notebooks/snapshots/list
Methods:
POST
Required Capability:
Access allowed with "Create and edit notebooks" privilege
Version Introduced:
11.4

Description

The list operation allows you to list all snapshots associated with a notebook item. It returns metadata associated with snapshots, such as name, description, and notebook runtime information.

By default, unless the snapshot was created with the privateAccessflag set to false, only the owner of a notebook item is allowed to list the snapshots associated with that notebook item.

Request parameters

ParameterDetails

itemId

(Required)

The item ID of the notebook to list snapshots from.

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the list operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /context/admin/notebooks/snapshots/list HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

itemId=2ff206ba534541428409e327d03588d1&f=pjson&token=<token>

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  "snapshots": [
    {
      "resourceKey": "snapshot-0f146a4ba1964327b396b9be5f1042ed.json",
      "created": "1713916056583",
      "properties": {
        "name": "Snapshot_1",
        "description": "This is Snapshot 1",
        "runtime": {
          "notebookRuntimeName": "ArcGIS Notebook Python 3 Standard",
          "notebookRuntimeVersion": "10.0"
        }
      }
    },
    {
      "resourceKey": "snapshot-4h046a4ba1964327b396b9be5f1046uj.json",
      "created": "1713916056585",
      "properties": {
        "name": "Snapshot_2",
        "description": "This is Snapshot 2",
        "runtime": {
          "notebookRuntimeName": "ArcGIS Notebook Python 3 Standard",
          "notebookRuntimeVersion": "10.0"
        }
      }
    }
  ],
  "total": 2,
  "status": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.