VK Cloud logo
Updated at April 15, 2024   08:50 AM

Installing jq

To filter the output of data in JSON format, use the jq utility. It is applicable for API and OpenStack data received from the platform.

jq must be pre-installed on your system.

Installation

sudo apt-get install jq

Usage example

Get the list plans via Karboii API in formatted JSON.

Command:

curl -X GET -H "Accept: application/json" -H "X-Auth-Token: <token>" "https://mcs.mail.ru/infra/karboii/v1/${OS_PROJECT_ID}/plans" | jq "."