|
17 | 17 | name: Apache 2.0 |
18 | 18 | url: 'https://www.apache.org/licenses/LICENSE-2.0' |
19 | 19 | title: HyperFleet API |
20 | | - version: 1.0.14 |
| 20 | + version: 1.0.15 |
21 | 21 | host: hyperfleet.redhat.com |
22 | 22 | basePath: / |
23 | 23 | schemes: |
@@ -291,6 +291,49 @@ paths: |
291 | 291 | description: Patch a specific cluster by ID |
292 | 292 | operationId: patchClusterById |
293 | 293 | summary: Patch cluster by ID |
| 294 | + '/api/hyperfleet/v1/clusters/{cluster_id}/force-delete': |
| 295 | + post: |
| 296 | + consumes: |
| 297 | + - application/json |
| 298 | + produces: |
| 299 | + - application/problem+json |
| 300 | + parameters: |
| 301 | + - description: Cluster ID |
| 302 | + in: path |
| 303 | + name: cluster_id |
| 304 | + required: true |
| 305 | + type: string |
| 306 | + - in: body |
| 307 | + name: body |
| 308 | + required: true |
| 309 | + schema: |
| 310 | + $ref: '#/definitions/ForceDeleteRequest' |
| 311 | + responses: |
| 312 | + '204': |
| 313 | + description: >- |
| 314 | + There is no content to send for this request, but the headers may be |
| 315 | + useful. |
| 316 | + '400': |
| 317 | + description: The server could not understand the request due to invalid syntax. |
| 318 | + '404': |
| 319 | + description: The server cannot find the requested resource. |
| 320 | + '409': |
| 321 | + description: The request conflicts with the current state of the server. |
| 322 | + default: |
| 323 | + description: An unexpected error response. |
| 324 | + schema: |
| 325 | + $ref: '#/definitions/Error' |
| 326 | + security: |
| 327 | + - BearerAuth: [] |
| 328 | + tags: |
| 329 | + - Clusters |
| 330 | + description: >- |
| 331 | + Permanently removes the cluster record from the database for a cluster |
| 332 | + stuck in Finalizing state. |
| 333 | +
|
| 334 | + This is a database-only operation. Requires a reason for audit purposes. |
| 335 | + operationId: forceDeleteCluster |
| 336 | + summary: Force-delete a cluster |
294 | 337 | '/api/hyperfleet/v1/clusters/{cluster_id}/nodepools': |
295 | 338 | get: |
296 | 339 | produces: |
@@ -572,6 +615,54 @@ paths: |
572 | 615 | description: Patch a specific nodepool within a cluster |
573 | 616 | operationId: patchNodePoolById |
574 | 617 | summary: Patch nodepool by ID |
| 618 | + '/api/hyperfleet/v1/clusters/{cluster_id}/nodepools/{nodepool_id}/force-delete': |
| 619 | + post: |
| 620 | + consumes: |
| 621 | + - application/json |
| 622 | + produces: |
| 623 | + - application/problem+json |
| 624 | + parameters: |
| 625 | + - description: Cluster ID |
| 626 | + in: path |
| 627 | + name: cluster_id |
| 628 | + required: true |
| 629 | + type: string |
| 630 | + - description: NodePool ID |
| 631 | + in: path |
| 632 | + name: nodepool_id |
| 633 | + required: true |
| 634 | + type: string |
| 635 | + - in: body |
| 636 | + name: body |
| 637 | + required: true |
| 638 | + schema: |
| 639 | + $ref: '#/definitions/ForceDeleteRequest' |
| 640 | + responses: |
| 641 | + '204': |
| 642 | + description: >- |
| 643 | + There is no content to send for this request, but the headers may be |
| 644 | + useful. |
| 645 | + '400': |
| 646 | + description: The server could not understand the request due to invalid syntax. |
| 647 | + '404': |
| 648 | + description: The server cannot find the requested resource. |
| 649 | + '409': |
| 650 | + description: The request conflicts with the current state of the server. |
| 651 | + default: |
| 652 | + description: An unexpected error response. |
| 653 | + schema: |
| 654 | + $ref: '#/definitions/Error' |
| 655 | + security: |
| 656 | + - BearerAuth: [] |
| 657 | + tags: |
| 658 | + - NodePools |
| 659 | + description: >- |
| 660 | + Permanently removes the nodepool record from the database for a nodepool |
| 661 | + stuck in Finalizing state. |
| 662 | +
|
| 663 | + This is a database-only operation. Requires a reason for audit purposes. |
| 664 | + operationId: forceDeleteNodePool |
| 665 | + summary: Force-delete a nodepool |
575 | 666 | '/api/hyperfleet/v1/clusters/{cluster_id}/nodepools/{nodepool_id}/statuses': |
576 | 667 | get: |
577 | 668 | produces: |
@@ -1440,6 +1531,17 @@ definitions: |
1440 | 1531 | - title |
1441 | 1532 | - status |
1442 | 1533 | type: object |
| 1534 | + ForceDeleteRequest: |
| 1535 | + description: Request body for force-delete operations |
| 1536 | + properties: |
| 1537 | + reason: |
| 1538 | + description: Reason for force-deleting the resource |
| 1539 | + maxLength: 1024 |
| 1540 | + minLength: 1 |
| 1541 | + type: string |
| 1542 | + required: |
| 1543 | + - reason |
| 1544 | + type: object |
1443 | 1545 | NodePool: |
1444 | 1546 | example: |
1445 | 1547 | created_by: user-123@example.com |
|
0 commit comments