Skip Navigation Links | |
Exit Print View | |
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
A PUT request can be used to set properties on a selected hardware component. A successful request returns HTTP status 201 Accepted as well as the component properties in JSON format.
Example Request:
PUT /api/hardware/v1/chassis/chassis-001/disk/disk-011 HTTP/1.1 Host: zfssa.example.com:215 X-Auth-User: root X-Auth-Key: letmein Accept: application/json Content-Type: application/json Content-Length: 16 {"locate": true}
Example JSON Response:
HTTP/1.1 202 Accepted X-Zfssa-Appliance-Api: 1.0 Content-Length: 403 Content-Type: application/json { "disk": { "href": "/api/hardware/v1/chassis/chassis-001/disk/disk-011", ..., "locate": true } }