# placement-groups

Manage placement groups.
Set management node URL:

# POST /pgs/{pg}/recover

# Parameters

  • pgstring-

# Endpoint

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

# POST /pgs/{pg}/backfill

# Parameters

  • pgstring-

# Endpoint

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

# POST /pgs/{pg}/repair

# Parameters

  • pgstring-

# Endpoint

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

# GET /pgs

List all PGs in a pool.

# Parameters

  • filterarrayOnly show PGs which are in all of these states.
  • poolarrayOnly show PGs which are in any of these pools.

# Endpoint

curl -X GET http://mgmt-node:8080/api/pgs 

# Response 200

  • pgsarrayAll placement groups matching the given filter.
    • pgIdstring-
    • statestring-
    • lastScrubStampinteger-
    • lastDeepScrubStampinteger-
    • actingOsdsarray-
    • osdsarray-
    • primaryinteger-
    • actingPrimaryinteger-
    • poolIdinteger-
  • stateSummaryobjectOverview of placement groups in the given pools by states, to be used for filtering in further API calls.
  • poolIdsobject-

# Example response

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

# POST /pgs/{pg}/deep-scrub

# Parameters

  • pgstring-

# Endpoint

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

# GET /pgs/{pg}/details

# Parameters

  • pgstring-

# Endpoint

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

# Response 200

# Example response

{}

# POST /pgs/{pg}/scrub

# Parameters

  • pgstring-

# Endpoint

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