Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions components/schemas/infrastructure/clusters/Cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ required:
- creator
- hub_id
- state
- non_essential
- features
- events
properties:
Expand All @@ -23,6 +24,9 @@ properties:
anyOf:
- $ref: ../../common/ACL.yml
- type: "null"
non_essential:
type: boolean
description: Marks a cluster as non-essential. Non-essential cluster resources are excluded by default from certain metrics and summaries unless opted in.
state:
$ref: ./ClusterState.yml
features:
Expand Down
6 changes: 5 additions & 1 deletion platform/paths/infrastructure/clusters/cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ patch:
application/json:
schema:
type: object

properties:
non_essential:
type: boolean
description: >
Set to true to mark the cluster as 'non-essential'. Non-essential cluster resources are excluded by default from certain metrics and summaries unless opted in.
responses:
200:
description: Returns a cluster.
Expand Down
19 changes: 19 additions & 0 deletions platform/paths/infrastructure/clusters/clusters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@ get:
- Clusters
parameters:
- $ref: ../../../../components/parameters/PageParam.yml
- name: filter
in: query
style: deepObject
required: false
description: |
## Filter Field
The filter field is a key-value object, where the key is what you would like to filter, and the value is the value you're filtering for.
schema:
type: object
properties:
essential:
type: string
description: |
`filter[essential]=true` filter for essential/non-essential clusters.
state:
type: string
description: |
`filter[state]=value1,value2` state filtering will allow you to filter by the cluster's current state.
`filter[stack_build]=ID` stack build filtering by ID. Submit the ID of the stack build you wish to filter for and the return sill be any environments that have the stack build deployed to them.
responses:
200:
description: Returns a list of clusters.
Expand Down