placement-groups

Manage placement groups.

GET /pgs

Parameters

filter
array
query
optional
Only show PGs which are in all of these states.
pool
array
query
optional
Only show PGs which are in any of these pools.

Endpoint

curl -X GET http://mgmt-node:8080/api/pgs?filter=string&pool=string
                

Response 200

pgs
array
optional
All placement groups matching the given filter.
stateSummary
object
optional
Overview of placement groups in the given pools by states, to be used for filtering in further API calls.
poolIds
object
optional
-

Example response

{
  "pgs": [
    {
      "pgId": "string",
      "state": "string",
      "lastScrubStamp": 0,
      "lastDeepScrubStamp": 0,
      "actingOsds": [
        0
      ],
      "osds": [
        0
      ],
      "primary": 0,
      "actingPrimary": 0,
      "poolId": 0
    }
  ],
  "stateSummary": {},
  "poolIds": {}
}
                  

GET /pgs/{pg}/details

Parameters

pg
string
path
-

Endpoint

curl -X GET http://mgmt-node:8080/api/pgs/{pg}/details
                

Response 200

Example response

{}
                  

POST /pgs/{pg}/scrub

Parameters

pg
string
path
-

Endpoint

curl -X POST http://mgmt-node:8080/api/pgs/{pg}/scrub
                

POST /pgs/{pg}/deep-scrub

Parameters

pg
string
path
-

Endpoint

curl -X POST http://mgmt-node:8080/api/pgs/{pg}/deep-scrub
                

POST /pgs/{pg}/repair

Parameters

pg
string
path
-

Endpoint

curl -X POST http://mgmt-node:8080/api/pgs/{pg}/repair
                

POST /pgs/{pg}/recover

Parameters

pg
string
path
-

Endpoint

curl -X POST http://mgmt-node:8080/api/pgs/{pg}/recover
                

POST /pgs/{pg}/backfill

Parameters

pg
string
path
-

Endpoint

curl -X POST http://mgmt-node:8080/api/pgs/{pg}/backfill