Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Chapter 2 Working with the API
Chapter 3 Alert Service Commands
Chapter 8 Problem Service Commands
The create snapshot command creates snapshots for projects, filesystems, or LUNs.
Create Project Snapshot – POST /pools/{pool}/projects/{project}/snapshots
Create Filesystem Snapshot – POST /pools/{pool}/projects/{project}/filesystems/{share}/snapshots
Create Volume Snapshot – POST /pools/{pool}/projects/{project}/luns/{lun}/snapshots
Example Request:
POST /api/storage/v1/pools/gold/projects/default/snapshots Content-Type: application/json {"name": "initial-backup"}
Example Response:
HTTP/1.1 201 Created Content-Type: application/json Location: /pools/gold/projects/default/ snapshot/initial-backup { "snapshot": { "name": "initial-backup", "numclones": 0, "creation": "20130610T21:00:49", "collection": "local", "project": "default", "canonical_name": "gold/local/default@initial-backup", "usage": { "unique": 0.0, "loading": false, "data": 145408.0 }, "type": "snapshot", "id": "a26abd24-e22b-62b2-0000-000000000000", "pool": "gold" } }