| 347 | } |
| 348 | |
| 349 | func StopMaintenance(baseParams BaseParams, actValue *apc.ActValRmNode) (id string, err error) { |
| 350 | msg := apc.ActionMsg{ |
| 351 | Action: apc.ActStopMaintenance, |
| 352 | Value: actValue, |
| 353 | } |
| 354 | baseParams.Method = http.MethodPut |
| 355 | reqParams := AllocRp() |
| 356 | { |
| 357 | reqParams.BaseParams = baseParams |
| 358 | reqParams.Path = apc.URLPathClu.S |
| 359 | reqParams.Body = cos.MustMarshal(msg) |
| 360 | reqParams.Header = http.Header{cos.HdrContentType: []string{cos.ContentJSON}} |
| 361 | } |
| 362 | err = reqParams.DoHTTPReqResp(&id) |
| 363 | FreeRp(reqParams) |
| 364 | return id, err |
| 365 | } |
| 366 | |
| 367 | // ShutdownCluster shuts down the whole cluster |
| 368 | func ShutdownCluster(baseParams BaseParams) error { |