CRUSH rules
The method reference for using the Ceph RESTful API crush_rule endpoint to
manage the CRUSH rules.
GET /api/crush_rule
- Description
-
List the CRUSH rule configuration.
Example
GET /api/crush_rule HTTP/1.1
Host: example.com
- Status Codes
-
-
200 OK – Okay.
-
POST /api/crush_rule
Example
POST /api/crush_rule HTTP/1.1
Host: example.com
Content-Type: application/json
{
"device_class": "STRING",
"failure_domain": "STRING",
"name": "STRING",
"root": "STRING"
}
- Status Codes
-
-
201 Created – Resource created.
-
DELETE /api/crush_rule/_NAME
- Parameters
-
-
Replace
NAMEwith the rule name.
-
- Status Codes
-
-
202 Accepted – Operation is still executing, check the task queue.
-
GET /api/crush_rule/_NAME
- Parameters
-
-
Replace
NAMEwith the rule name.
-
Example
GET /api/crush_rule/NAME HTTP/1.1
Host: example.com
- Status Codes
-
-
202 Accepted – Operation is still executing, check the task queue.
-
Reference
For more information, see Ceph RESTful API.