Pools
A pool groups apps that share a budget, a policy template and people (pools were called "teams" before). The policy template is the list of policies a new app starts with, and says which of them the app may change or remove. Pools can be nested: a sub-pool's budget rules apply in addition to its parent's, and it uses its parent's template unless it has its own.
List AI pools
Lists the gateway's pools, oldest first. Filter by parentPoolId to list
the sub-pools of one pool.
path Parameters
bucketIdThe bucket ID (bckt_…). Everything in a bucket is addressed under it.
query Parameters
parentPoolIdOnly return the direct sub-pools of this pool.
limitThe maximum number of items to return.
offsetThe number of items to skip before the first item returned.
List AI pools › Responses
A page of pools.
The pools on this page.
limitThe page size that was applied.
offsetThe number of items skipped before this page.
totalThe number of items in the whole collection.
hasMoreWhether there are more items after this page.
nextThe relative URL of the next page, or null on the last page.
Create an AI pool
Creates a pool. Set parentPoolId to create a sub-pool. A sub-pool's budget
rules apply in addition to its ancestors' rules, and it uses its parent's
policy template unless it has its own.
path Parameters
bucketIdThe bucket ID (bckt_…). Everything in a bucket is addressed under it.
Create an AI pool › Request Body
nameThe pool's display name.
parentPoolIdCreate the pool as a sub-pool of this pool. Omit for a top-level pool. Cannot be changed later.
The pool's own budget, for the combined traffic of its apps and sub-pools.
The policies new apps in the pool start with, in order. Omit it on a
top-level pool to start with auth, which apps can neither change nor
remove.
inheritPolicyTemplateUse the template of the nearest ancestor that has its own. Only allowed on
sub-pools, and defaults to true for them when policyTemplate is omitted.
Create an AI pool › Responses
The pool was created.
idThe pool ID.
bucketIdThe bucket (gateway) the pool belongs to.
parentPoolIdThe parent pool, or null for a top-level pool.
nameThe pool's display name.
The pool's own budget. A budgetBy: app rule limits the combined traffic of
every app in the pool and its sub-pools. The budgets of the apps, the
parent pools and the gateway apply as well.
The policies a new app in the pool starts with, in order, and what the app
may do with each. An app gets a copy when it is created: changing the
template does not change existing apps. Empty while
inheritPolicyTemplate is true.
inheritPolicyTemplateWhen true, the pool uses the template of its nearest ancestor that has its own. Always false for top-level pools.
createdOnWhen the pool was created.
updatedOnWhen the pool was last changed.
Get an AI pool
Returns a pool, its budget rules and the policy template that apps created in it start from.
path Parameters
bucketIdThe bucket ID (bckt_…). Everything in a bucket is addressed under it.
poolIdThe pool ID (config_…).
Get an AI pool › Responses
The pool.
idThe pool ID.
bucketIdThe bucket (gateway) the pool belongs to.
parentPoolIdThe parent pool, or null for a top-level pool.
nameThe pool's display name.
The pool's own budget. A budgetBy: app rule limits the combined traffic of
every app in the pool and its sub-pools. The budgets of the apps, the
parent pools and the gateway apply as well.
The policies a new app in the pool starts with, in order, and what the app
may do with each. An app gets a copy when it is created: changing the
template does not change existing apps. Empty while
inheritPolicyTemplate is true.
inheritPolicyTemplateWhen true, the pool uses the template of its nearest ancestor that has its own. Always false for top-level pools.
createdOnWhen the pool was created.
updatedOnWhen the pool was last changed.
Update an AI pool
Updates a pool with JSON Merge Patch semantics. Arrays such as budgetRules
and policyTemplate are replaced as a whole. Changing the template affects
only apps created afterwards. parentPoolId cannot be changed.
path Parameters
bucketIdThe bucket ID (bckt_…). Everything in a bucket is addressed under it.
poolIdThe pool ID (config_…).
Update an AI pool › Request Body
nameThe pool's display name.
Replaces all of the pool's budget rules.
Replaces the pool's policy template. Existing apps keep their policies.
inheritPolicyTemplateUse the template of the nearest ancestor that has its own. Only allowed on sub-pools.
Update an AI pool › Responses
The updated pool.
idThe pool ID.
bucketIdThe bucket (gateway) the pool belongs to.
parentPoolIdThe parent pool, or null for a top-level pool.
nameThe pool's display name.
The pool's own budget. A budgetBy: app rule limits the combined traffic of
every app in the pool and its sub-pools. The budgets of the apps, the
parent pools and the gateway apply as well.
The policies a new app in the pool starts with, in order, and what the app
may do with each. An app gets a copy when it is created: changing the
template does not change existing apps. Empty while
inheritPolicyTemplate is true.
inheritPolicyTemplateWhen true, the pool uses the template of its nearest ancestor that has its own. Always false for top-level pools.
createdOnWhen the pool was created.
updatedOnWhen the pool was last changed.
Delete an AI pool
Deletes an empty pool. Fails with 409 while the pool still has apps or
sub-pools. A repeated delete returns 404, which clients should treat as success.
path Parameters
bucketIdThe bucket ID (bckt_…). Everything in a bucket is addressed under it.
poolIdThe pool ID (config_…).
Delete an AI pool › Responses
The pool was deleted.