Ignorer les liens de navigation | |
Quitter la vue de l'impression | |
![]() |
Guide RESTful API des systèmes Oracle® ZFS Storage Appliance, version 2013.1.3.0 |
Prise en main de l'API Oracle ZFS Storage Appliance RESTful
Service des problèmes de l'API RESTful
Service des rôles de l'API RESTful
Service de stockage de l'API RESTful
Service utilisateur de l'API RESTful
Charge un workflow sur l'appareil.
Exemple de demande :
POST /api/workflow/v1/workflows HTTP/1.1 Authorization: Basic abcefgMWE= Host: zfssa.example.com:215 Accept: application/json Content-Type: application/javascript Content-Length: 290 var workflow = { name: 'Echo', description: 'Echo bird repeats a song.', parameters: { song: { label: 'Words of a song to sing', type: 'String', } }, execute: function (params) { return (params.song) } };
Exemple de résultat :
HTTP/1.1 201 Created X-Zfssa-Appliance-Api: 1.0 Content-Type: application/json Content-Length: 268 X-Zfssa-Version: jkremer/generic@2013.09.14,1-0 Location: /api/workflow/v1/workflows/f4fe892f-cf46-4d6a-9026-cd0c0cce9971 { "workflow": { "href": "/api/workflow/v1/workflows/f4fe892f-cf46-4d6a-9026-cd0c0cce9971", "name": "Echo", "description": "Echo bird repeats a song.", "uuid": "f4fe892f-cf46-4d6a-9026-cd0c0cce9971", "owner": "root", "origin": "<local>", "setid": false, "alert": false, "version": "", "scheduled": false } }