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
7 changes: 7 additions & 0 deletions components/parameters/clusterIdOrUuid-path.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: clusterId
in: path
description: The numeric ID or the UUID of the cluster.
required: true
schema:
type: string
example: '5'
5 changes: 5 additions & 0 deletions components/parameters/clustersUuid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: uuid
in: query
description: Filter by cluster UUID. Repeat the parameter to filter by multiple UUIDs (`?uuid=A&uuid=B`); UUIDs that don't match are ignored.
schema:
type: string
2 changes: 2 additions & 0 deletions components/schemas/clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ properties:
id:
type: integer
format: int64
uuid:
type: string
name:
type: string
code:
Expand Down
1 change: 1 addition & 0 deletions paths/api@clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ get:
- $ref: ../components/parameters/typeId.yaml
- $ref: ../components/parameters/labels.yaml
- $ref: ../components/parameters/allLabels.yaml
- $ref: ../components/parameters/clustersUuid.yaml
responses:
'200':
description: Successful Request
Expand Down
4 changes: 2 additions & 2 deletions paths/api@clusters@id.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
get:
summary: Get a Specific Cluster
description: This endpoint retrieves a specific cluster.
description: This endpoint retrieves a specific cluster. The path segment accepts either the numeric cluster ID or the cluster UUID string.
operationId: getCluster
tags:
- Clusters
parameters:
- $ref: ../components/parameters/clusterId-path.yaml
- $ref: ../components/parameters/clusterIdOrUuid-path.yaml
- in: query
name: stats
description: This can be used to include the cluster `stats` object in the response by passing `true`. This object includes usage information that varies by cluster type. For example for HVM it may include `cephStats` and `pacemakerStats`.
Expand Down
Loading