Redis Resources¶
Get details on the specified Redis instance’s connected slaves¶
GET /redis/<instance_name>/connectedSlaves/
Response:
{
"data": 1
}
Get details on the specified Redis instance’s space usage¶
GET /redis/<instance_name>/spaceUsage/
Response:
{
"data": {
"freeSpacePercentage": 0.0656610107421875,
"usedMemoryHuman": "1.64M"
}
}
Get details on the specified Redis instance’s max memory policy¶
GET /redis/<instance_name>/maxMemoryPolicy/
Response:
{
"data": "volatile-lru"
}
Get details on the specified Redis instance’s max clients¶
GET /redis/<instance_name>/maxClients/
Response:
{
"data": "4064"
}
Resize a redis instance to the specified size¶
POST /redis/<instance_name>/resize/
Note
Only resizing to larger plans is supported. The new_plan field is represented in megabytes and must be one of the following: 500, 1000, 2500, 5000, 10000, 20000, 50000, 75000, or 100000.
Request:
{
"new_plan": 2500
}
Response:
{
"data": "Started process of resizing instance Test123 from 1000 to 2500"
}