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

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

Présentation

Initiateurs

List Initiators

Get Initiator Details

Create an Initiator

Modify an Initiator

Delete an Initiator

Groupes d'initiateurs

List Initiator Groups

Get Initiator Group Details

Create an Initiator Group

Delete an Initiator Group

Cibles

List Targets

Get Target Details

Create a Target

Modify a Target

Delete a Target

Groupes de cibles

List Target Groups

Get Target Group

Create a Target Group

Delete a Target Group

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 a Target

Modifie une cible iSCSI existante. Le corps de la demande contient un objet JSON contenant les propriétés de la cible iSCSI en cours de modification. Le code de statut HTTP 202 (Accepted) est renvoyé en cas de succès. Le corps de la réponse contient les propriétés de la cible iSCSI résultante pour la cible encodée dans un objet JSON.

Exemple de demande :

PUT /api/san/v1/iscsi/targets/alias=test-target HTTP/1.1
Host: zfs-storage.example.com:215
Authorization: Basic abcd123MWE=
Host: zfs-storage.example.com
Content-Type: application/json
Content-Length: 54
Accept: application/json

{"targetchapsecret":"letmeinnowplease", "auth":"chap",
 "targetchapuser":"argus"}

Exemple de réponse :

HTTP/1.1 202 Accepted
Content-Type: application/json
Content-Length: 189
X-Zfssa-San-Api: 1.0

{
    "target": {
        "href": "/api/san/v1/iscsi/targets/alias=test-target",
        "auth": "chap",
        "targetchapsecret": "letmeinnowplease",
        "alias": "test-arget",
        "iqn": "iqn.1986-03.com.sun:02:31d26d2e-6aa0-6054-fe58-8b1fb508b008",
        "targetchapuser": "argus",
        "interfaces": ["ixgbe0"]
    }
}