Redis Resources =============== .. meta:: :description: Documentation on the ObjectRocket service's RESTful API for hosted Redis instances Get details on the specified Redis instance's connected slaves ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash GET /redis//connectedSlaves/ Response: .. code-block:: bash { "data": 1 } Get details on the specified Redis instance's space usage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash GET /redis//spaceUsage/ Response: .. code-block:: bash { "data": { "freeSpacePercentage": 0.0656610107421875, "usedMemoryHuman": "1.64M" } } Get details on the specified Redis instance's max memory policy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash GET /redis//maxMemoryPolicy/ Response: .. code-block:: bash { "data": "volatile-lru" } Get details on the specified Redis instance's max clients ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash GET /redis//maxClients/ Response: .. code-block:: bash { "data": "4064" } Resize a redis instance to the specified size ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash POST /redis//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: .. code-block:: bash { "new_plan": 2500 } Response: .. code-block:: bash { "data": "Started process of resizing instance Test123 from 1000 to 2500" }