JavaScript is required to for searching.
Ignorer les liens de navigation
Quitter l'aperu
API RESTful des systèmes Oracle® ZFS Storage Appliance
Oracle Technology Network
Bibliothque
PDF
Aperu avant impression
Commentaires
search filter icon
search icon

Informations document

Utilisation de cette documentation

Chapitre 1 Présentation

Chapitre 2 Utilisation de l'API

Chapitre 3 Commandes du service d'alerte

Chapitre 4 Services Analytics

Chapitre 5 Services matériels

Cluster

Get Cluster Properties

Get Cluster Resource

Modify Cluster Resource

Commandes de cluster

Cluster Links

Setup Cluster

Châssis

List Chassis

Get Chassis Components

Get Hardware Component

Modify Component Property

Chapitre 6 Commandes des journaux

Chapitre 7 Commandes réseau

Chapitre 8 Commandes du service des problèmes

Chapitre 9 Service des rôles

Chapitre 10 Services SAN

Chapitre 11 Commandes de service

Chapitre 12 Services de stockage

Chapitre 13 Commandes système

Chapitre 14 Service utilisateur

Chapitre 15 Commandes des workflows

Chapitre 16 Clients RESTful

Modify Component Property

Vous pouvez utiliser une demande PUT pour définir des propriétés sur un composant matériel sélectionné. Une demande traitée avec succès renvoie un code de statut HTTP 201 (Accepted) ainsi que les propriétés du composant au format JSON.

Exemple de demande :

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}

Exemple de réponse au format JSON :

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
    }
}