Skip to main content
NetApp Knowledge Base

CLI and REST API report different Snapshot size values

Views:
43
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

ONTAP 9

Issue

The size value displayed by the snapshot show command does not match the size or logical_size values shown by the REST API (GET /api/storage/volumes/*/snapshots).

  • CLI:

ontap916::> snapshot show -vserver svm1_ontap916 -volume voltest1 -snapshot hourly.2025-08-13_1305

                                   Vserver: svm1_ontap916
                                    Volume: voltest1
                    cp Count (for sorting): 10671
                                  Snapshot: hourly.2025-08-13_1305
                             Creation Time: Wed Aug 13 13:05:00 2025
                             Snapshot Busy: false
                            List of Owners: -
                             Snapshot Size: 160KB
                Percentage of Total Blocks: 0%
                 Percentage of Used Blocks: 16%
                                   Comment: -
                           7-Mode Snapshot: false
           Label for SnapMirror Operations: -
                            Snapshot State: -
                      Constituent Snapshot: false
                               Expiry Time: -
                      SnapLock Expiry Time: -
         Has the SnapLock Snapshot Expired: -
Seconds until the SnapLock Snapshot Expiry: -

  •  API:

curl -X GET "https://10.128.242.60/api/storage/volumes/aa03b8a6-0b82-11f0-94a6-005056b0330a/snapshots/55a83a9f-bed1-4b46-aa83-70fbb47aefb9" -H  "accept: application/json" -H  "authorization: Basic YWRtaW46UEBzc3cwcmQ="
Request URL
https://10.128.242.60/api/storage/volumes/aa03b8a6-0b82-11f0-94a6-005056b0330a/snapshots/55a83a9f-bed1-4b46-aa83-70fbb47aefb9

{
  "volume": {
    "uuid": "aa03b8a6-0b82-11f0-94a6-005056b0330a",
    "name": "voltest1"
  },
  "uuid": "55a83a9f-bed1-4b46-aa83-70fbb47aefb9",
  "svm": {
    "uuid": "b1096c5d-c77b-11ef-b722-005056b0330a",
    "name": "svm1_ontap916"
  },
  "name": "hourly.2025-08-13_1305",
  "create_time": "2025-08-13T13:05:00+09:00",
  "size": 634880,
  "version_uuid": "55a83a9f-bed1-4b46-aa83-70fbb47aefb9",
  "provenance_volume": {
    "uuid": "aa03b8a6-0b82-11f0-94a6-005056b0330a"
  },
  "logical_size": 1078611968,
  "compress_savings": 0,
  "dedup_savings": 0,
  "vbn0_savings": 0

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.