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 modify project command changes the attributes of an existing project.
|
Request Parameters - Project Properties – Any of the project properties can be set as the new project’s initial values.
Example Request to Change a Projects Name from "proj-01" to "new-name":
POST /api/storage/v1/pools/gold/projects/proj-01 HTTP/1.1 Host: zfs-storage.example.com Content-Type: application/json Accept: application/json { “name”: “new-name”, “sharenfs”: “rw”, “compression”: “gzip-9” }
Successful response returns HTTP Status 202 (Accepted) and lists all project properties.
Example Response:
HTTP/1.1 201 Created Content-Type: application/json Location: /api/storage/v1/pools/gold/projects/new-name { “project”: { “name”: “new-name”, “sharenfs”: “rw”, “compression: “gzip-9”, ... } }