Skip to content

Commit

Permalink
DE19361:Host Reimage API doc should warn of erasing disk
Browse files Browse the repository at this point in the history
  • Loading branch information
ron-saito committed Oct 31, 2023
1 parent 468b1ad commit 1f696f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions v1/api/swagger/paths/hosts@{hostId}@reimage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ post:
summary: Reimage Host by ID
description: >-
Re-deploys a host to the same machine.
Warning, all drives will be erased!
Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed.
The host must be powered off. The host must also be in the Ready state.
operationId: reimage
Expand Down
7 changes: 4 additions & 3 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1177,9 +1177,10 @@ paths:
summary: Set a specific host to attempt HDD boot
/hosts/{hostId}/reimage:
post:
description: Re-deploys a host to the same machine. Only the Host OS is reinstalled,
IP addresses, volumes, etc are not changed. The host must be powered off. The
host must also be in the Ready state.
description: Re-deploys a host to the same machine. Warning, all drives will
be erased! Only the Host OS is reinstalled, IP addresses, volumes, etc are
not changed. The host must be powered off. The host must also be in the Ready
state.
operationId: reimage
parameters:
- description: ID of Host to reimage
Expand Down
2 changes: 1 addition & 1 deletion v1/pkg/client/api_hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ func (a *HostsApiService) PowerReset(ctx _context.Context, hostId string) (Host,

/*
Reimage Reimage Host by ID
Re-deploys a host to the same machine. Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state.
Re-deploys a host to the same machine. Warning, all drives will be erased! Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state.
* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param hostId ID of Host to reimage
@return Host
Expand Down
2 changes: 1 addition & 1 deletion v1/pkg/client/docs/HostsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Name | Type | Description | Notes
Reimage Host by ID

Re-deploys a host to the same machine. Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state.
Re-deploys a host to the same machine. Warning, all drives will be erased! Only the Host OS is reinstalled, IP addresses, volumes, etc are not changed. The host must be powered off. The host must also be in the Ready state.

### Required Parameters

Expand Down
2 changes: 1 addition & 1 deletion v1/pkg/client/interface_hosts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f696f0

Please sign in to comment.