# placement-groups

Manage placement groups.
Set management node URL:

# POST /pgs/{pg}/recover

# Parameters

  • pgstringpath-

# Endpoint

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

# POST /pgs/{pg}/backfill

# Parameters

  • pgstringpath-

# Endpoint

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

# POST /pgs/{pg}/repair

# Parameters

  • pgstringpath-

# Endpoint

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

# GET /pgs

List all PGs in a pool.

# Parameters

  • filterarrayqueryoptionalOnly show PGs which are in all of these states.
  • poolarrayqueryoptionalOnly 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

  • pgsarrayoptionalAll placement groups matching the given filter.
    • pgIdstringoptional-
    • statestringoptional-
    • lastScrubStampintegeroptional-
    • lastDeepScrubStampintegeroptional-
    • actingOsdsarrayoptional-
    • osdsarrayoptional-
    • primaryintegeroptional-
    • actingPrimaryintegeroptional-
    • poolIdintegeroptional-
  • stateSummaryobjectoptionalOverview of placement groups in the given pools by states, to be used for filtering in further API calls.
  • poolIdsobjectoptional-

# 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

  • pgstringpath-

# Endpoint

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

# GET /pgs/{pg}/details

# Parameters

  • pgstringpath-

# Endpoint

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

# Response 200

# Example response

{}

# POST /pgs/{pg}/scrub

# Parameters

  • pgstringpath-

# Endpoint

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