Skip to main content
POST
/
api
/
v1
/
config
/
resource-pools
cURL
curl --request POST \
  --url https://tenant.name/api/v1/config/resource-pools \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dry_run": true,
  "resource_pools": {
    "default_pool": {
      "allocation": {
        "fixed_values": [
          {
            "license": "PERSISTED_WRITES_STANDARD",
            "value": "<string>"
          }
        ],
        "percent_of_license": 123,
        "priority_thresholds": [
          {
            "all_priorities": {
              "fixed_value": "<string>",
              "percent_of_pool_allocation": 123
            },
            "default_and_low_priority": {
              "fixed_value": "<string>",
              "percent_of_pool_allocation": 123
            },
            "license": "PERSISTED_WRITES_STANDARD",
            "low_priority": {
              "fixed_value": "<string>",
              "percent_of_pool_allocation": 123
            }
          }
        ]
      },
      "priorities": {
        "high_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "low_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ]
      },
      "priority_thresholds": [
        {
          "all_priorities": {
            "fixed_value": "<string>",
            "percent_of_pool_allocation": 123
          },
          "default_and_low_priority": {
            "fixed_value": "<string>",
            "percent_of_pool_allocation": 123
          },
          "license": "PERSISTED_WRITES_STANDARD",
          "low_priority": {
            "fixed_value": "<string>",
            "percent_of_pool_allocation": 123
          }
        }
      ]
    },
    "pools": [
      {
        "allocation": {
          "fixed_values": [
            {
              "license": "PERSISTED_WRITES_STANDARD",
              "value": "<string>"
            }
          ],
          "percent_of_license": 123,
          "priority_thresholds": [
            {
              "all_priorities": {
                "fixed_value": "<string>",
                "percent_of_pool_allocation": 123
              },
              "default_and_low_priority": {
                "fixed_value": "<string>",
                "percent_of_pool_allocation": 123
              },
              "license": "PERSISTED_WRITES_STANDARD",
              "low_priority": {
                "fixed_value": "<string>",
                "percent_of_pool_allocation": 123
              }
            }
          ]
        },
        "filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "name": "<string>",
        "priorities": {
          "high_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ],
          "low_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ]
        }
      }
    ]
  }
}
'
{
  "resource_pools": {
    "default_pool": {
      "allocation": {
        "fixed_values": [
          {
            "license": "PERSISTED_WRITES_STANDARD",
            "value": "<string>"
          }
        ],
        "percent_of_license": 123,
        "priority_thresholds": [
          {
            "all_priorities": {
              "fixed_value": "<string>",
              "percent_of_pool_allocation": 123
            },
            "default_and_low_priority": {
              "fixed_value": "<string>",
              "percent_of_pool_allocation": 123
            },
            "license": "PERSISTED_WRITES_STANDARD",
            "low_priority": {
              "fixed_value": "<string>",
              "percent_of_pool_allocation": 123
            }
          }
        ]
      },
      "priorities": {
        "high_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "low_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ]
      },
      "priority_thresholds": [
        {
          "all_priorities": {
            "fixed_value": "<string>",
            "percent_of_pool_allocation": 123
          },
          "default_and_low_priority": {
            "fixed_value": "<string>",
            "percent_of_pool_allocation": 123
          },
          "license": "PERSISTED_WRITES_STANDARD",
          "low_priority": {
            "fixed_value": "<string>",
            "percent_of_pool_allocation": 123
          }
        }
      ]
    },
    "created_at": "2023-11-07T05:31:56Z",
    "pools": [
      {
        "allocation": {
          "fixed_values": [
            {
              "license": "PERSISTED_WRITES_STANDARD",
              "value": "<string>"
            }
          ],
          "percent_of_license": 123,
          "priority_thresholds": [
            {
              "all_priorities": {
                "fixed_value": "<string>",
                "percent_of_pool_allocation": 123
              },
              "default_and_low_priority": {
                "fixed_value": "<string>",
                "percent_of_pool_allocation": 123
              },
              "license": "PERSISTED_WRITES_STANDARD",
              "low_priority": {
                "fixed_value": "<string>",
                "percent_of_pool_allocation": 123
              }
            }
          ]
        },
        "filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "name": "<string>",
        "priorities": {
          "high_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ],
          "low_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ]
        }
      }
    ],
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
dry_run
boolean

If true, validates the specified configuration without creating the ResourcePools. If the specified configuration is valid, the endpoint returns a partial response without the ResourcePools. If the specified configuration is invalid, the endpoint returns an error.

resource_pools
object

The ResourcePools to create.

Response

A successful response containing the created ResourcePools.

resource_pools
object