@@ -2190,8 +2190,14 @@ class TStorageGroups : public TViewerPipeClient {
2190
2190
get:
2191
2191
tags:
2192
2192
- storage
2193
- summary: Storage groups
2194
- description: Information about storage groups
2193
+ summary: Gets information about storage and groups.
2194
+ description: >
2195
+ It can get groups of storage groups or all storage groups.
2196
+ It's always better to get groups of storage groups first, then get all storage groups in a group.
2197
+ To get list of groups of storage groups we call it with `group` parameter first,
2198
+ then we call it with `filter_group` and `filter_group_by` parameters to get content of a group.
2199
+ For example, to get groups of storage groups we call it with `group=State` parameter,
2200
+ then we call it with `filter_group_by=State` and `filter_group=ok` parameters.
2195
2201
parameters:
2196
2202
- name: database
2197
2203
in: query
@@ -2218,56 +2224,14 @@ class TStorageGroups : public TViewerPipeClient {
2218
2224
description: group id
2219
2225
required: false
2220
2226
type: integer
2221
- - name: need_groups
2222
- in: query
2223
- description: return groups information
2224
- required: false
2225
- type: boolean
2226
- default: true
2227
- - name: need_disks
2228
- in: query
2229
- description: return disks information
2230
- required: false
2231
- type: boolean
2232
- default: true
2233
- - name: with
2234
- in: query
2235
- description: >
2236
- filter groups by missing or space:
2237
- * `missing`
2238
- * `space`
2239
- required: false
2240
- type: string
2241
2227
- name: filter
2242
2228
description: filter to search for in group ids and pool names
2243
2229
required: false
2244
2230
type: string
2245
- - name: filter_group_by
2246
- in: query
2247
- description: >
2248
- filter group by:
2249
- * `GroupId`
2250
- * `Erasure`
2251
- * `Usage`
2252
- * `DiskSpaceUsage`
2253
- * `PoolName`
2254
- * `Kind`
2255
- * `Encryption`
2256
- * `MediaType`
2257
- * `MissingDisks`
2258
- * `State`
2259
- * `Latency`
2260
- required: false
2261
- type: string
2262
- - name: filter_group
2263
- in: query
2264
- description: content for filter group by
2265
- required: false
2266
- type: string
2267
2231
- name: sort
2268
2232
in: query
2269
2233
description: >
2270
- sort by:
2234
+ sort storage groups by:
2271
2235
* `PoolName`
2272
2236
* `Kind`
2273
2237
* `MediaType`
@@ -2291,7 +2255,26 @@ class TStorageGroups : public TViewerPipeClient {
2291
2255
- name: group
2292
2256
in: query
2293
2257
description: >
2294
- group by:
2258
+ returns groups of storage groups with number of storage groups in every group.
2259
+ grouping by:
2260
+ * `GroupId`
2261
+ * `Erasure`
2262
+ * `Usage`
2263
+ * `DiskSpaceUsage`
2264
+ * `PoolName`
2265
+ * `Kind`
2266
+ * `Encryption`
2267
+ * `MediaType`
2268
+ * `MissingDisks`
2269
+ * `State`
2270
+ * `Latency`
2271
+ required: false
2272
+ type: string
2273
+ - name: filter_group_by
2274
+ in: query
2275
+ description: >
2276
+ returns conent of a group of storage groups, expects to have filter_group parameter.
2277
+ grouping by:
2295
2278
* `GroupId`
2296
2279
* `Erasure`
2297
2280
* `Usage`
@@ -2305,6 +2288,11 @@ class TStorageGroups : public TViewerPipeClient {
2305
2288
* `Latency`
2306
2289
required: false
2307
2290
type: string
2291
+ - name: filter_group
2292
+ in: query
2293
+ description: name of a group of storage groups, used for filter_group_by
2294
+ required: false
2295
+ type: string
2308
2296
- name: fields_required
2309
2297
in: query
2310
2298
description: >
@@ -2333,12 +2321,12 @@ class TStorageGroups : public TViewerPipeClient {
2333
2321
type: string
2334
2322
- name: offset
2335
2323
in: query
2336
- description: skip N nodes
2324
+ description: skip N nodes, used together with limit to implement paging
2337
2325
required: false
2338
2326
type: integer
2339
2327
- name: limit
2340
2328
in: query
2341
- description: limit to N nodes
2329
+ description: limit result to N nodes, used together with offset to implement paging
2342
2330
required: false
2343
2331
type: integer
2344
2332
- name: timeout
@@ -2378,8 +2366,8 @@ class TStorageGroups : public TViewerPipeClient {
2378
2366
" * `ok` - group is okay\n "
2379
2367
" * `starting:n` - group is okay, but n disks are starting\n "
2380
2368
" * `replicating:n` - group is okay, all disks are available, but n disks are replicating\n "
2381
- " * `degraded:n(m, m...)` - group is okay, but n fail realms are not available (with m fail domains )\n "
2382
- " * `dead:n` - group is not okay, n fail realms are not available\n " ;
2369
+ " * `degraded:n(m, m...)` - group is okay, but n data centers / racks are not available (with m devices )\n "
2370
+ " * `dead:n` - group is not okay, n data centers / racks are not available\n " ;
2383
2371
storageGroupProperties[" Kind" ][" description" ] = " kind of the disks in this group (specified by the user)" ;
2384
2372
storageGroupProperties[" MediaType" ][" description" ] = " actual physical media type of the disks in this group" ;
2385
2373
storageGroupProperties[" MissingDisks" ][" description" ] = " number of disks missing" ;
0 commit comments