Go to main content
Oracle® ZFS Storage Appliance RESTful API ガイド、Release OS8.6.x

印刷ビューの終了

更新: 2016 年 9 月
 
 

問題サービスコマンド

表 43  問題サービスコマンド
リクエスト
パス /problem/v1
説明
GET
問題サービスコマンドを一覧表示します
GET
/problems
すべての現在の問題を一覧表示します
GET
/problems/<problem>
指定された uuid を持つ問題の詳細プロパティーを取得します
PUT
/problems/<problem> /markrepaired
指定された問題 uuid を修復済みとしてマークします

すべての問題の一覧表示

このコマンドはアプライアンスで現在アクティブなすべての問題を一覧表示します。成功したコマンドに対し、200 の HTTP ステータス (OK) が返されます。

リクエストの例:

GET /api/problem/v1/problems HTTP/1.1
Host: zfs-storage.example.com
Accept: application/json

レスポンスの例:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "problems": [{
        "code": "AK-8003-Y6",
            "description": "The device configuration for JBOD
                       '1204FMD063' is invalid.",
            "impact": "The disks contained within the enclosure
                   cannot be used as part of a storage pool.",
        "uuid": "0d30be41-b50d-4d03-ddb4-edb69ee080f8",
        "repairable": false,
        "type": "Defect",
            "timestamp": "2013-2-21 17:37:12",
            "severity": "Major",
        "components": [{
                "certainty": 100,
                    "status": "degraded",
                    "uuid": "b4fd328f-92d6-4f0e-fb86-e3967a5473e7",
                "chassis": "1204FMD063",
                "label": "hc://:chassis-mfg=SUN
                    :chassis-name=SUN-Storage-J4410
                    :chassis-part=unknown
                    :chassis-serial=1204FMD063
                                :fru-serial=1204FMD063
                    :fru-part=7041262
                                :fru-revision=3529/ses-enclosure=0",
                "revision": "3529",
                    "part": "7041262",
                    "model": "Sun Disk Shelf (SAS-2)",
                    "serial": "1204FMD063",
                    "manufacturer": "Sun Microsystems, Inc."
        }]
    }]
}

一つの問題の一覧表示

一つの問題の一覧表示コマンドは単一の問題を一覧表示します。成功したコマンドに対し、200 の HTTP ステータス (OK) が返されます。

URI 入力パラメータ uuid – 単一の問題の UUID。

リクエストの例:

GET /api/problem/v1.0/problems/0d30be41-b50d-4d03-ddb4-edb69ee080f8
    HTTP/1.1
Host: zfs-storage.example.com
Accept: application/json

レスポンスの例:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "problem": {
        "uuid": "0d30be41-b50d-4d03-ddb4-edb69ee080f8",
        ...
    }
}