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 delete snapshot command deletes a project, filesystem, or LUN snapshot from the system.
Delete a single snapshot with the given snapshot - DELETE /snapshots/{snapshot_id}
Delete a project snapshot with the given pool name, project name, and snapshot name - DELETE /pools/{pool}/projects/{project}/snapshots/{snapshot_name}
Delete a filesystem snapshot with the given pool name, project name, filesystem name, and snapshot name - DELETE /pools/{pool}/projects/{project}/filesystems/{share}/snapshots/{snapshot_name}
Delete a filesystem LUN with the given pool name, project name, filesystem name, and snapshot name - DELETE /pools/{pool}/projects/{project}/luns/{lun}/snapshots/{snapshot_name}
Example Request:
PUT /pools/gold/projects/default/filesystems/fs-01/ snapshots/initial-backup HTTP/1.1
Successful delete returns HTTP Status 204 (not Content).
HTTP/1.1 204 No-Content