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
Clones the package project.
Example Request:
PUT /api/v1/storage/replication/sources/zfssa-repl/packages/ 8373d331-de60-e590-90e8-9ad69fcb4aec/clone HTTP/1.1 Host: zfs-storage.example.com Authorization: Basic ab6rt4psMWE=
Example Response:
HTTP/1.1 202 Accepted X-Zfssa-Replication-Api: 1.0
Successful clone returns HTTP Status 202 (Accepted). A helper command can be used to determine if there are conflicts with the clone operation.
Example Clone Conflicts Request:
GET /api/storage/v1/replication/sources/zfssa-repl/packages/ 8373d331-de60-e590-90e8-9ad69fcb4aec/clone/conflicts HTTP/1.1 Host: zfs-storage.example.com Authorization: Basic ab6rt4psMWE=
Clone/conflicts Returns Conflicts:
HTTP/1.1 200 OK X-Zfssa-Replication-Api: 1.0 Content-Type: application/json Content-Length: 58 { "conflicts": "There are no conflicts.\n" }
Properties:
Default settings: target_project = (unset) original_mountpoint = /export override_mountpoint = false mountpoint =