Project

General

Profile

6822-example.txt

Example output from /cluster/<id>/pool resource - John Spray, 11/25/2013 04:59 AM

Download (1.2 KB)

 
1
GET /api/v1/cluster/1/pool
2
HTTP 200 OK
3
Vary: Accept
4
Content-Type: text/html; charset=utf-8
5
Allow: GET, HEAD, OPTIONS
6

    
7
[
8
    {
9
        "id": 1, 
10
        "cluster": 1, 
11
        "pool_id": 0, 
12
        "name": "data", 
13
        "quota_max_bytes": 0, 
14
        "quota_max_objects": 0, 
15
        "num_objects": 0, 
16
        "bytes_used": 0
17
    }, 
18
    {
19
        "id": 2, 
20
        "cluster": 1, 
21
        "pool_id": 1, 
22
        "name": "metadata", 
23
        "quota_max_bytes": 0, 
24
        "quota_max_objects": 0, 
25
        "num_objects": 0, 
26
        "bytes_used": 0
27
    }, 
28
    {
29
        "id": 3, 
30
        "cluster": 1, 
31
        "pool_id": 2, 
32
        "name": "rbd", 
33
        "quota_max_bytes": 0, 
34
        "quota_max_objects": 0, 
35
        "num_objects": 778, 
36
        "bytes_used": 3240911270
37
    }, 
38
    {
39
        "id": 4, 
40
        "cluster": 1, 
41
        "pool_id": 7, 
42
        "name": "rbd_extra", 
43
        "quota_max_bytes": 0, 
44
        "quota_max_objects": 0, 
45
        "num_objects": 2, 
46
        "bytes_used": 138
47
    }, 
48
    {
49
        "id": 5, 
50
        "cluster": 1, 
51
        "pool_id": 33, 
52
        "name": "test4", 
53
        "quota_max_bytes": 0, 
54
        "quota_max_objects": 0, 
55
        "num_objects": 0, 
56
        "bytes_used": 0
57
    }
58
]