Rebuild a DCS member
Replaces the etcd member of a DCS server that a new server took over, and updates the etcd hosts on every service that uses the DCS cluster. The server must be pending a rebuild: run its enroll command on the replacement server first. The other members and every service on the cluster must be healthy.
POST
/api/v1/dcs-clusters/{id}/servers/{server_id}/rebuildAuthorization
tse_sessionAPI key · cookierequiredPath parameters
idstringrequiredserver_idstringrequiredResponses
202
Accepted
idstringrequirednamestringrequiredserversServer[]requiredShow propertiesHide properties
Array of
ServerCleanupErrorstringrequiredCleanupKindstringrequiredCleanupPendingbooleanrequiredCleanupSincestring<date-time> | nullrequiredCreatedAtstring<date-time>requiredDemobooleanrequiredEnrollStatestringrequiredHeadscaleNodeIDstringrequiredHoststringrequiredIDstringrequiredNamestringrequiredOverlayIPstringrequiredPortinteger<int64>requiredPreviousOverlayIPstringrequiredRebuildPendingbooleanrequiredSSHUserstringrequiredstatusstringrequiredused_by_countinteger<int64>requireddefault
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message