v1

latestOpenAPI 3.0.32026-07-26191565482.4 KB
ResourcePools

ResourcePools CRUD (subset for singleton objects)

post/api/v1/config/resource-pools

Request body

dry_runboolean

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.

Example request

{
  "resource_pools": {
    "default_pool": {
      "priorities": {
        "high_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "low_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ]
      }
    },
    "pools": [
      {
        "filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "priorities": {
          "high_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ],
          "low_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ]
        }
      }
    ]
  }
}

Response

A successful response containing the created ResourcePools.

Example response

{
  "resource_pools": {
    "default_pool": {
      "priorities": {
        "high_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "low_priority_filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ]
      }
    },
    "pools": [
      {
        "filters": [
          {
            "name": "job",
            "value_glob": "myservice*"
          }
        ],
        "priorities": {
          "high_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ],
          "low_priority_filters": [
            {
              "name": "job",
              "value_glob": "myservice*"
            }
          ]
        }
      }
    ]
  }
}